|
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.ObjectStage
public class ObjectStage
Class used to retrieve Lifecycle
-Stage
s for a specific ObjectObj
.
Constructor Summary | |
---|---|
ObjectStage()
|
|
ObjectStage(java.lang.String name)
Define new Object Validation |
Method Summary | |
---|---|
java.lang.String |
accessToString(Framework framework)
Get the list of framework User accesses for the current ObjectObj at this Stage (as String) |
java.lang.String |
accessToString(java.lang.String userName,
Framework framework)
Get the list of User accesses for the current ObjectObj at this Stage (as String) |
void |
fromXML(org.jdom.Element rootElement)
Load the ObjectStage from XML element tree |
Stage |
getAdminStage(Framework framework)
Return the administrative stage of ObjectObj's lifecycle |
java.util.Vector<Validation> |
getAllStageValidations(Framework framework)
Get the list of Validations for the Object's current Stage. |
long |
getDuration()
Return the number of days the ObjectObj was kept at the given stage |
java.lang.String |
getEnterDate()
Return the date of last time the ObjectObj reaches the given stage |
java.lang.String |
getExitDate()
Return the date of last time the ObjectObj leaves the given stage |
void |
getHistory(Framework framework)
[Inherited but not used] |
java.lang.String |
getName()
Get the ObjectStage name |
ObjectObj |
getObject()
Get the ObjectStage relative ObjectObj name |
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 ObjectStage by its OOQL identifier |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of target names extracted by using an OOQL selector |
ObjectValidation |
getValidation(java.lang.String validationName,
Framework framework)
Get a ObjectStage's Validation. |
java.util.Vector<ObjectValidation> |
getValidations(Framework framework)
Get the ObjectStage's Validations |
org.jdom.Element |
getXMLValidations(Framework framework)
Return the ObjectStage's validations as XML element tree |
boolean |
isCurrent()
Check if this stage it the ObjectObj current stage |
void |
resetValidations()
Force reload ObjectValidation s from DB |
void |
setEnterDate(java.lang.String date)
Set the ObjectStage enter date [INTERNAL USAGE] |
void |
setExitDate(java.lang.String date)
Set the ObjectStage exit date [INTERNAL USAGE] |
void |
setName(java.lang.String name)
Set the ObjectStage name [INTERNAL USAGE] |
void |
setObject(ObjectObj objectobj)
Set the ObjectStage relative ObjectObj [INTERNAL USAGE] |
void |
setValidations(java.util.Vector<ObjectValidation> validations)
Set the ObjectStages's Validations [INTERNAL USAGE]. |
java.lang.String |
toString()
Return the ObjectStage basic properties as String |
java.lang.String |
toString(java.lang.String indent)
Return the ObjectStage basic properties as String |
java.lang.String |
toString(java.lang.String indent,
Framework framework)
Return the ObjectStage properties as a single String |
org.jdom.Element |
toXML(Framework framework)
Return the ObjectStage properties as XML element tree |
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 |
Constructor Detail |
---|
public ObjectStage()
public ObjectStage(java.lang.String name)
name
- the validation nameMethod Detail |
---|
public void setName(java.lang.String name)
public java.lang.String getName()
getName
in class OBBase
public void setObject(ObjectObj objectobj)
ObjectObj
[INTERNAL USAGE]
public ObjectObj getObject()
ObjectObj
name
public void setEnterDate(java.lang.String date)
date
- the date of last time the ObjectObj reaches the given stagepublic java.lang.String getEnterDate()
public void setExitDate(java.lang.String date)
date
- date of last time the ObjectObj leaves the given stagepublic java.lang.String getExitDate()
public long getDuration()
public Stage getAdminStage(Framework framework)
public boolean isCurrent()
public void resetValidations()
ObjectValidation
s from DB
public void setValidations(java.util.Vector<ObjectValidation> validations)
validations
- vector of ObjectValidation
spublic java.util.Vector<ObjectValidation> getValidations(Framework framework)
ObjectValidation
spublic ObjectValidation getValidation(java.lang.String validationName, Framework framework)
validationName
- the Validation
namepublic java.util.Vector<Validation> getAllStageValidations(Framework framework)
Validation
spublic java.lang.String accessToString(Framework framework)
framework
- the current framework
Stage.hasAccess(int, ObjectObj, Framework)
public java.lang.String accessToString(java.lang.String userName, Framework framework)
userName
- the name of user to get the accessframework
- the current framework
Stage.hasAccess(int, ObjectObj, String, Framework)
public void getHistory(Framework framework) throws OberonException
OberonException
public java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: name , enterdate , duration ...)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/name (example: validation , .. )filterArgs
- extra arguments used to compute propertiesframework
- the current framework
public org.jdom.Element getXMLValidations(Framework framework)
framework
- the current frameworkpublic org.jdom.Element toXML(Framework framework)
framework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
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 java.lang.String toString(java.lang.String indent, Framework framework)
indent
- set the row indent chars
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |