public interface Permission extends Persistent
Modifier and Type | Field and Description |
---|---|
static int |
ALL_OBJECTS
The scope is: all object
|
static int |
DEPENDENT_TREE
The tree of the independent dept and the dependent sub-depts
|
static int |
DEPT
Scope is the given department or the department of the object
|
static int |
GLOBAL
Entry has global scope (department independent)
|
static int |
HIERARCHIC
Scope is the deparment and all sub-departments
|
static int |
HIERARCHIC_DEP
The dependent sub-departments
|
static int |
INDEPENDENT_SUPER
The upwards-next independent department
|
static int |
LOCAL
Entry has local scope.
|
static int |
OBJECT
Scope is the a specific object
|
static int |
OBJECT_CLASS
The scope is: an object class
|
static int |
ROLE_DEPT
Scope is the department of the object
|
static int |
SUPER
The parent department
|
emptyKeys
Modifier and Type | Method and Description |
---|---|
Agent |
getAgent()
Return the agent the permission is granted to.
|
Date |
getFromDate()
Get the start date of the permission.
|
int |
getObjScope()
Returns the object-scope.
|
int |
getOrgScope()
Returns the org-scope.
|
OrgUnit |
getOrgUnit()
Get the org unit of the permission.
|
Right |
getRight()
Returns the right the permission grants
|
Persistent |
getTarget()
Returns the target object.
|
Date |
getToDate() |
boolean |
ignoreSubst()
Returns true if the permission does ignore substitutions.
|
boolean |
isPositive()
Returns true if the permission is positive.
|
void |
setAgent(Agent a)
Set the agent of the permission.
|
void |
setFromDate(Date startDate) |
void |
setIgnoreSubst(boolean ignore)
Set to true if you want that the permission is not valid for substitutions.
|
void |
setObjScope(int scope)
Set the object-scope to one of the following values: ALL_OBJECTS, OBJECT_CLASS,
OBJECT, ROLE_DEPT, DEPT
|
void |
setOrgScope(int scope)
Set the org-scope to one of the following values: GLOBAL, LOCAL, HIERARCHIC,
HIERARCHIC_DEP, INDEPENDENT_SUPER, DEPENDENT_TREE, SUPER.
|
void |
setOrgUnit(OrgUnit ou)
Set the org-unit of the permission.
|
void |
setPositive(boolean pos)
Set the permission positive (right is given) or negative (right is revoked)
|
void |
setRight(Right r)
Set the right of the permission.
|
void |
setTarget(Persistent target)
Set the target object.
|
void |
setToDate(Date endDate) |
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, setStore, toListString
static final int GLOBAL
static final int LOCAL
static final int HIERARCHIC
static final int HIERARCHIC_DEP
static final int INDEPENDENT_SUPER
static final int DEPENDENT_TREE
static final int SUPER
static final int ALL_OBJECTS
static final int OBJECT_CLASS
static final int OBJECT
static final int ROLE_DEPT
static final int DEPT
Agent getAgent()
void setAgent(Agent a)
OrgUnit getOrgUnit()
void setOrgUnit(OrgUnit ou)
Right getRight()
void setRight(Right r)
Persistent getTarget()
void setTarget(Persistent target)
target
- a persistentboolean isPositive()
void setPositive(boolean pos)
void setOrgScope(int scope)
void setObjScope(int scope)
int getOrgScope()
int getObjScope()
Date getFromDate()
void setFromDate(Date startDate)
Date getToDate()
void setToDate(Date endDate)
boolean ignoreSubst()
void setIgnoreSubst(boolean ignore)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.