|
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.ObjectDelegation
public class ObjectDelegation
Class used to manage ObjectObj
's delegations.
The delegation enable one or more delegate Users to perform ObjectObj manipulation in place of the delegator User(s).
The access regards a single ObjectObj and is valid if and only if the delegator is enabled to perform the same operation.
Constructor Summary | |
---|---|
ObjectDelegation()
|
Method Summary | |
---|---|
java.lang.String |
accessToString(java.lang.String delim)
Get access flags as String (convert to OOQL format) |
void |
addDelegateUser(java.lang.String userName)
Add a delegate user for ObjectObj manipulation |
void |
addDelegator(java.lang.String userName)
Add a User to the delegator list |
boolean |
canValidate()
Check is the delegates have the Validation access |
void |
fromXML(org.jdom.Element rootElement)
Load the ObjectDelegation from XML element tree |
java.util.BitSet |
getAccess()
Get access flags |
boolean |
getAccess(int accessType)
Get access flag for a specific operation |
java.util.Vector<java.lang.String> |
getDelegateUsers()
Return the list of delegate User names |
java.lang.String |
getDelegateUsersAsString(java.lang.String delim)
Return the list of delegate Users as String |
java.util.Vector<java.lang.String> |
getDelegators()
Get the delegator names list |
java.lang.String |
getDelegatorsAsString(java.lang.String delim)
Get the delegator list as String |
void |
getHistory(Framework framework)
[Inherited but not used] |
java.lang.String |
getKeyWord()
Get the delegation keyword |
java.lang.String |
getName()
[Inherited but not used] |
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 ObjectDelegation 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 administrative object names extracted by using an OOQL selector |
org.jdom.Element |
getXMLDelegatedAccess()
Return the delegated access as XML element tree |
void |
removeDelegateUser(java.lang.String userName)
Remove a delegate user |
void |
removeDelegateUsers()
Remove all delegate User s |
void |
removeDelegator(java.lang.String userName)
Remove a user the delegator list |
void |
removeDelegators()
Clean the delegator list |
void |
setAccess(java.util.BitSet accessFlags)
Set access flags |
void |
setAccess(int accessType,
boolean access)
Set access for a specific operation |
void |
setAllAccess()
Set access for all operations |
void |
setKeyWord(java.lang.String keyword)
Assign a keyword to the delegation so that it can be further removed using this alias |
void |
setNoAccess()
Revoke access for all operations |
void |
setValidate(boolean validate)
Extend or not the Validation (validate/refuse/ignore) access from delegator to the delegates |
java.lang.String |
toLineString()
Return the ObjectDelegation properties as a single line String |
java.lang.String |
toString(java.lang.String indent)
Return the ObjectDelegation properties as a single String |
org.jdom.Element |
toXML(Framework framework)
Return the ObjectDelegation 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, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectDelegation()
Method Detail |
---|
public void addDelegator(java.lang.String userName)
userName
- the User
namepublic void removeDelegator(java.lang.String userName)
userName
- the User
namepublic void removeDelegators()
public java.util.Vector<java.lang.String> getDelegators()
public java.lang.String getDelegatorsAsString(java.lang.String delim)
delim
- the User
names separatorpublic void addDelegateUser(java.lang.String userName)
ObjectObj
manipulation
userName
- the User
namepublic void removeDelegateUser(java.lang.String userName)
userName
- the User
namepublic void removeDelegateUsers()
User
s
public java.util.Vector<java.lang.String> getDelegateUsers()
User
names
public java.lang.String getDelegateUsersAsString(java.lang.String delim)
delim
- the User
names separatorpublic void setAccess(int accessType, boolean access)
accessType
- the operation typeaccess
- true to enable the delegate User
to perform the operationpublic void setAllAccess()
public void setNoAccess()
public void setAccess(java.util.BitSet accessFlags)
User
public boolean getAccess(int accessType)
accessType
- the operation typepublic java.util.BitSet getAccess()
public java.lang.String accessToString(java.lang.String delim)
delim
- the access type separatorpublic void setKeyWord(java.lang.String keyword)
public java.lang.String getKeyWord()
setKeyWord(String)
public void setValidate(boolean validate)
Validation
(validate/refuse/ignore) access from delegator to the delegates
validate
- true to enable / false disable the validation accesspublic boolean canValidate()
Validation
access
public void getHistory(Framework framework) throws OberonException
OberonException
public java.lang.String getName()
getName
in class OBBase
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: delegator , access ...)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)
OBBase
getTargetNames
in class OBBase
public org.jdom.Element getXMLDelegatedAccess()
public org.jdom.Element toXML(Framework framework)
framework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
public java.lang.String toLineString()
public java.lang.String toString(java.lang.String indent)
indent
- set the row indent chars
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |