com.groiss.org
Interface Permission

All Superinterfaces:
Persistent

public interface Permission
extends Persistent

This interface describes a permission, the base of the @enterprise right system. A permission describes WHO has which RIGHT on which OBJECT.


Field Summary
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
 
Method Summary
 Agent getAgent()
          Return the agent the permission is granted to,
 int getObjScope()
           
 int getOrgScope()
           
 OrgUnit getOrgUnit()
           
 Right getRight()
          Returns the right the permission grants
 Persistent getTarget()
          Returns the target object
 boolean isPositive()
           
 void setAgent(Agent a)
           
 void setObjScope(int scope)
           
 void setOrgScope(int scope)
           
 void setOrgUnit(OrgUnit ou)
           
 void setPositive(boolean pos)
           
 void setRight(Right r)
           
 void setTarget(Persistent target)
           
 
Methods inherited from interface com.groiss.store.Persistent
dbFields, getOid, getStore, getTableName, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore
 

Field Detail

GLOBAL

static final int GLOBAL
Entry has global scope (department independent)

See Also:
Constant Field Values

LOCAL

static final int LOCAL
Entry has local scope.

See Also:
Constant Field Values

HIERARCHIC

static final int HIERARCHIC
Scope is the deparment and all sub-departments

See Also:
Constant Field Values

HIERARCHIC_DEP

static final int HIERARCHIC_DEP
The dependent sub-departments

See Also:
Constant Field Values

INDEPENDENT_SUPER

static final int INDEPENDENT_SUPER
The upwards-next independent department

See Also:
Constant Field Values

DEPENDENT_TREE

static final int DEPENDENT_TREE
The tree of the independent dept and the dependent sub-depts

See Also:
Constant Field Values

SUPER

static final int SUPER
The parent department

See Also:
Constant Field Values

ALL_OBJECTS

static final int ALL_OBJECTS
The scope is: all object

See Also:
Constant Field Values

OBJECT_CLASS

static final int OBJECT_CLASS
The scope is: an object class

See Also:
Constant Field Values

OBJECT

static final int OBJECT
Scope is the a specific object

See Also:
Constant Field Values

ROLE_DEPT

static final int ROLE_DEPT
Scope is the department of the object

See Also:
Constant Field Values

DEPT

static final int DEPT
Scope is the given department or the department of the object

See Also:
Constant Field Values
Method Detail

getAgent

Agent getAgent()
Return the agent the permission is granted to,

Returns:
the agent (user or role)

setAgent

void setAgent(Agent a)

getOrgUnit

OrgUnit getOrgUnit()

setOrgUnit

void setOrgUnit(OrgUnit ou)

getRight

Right getRight()
Returns the right the permission grants

Returns:
the name, a string object

setRight

void setRight(Right r)

getTarget

Persistent getTarget()
Returns the target object

Returns:
a persistent

setTarget

void setTarget(Persistent target)

isPositive

boolean isPositive()

setPositive

void setPositive(boolean pos)

setOrgScope

void setOrgScope(int scope)

setObjScope

void setObjScope(int scope)

getOrgScope

int getOrgScope()

getObjScope

int getObjScope()


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.