|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.ActorAccess
public class ActorAccess
Defines the Actor Access
Field Summary | |
---|---|
static java.lang.String |
ASSIGNMENT
"Assignment" type |
static java.lang.String |
TEAM
"Team" type |
static java.lang.String |
USER
"User" type |
Constructor Summary | |
---|---|
ActorAccess(java.lang.String actorType,
java.lang.String actorName)
Define new actor access |
|
ActorAccess(java.lang.String actorType,
java.lang.String actorName,
java.util.BitSet accessFlags,
int accessNum)
Define new actor access mask |
Method Summary | |
---|---|
boolean |
equals(ActorAccess access)
Compare two actor access instances |
boolean |
getAccess(int accessType)
Get the access status for the specified access flag |
java.util.BitSet |
getAccesses()
Get the actor access mask |
java.lang.String |
getActorName()
Get the actor name |
java.lang.String |
getActorType()
Get the actor type |
static int |
indexOf(java.util.Vector<ActorAccess> accesses,
ActorAccess access)
Get the position of the given actor access in a Vector |
static int |
indexOf(java.util.Vector<ActorAccess> accesses,
java.lang.String actorType,
java.lang.String actorName)
Get the position of the given actor type/name in a Vector |
boolean |
setAccess(int accessType,
boolean accessFlag)
Set a single access flag |
java.lang.String |
setAccesses(java.util.BitSet accessFlags,
int accessNum)
Set the actor access mask |
void |
setAllAccess()
Enable all access flags for the current actor type/name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USER
public static final java.lang.String TEAM
public static final java.lang.String ASSIGNMENT
Constructor Detail |
---|
public ActorAccess(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be USER
, TEAM
, ASSIGNMENT
actorName
- the actor namepublic ActorAccess(java.lang.String actorType, java.lang.String actorName, java.util.BitSet accessFlags, int accessNum)
actorType
- the actor type: can be USER
, TEAM
, ASSIGNMENT
actorName
- the actor nameaccessFlags
- set of actor's accessesaccessNum
- number of access flagsMethod Detail |
---|
public java.lang.String getActorType()
USER
, TEAM
or ASSIGNMENT
public java.lang.String getActorName()
public boolean setAccess(int accessType, boolean accessFlag)
accessType
- the access type (depends on the usage)accessFlag
- enable or disable the access
public void setAllAccess()
public boolean getAccess(int accessType)
accessType
- the access type (depends on the usage)public java.lang.String setAccesses(java.util.BitSet accessFlags, int accessNum)
accessFlags
- set of actor's accessesaccessNum
- number of access flagspublic java.util.BitSet getAccesses()
public boolean equals(ActorAccess access)
public static int indexOf(java.util.Vector<ActorAccess> accesses, ActorAccess access)
accesses
- Vector of actor access instancesaccess
- the element to search
public static int indexOf(java.util.Vector<ActorAccess> accesses, java.lang.String actorType, java.lang.String actorName)
accesses
- Vector of actor access instancesactorType
- the actor type: can be USER
, TEAM
, ASSIGNMENT
actorName
- the actor name
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |