|
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.OBBase com.oberon.ooql.sdk.AdminComponent com.oberon.ooql.sdk.Validation
public class Validation
Represents a Lifecycle
Stage validation.
Field Summary | |
---|---|
static int |
IGNORE_VALIDATION
Validation Ignore |
static int |
REFUSE_VALIDATION
Validation Refuse |
static int |
VALIDATE_VALIDATION
Validation Validate |
Fields inherited from class com.oberon.ooql.sdk.AdminComponent |
---|
bsOptions |
Constructor Summary | |
---|---|
Validation()
|
|
Validation(java.lang.String name)
|
Method Summary | |
---|---|
void |
addIgnoreUser(java.lang.String actorTypeName)
Add access right to ignore this Validation to an actor |
void |
addIgnoreUser(java.lang.String actorType,
java.lang.String actorName)
Add access right to ignore this Validation to an actor |
void |
addRefuseUser(java.lang.String actorTypeName)
Add access right to refuse this Validation to an actor |
void |
addRefuseUser(java.lang.String actorType,
java.lang.String actorName)
Add access right to refuse this Validation to an actor |
void |
addValidateUser(java.lang.String actorTypeName)
Add access right to validate this Validation to an actor |
void |
addValidateUser(java.lang.String actorType,
java.lang.String actorName)
Add access right to validate this Validation to an actor |
java.lang.String |
compareUpdate(Validation refValidation,
boolean checkImage,
Framework framework)
Return the OOQL command to update this Stage -Validation object and let it become
equals to another reference object. |
boolean |
equals(Validation validation)
Check if this Validation is equal to another |
void |
fromXML(org.jdom.Element rootElement)
Load the Validation object from XML element tree |
static java.lang.String |
getAccessAsString(int accessType)
Convert validation access to OOQL equivalent String |
java.lang.String |
getChangeCommand()
Return the OOQL command to update this Lifecycle -Stage -Validation with the settled properties |
java.lang.String |
getCreateCommand(boolean force)
[Inherited but not used] |
java.lang.String |
getCreateCommand(java.lang.String operator)
Return the OOQL command to add this Validation with the settled properties to a Lifecycle -Stage |
java.util.Vector<java.lang.String> |
getIgnoreUsers()
Return the list of ignore access rights for this Validation. |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this Lifecycle -Stage -Validation object by its OOQL identifier |
java.util.Vector<java.lang.String> |
getRefuseUsers()
Return the list of refuse access rights for this Validation. |
java.lang.String |
getSaveCommand(boolean force)
[Inherited but not used] |
Stage |
getStage()
Get the related Stage |
java.lang.String |
getStageFork()
Get the final destination Stage |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
java.util.Vector<java.lang.String> |
getValidateUsers()
Return the list of validate access rights for this Validation. |
boolean |
hasIgnoreAccess(Framework framework)
Check if the current framework User has access to ignore this Validation (ignore delegations) |
boolean |
hasIgnoreAccess(java.lang.String objectID,
Framework framework)
Check if the current framework User has access to ignore this Validation for a specific ObjectObj |
boolean |
hasIgnoreAccess(java.lang.String objectID,
java.lang.String userName,
Framework framework)
Check if a User has access to ignore this Validation for a specific ObjectObj |
boolean |
hasRefuseAccess(Framework framework)
Check if the current framework User has access to refuse this Validation (ignore delegations) |
boolean |
hasRefuseAccess(java.lang.String objectID,
Framework framework)
Check if the current framework User has access to refuse this Validation for a specific ObjectObj |
boolean |
hasRefuseAccess(java.lang.String objectID,
java.lang.String userName,
Framework framework)
Check if a User has access to refuse this Validation for a specific ObjectObj |
boolean |
hasValidateAccess(Framework framework)
Check if the current framework User has access to validate this Validation (ignore delegations) |
boolean |
hasValidateAccess(java.lang.String objectID,
Framework framework)
Check if the current framework User has access to validate this Validation for a specific ObjectObj |
boolean |
hasValidateAccess(java.lang.String objectID,
java.lang.String userName,
Framework framework)
Check if a User has access to validate this Validation for a specific ObjectObj |
void |
removeIgnoreUser(java.lang.String actorTypeName)
Remove the actor access right to ignore this Validation |
void |
removeIgnoreUser(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to ignore this Validation |
void |
removeRefuseUser(java.lang.String actorTypeName)
Remove the actor access right to refuse this Validation |
void |
removeRefuseUser(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to refuse this Validation |
void |
removeValidateUser(java.lang.String actorTypeName)
Remove the actor access right to validate this Validation |
void |
removeValidateUser(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to validate this Validation |
void |
setStage(Stage stage)
Link the Validation with the related Stage |
void |
setStageFork(java.lang.String stageName)
Set the final destination Stage assigned when the Validation is satisfied |
java.lang.String |
toString()
Return the Validation object properties as a single String |
java.lang.String |
toString(java.lang.String indent)
Return the Validation object properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Validation properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Validation properties as XML element tree |
void |
updateIgnoreUsers(java.util.Vector<java.lang.String> users)
Update the ignore users on the basis of a given list |
void |
updateRefuseUsers(java.util.Vector<java.lang.String> users)
Update the refuse users on the basis of a given list |
void |
updateValidateUsers(java.util.Vector<java.lang.String> users)
Update the validate users on the basis of a given list |
Methods inherited from class com.oberon.ooql.sdk.AdminComponent |
---|
checkChangeName, getAdminType, getCommonProperty, getCommonTargetNames, getCrtDate, getDescription, getEditBasicCommand, getImage, getImageData, getImageFile, getModDate, getModUser, getName, getOldName, hasImage, setCrtDate, setDescription, setImage, setImageData, setImageFile, setModDate, setModUser, setName, toCommonXML, toXML |
Methods inherited from class com.oberon.ooql.sdk.OBBase |
---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int VALIDATE_VALIDATION
public static final int REFUSE_VALIDATION
public static final int IGNORE_VALIDATION
Constructor Detail |
---|
public Validation()
public Validation(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public void setStage(Stage stage)
Stage
public Stage getStage()
Stage
public void setStageFork(java.lang.String stageName)
Stage
assigned when the Validation is satisfied
public java.lang.String getStageFork()
Stage
public static java.lang.String getAccessAsString(int accessType)
public void addValidateUser(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void addValidateUser(java.lang.String actorTypeName)
actorTypeName
- actor type: (one of ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
) "|" actor namepublic void removeValidateUser(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void removeValidateUser(java.lang.String actorTypeName)
actorTypeName
- actor type: (one of ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
) "|" actor namepublic void updateValidateUsers(java.util.Vector<java.lang.String> users)
users
- list of accesses formatted as actorType|actorNamepublic java.util.Vector<java.lang.String> getValidateUsers()
addValidateUser(String, String)
public boolean hasValidateAccess(Framework framework)
User
has access to validate this Validation (ignore delegations)
public boolean hasValidateAccess(java.lang.String objectID, Framework framework)
User
has access to validate this Validation for a specific ObjectObj
framework
- the current frameworkobjectID
- the ObjectObj IDpublic boolean hasValidateAccess(java.lang.String objectID, java.lang.String userName, Framework framework)
ObjectObj
userName
- the User
Nameframework
- the current frameworkobjectID
- the ObjectObj IDpublic void addRefuseUser(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void addRefuseUser(java.lang.String actorTypeName)
actorTypeName
- actor type: (one of ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
) "|" actor namepublic void removeRefuseUser(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void removeRefuseUser(java.lang.String actorTypeName)
actorTypeName
- actor type: (one of ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
) "|" actor namepublic void updateRefuseUsers(java.util.Vector<java.lang.String> users)
users
- list of accesses formatted as actorType|actorNamepublic java.util.Vector<java.lang.String> getRefuseUsers()
addRefuseUser(String, String)
public boolean hasRefuseAccess(Framework framework)
User
has access to refuse this Validation (ignore delegations)
public boolean hasRefuseAccess(java.lang.String objectID, Framework framework)
User
has access to refuse this Validation for a specific ObjectObj
framework
- the current frameworkobjectID
- the ObjectObj IDpublic boolean hasRefuseAccess(java.lang.String objectID, java.lang.String userName, Framework framework)
ObjectObj
userName
- the User
Nameframework
- the current frameworkobjectID
- the ObjectObj IDpublic void addIgnoreUser(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void addIgnoreUser(java.lang.String actorTypeName)
actorTypeName
- actor type: (one of ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
) "|" actor namepublic void removeIgnoreUser(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void removeIgnoreUser(java.lang.String actorTypeName)
actorTypeName
- actor type: (one of ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
) "|" actor namepublic void updateIgnoreUsers(java.util.Vector<java.lang.String> users)
users
- list of accesses formatted as actorType|actorNamepublic java.util.Vector<java.lang.String> getIgnoreUsers()
addIgnoreUser(String, String)
public boolean hasIgnoreAccess(Framework framework)
User
has access to ignore this Validation (ignore delegations)
public boolean hasIgnoreAccess(java.lang.String objectID, Framework framework)
User
has access to ignore this Validation for a specific ObjectObj
framework
- the current frameworkobjectID
- the ObjectObj IDpublic boolean hasIgnoreAccess(java.lang.String objectID, java.lang.String userName, Framework framework)
ObjectObj
userName
- the User
Nameframework
- the current frameworkobjectID
- the ObjectObj IDpublic boolean equals(Validation validation)
validation
- the Validation to compare with this Validationpublic java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
Lifecycle
-Stage
-Validation object by its OOQL identifier
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: stagefork , validate ...)filterArgs
- extra arguments used to compute propertiestoken
- separator token for complex propertiesframework
- the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName, java.util.Vector<java.lang.Object> filterArgs, Framework framework)
getTargetNames
in class OBBase
composedName
- OOQL property identifier/namefilterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String indent)
indent
- set the row indent charspublic org.jdom.Element toXML(Framework framework)
framework
- the current frameworkpublic org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
fullDump
- true to include detailed informationframework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML
in class AdminComponent
public java.lang.String getCreateCommand(boolean force)
public java.lang.String getSaveCommand(boolean force)
public java.lang.String getCreateCommand(java.lang.String operator)
Lifecycle
-Stage
operator
- OOQL operator (example: "add" (update Stage) , or empty (add new Stage) )public java.lang.String getChangeCommand()
Lifecycle
-Stage
-Validation with the settled properties
public java.lang.String compareUpdate(Validation refValidation, boolean checkImage, Framework framework) throws OberonException
Stage
-Validation object and let it become
equals to another reference object.
refValidation
- the reference Validation objectframework
- the current framework
OberonException
fromXML(Element)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |