public enum EntityType extends java.lang.Enum<EntityType>
policyToken()-method.| Enum Constant and Description |
|---|
ABILITY
Refers to the Ability entity type
|
AGENT
Refers to the Agent entity type
|
ORG_GROUP
Refers to the OrgGroup entity type
|
ORG_POSITION
Refers to the OrgPosition entity type
|
ORG_UNIT
Refers to the OrgUnit entity type
|
PROJECT_GROUP
Refers to the ProjectGroup entity type
|
ROLE
Refers to the Role entity type
|
SUBSTITUTION_RULE
Refers to the SubstitutionRole entity type
|
| Modifier and Type | Method and Description |
|---|---|
static EntityType |
fromIdentifierID(java.util.UUID identifierID)
Returns the
EntityType for a given identifier ID or null if
the identifier ID is not recognised. |
static EntityType |
fromPolicyToken(java.lang.String policyToken)
Returns the
EntityType for a given policy token or null if
the policy token is not recognised. |
java.lang.String[] |
getMandatoryAttributes()
Returns the list of mandatory attributes of this entity type.
|
NavFunction |
getNavFunction(java.lang.String funcName)
Returns the function for this entity type with the given name; or
null if it doesn't exist. |
NavFunction[] |
getNavFunctions()
Returns all functions that are defined for this entity type.
|
boolean |
hasHiddenAttribute(java.lang.String attrName)
Gets whether this entity type has a hidden attribute corresponding to the designated one.
|
boolean |
hasMandatoryAttribute(java.lang.String attrName)
Returns whether this entity type has the given mandatory attribute.
|
boolean |
hasNavFunction(java.lang.String funcName)
Returns whether the function with the given name is defined for this entity
type.
|
boolean |
hasReadOnlyAttribute(java.lang.String attrName)
Returns whether the specified mandatory (!)
|
java.util.UUID |
identifierID()
Returns the UUID semantically identifying this entity type.
|
java.lang.String |
policyToken()
Returns a policy token for this EntityType that can be used in OrgPolicies
(see page 68 in [Berr05]).
|
java.lang.String |
toString()
Returns a string that can be used for display purposes.
|
static EntityType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityType AGENT
public static final EntityType ORG_POSITION
public static final EntityType ORG_UNIT
public static final EntityType ORG_GROUP
public static final EntityType PROJECT_GROUP
public static final EntityType ABILITY
public static final EntityType ROLE
public static final EntityType SUBSTITUTION_RULE
public static EntityType[] values()
for (EntityType c : EntityType.values()) System.out.println(c);
public static EntityType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String policyToken()
Agent for AGENT or
OrgPosition for ORG_POSITION.public java.util.UUID identifierID()
public java.lang.String[] getMandatoryAttributes()
public boolean hasMandatoryAttribute(java.lang.String attrName)
attrName - the attribute to be checkedpublic boolean hasReadOnlyAttribute(java.lang.String attrName)
ModelChangeOperations.updateEntity(de.aristaflow.adept2.base.sessionmanagement.SessionToken, Entity).
Note: This method does and can not provide any information about user-defined attributes, only mandatory ones.
attrName - the mandatory attribute to be checkedpublic boolean hasHiddenAttribute(java.lang.String attrName)
attrName - The attribute to be checked.public boolean hasNavFunction(java.lang.String funcName)
The function name must NOT include the + which is
optional for some functions.
funcName - the name of the function to be foundpublic NavFunction getNavFunction(java.lang.String funcName)
null if it doesn't exist.
The function name must NOT include the + which is
optional for some functions.
funcName - the name of the function to be foundnull if it doesn't existpublic NavFunction[] getNavFunctions()
public java.lang.String toString()
toString in class java.lang.Enum<EntityType>public static EntityType fromPolicyToken(java.lang.String policyToken)
EntityType for a given policy token or null if
the policy token is not recognised.policyToken - the policy token for which the appropriate
EntityType should be returnedEntityType for the given policy token or null
if the policy token is not recognisedpublic static EntityType fromIdentifierID(java.util.UUID identifierID)
EntityType for a given identifier ID or null if
the identifier ID is not recognised.identifierID - the identifier ID for which the appropriate
EntityType should be returnedEntityType for the given identifier ID or null
if the identifier ID is not recognised