|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.OBBase
com.oberon.ooql.sdk.AdminBase
com.oberon.ooql.sdk.Assignment
public class Assignment
Assignment Admin Object: defines a User role for the application context.
| Field Summary |
|---|
| Fields inherited from class com.oberon.ooql.sdk.AdminBase |
|---|
bsOptions, HIDDEN_OPTION |
| Constructor Summary | |
|---|---|
Assignment()
|
|
Assignment(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addTeam(java.lang.String teamName)
Add this Assignment to a Team; Users belonging to this Team will gain the access rights defined for this role |
void |
addUser(java.lang.String userName)
Add this Assignment to a User; the User will gain the access rights defined for this role |
java.lang.String |
compareUpdate(Assignment refAssignment,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this Assignment object and let it become equals to another reference object. |
void |
create(boolean force,
Framework framework)
Create a new Assignment object on the database |
void |
create(Framework framework)
Create a new Assignment object on the database |
void |
destroy(Framework framework)
Remove the Assignment object from the database |
void |
fromXML(org.jdom.Element rootElement)
Load the Assignment object properties from XML element tree |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Assignment object with the settled properties |
java.lang.String |
getLanguage()
Get the Language for this Assignment |
java.lang.String |
getMailAddress()
Get the mail address for this Assignment |
java.util.Vector<java.lang.String> |
getOwnTeams()
Return the list of Teams directly associated with this Assignment |
java.lang.String |
getOwnTeamsAsString(java.lang.String delim)
Return the list of Teams, directly associated with this Assignment, as a String |
java.util.Vector<java.lang.String> |
getOwnUsers()
Return the list of Users who have this Assignment |
java.lang.String |
getOwnUsersAsString(java.lang.String delim)
Return the list of Users, who have this Assignment, as a String |
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 Assignment object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Assignment object with the modified properties. |
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 |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Assignment object: connect the memory instance with the database instance |
static Assignment |
open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open an administrative object and read properties from the database or retrieve them from memory |
void |
removeTeam(java.lang.String teamName)
Remove this Assignment for a Team; Users belonging to this Team
will loose the access rights defined for this role |
void |
removeUser(java.lang.String userName)
Remove this Assignment for a User; the User will loose the access rights defined for this role |
void |
setLanguage(java.lang.String language)
Set the default Language for this Assignment |
void |
setMailAddress(java.lang.String emailAddress)
Set the mail address for this Assignment If the mail address is settled, the OBEROn e-mail will be sent to this address otherwise an internal and/or external e-mail will be sent to each user who has this Assignment |
java.lang.String |
toString()
Return the Assignment object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Assignment object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Assignment object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Assignment object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
updateTeams(java.util.Vector<java.lang.String> teams)
Update the teams on the basis of a given list |
void |
updateUsers(java.util.Vector<java.lang.String> users)
Update the users on the basis of a given list |
void |
write(boolean force,
Framework framework)
Update the Assignment object to the database |
void |
write(Framework framework)
Update the Assignment object to the database |
| 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 Assignment()
public Assignment(java.lang.String name)
throws OberonException
name - the name of the administrative object
OberonException - if the name contains invalid characters| Method Detail |
|---|
public static Assignment open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
name - the object nameframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
link in class AdminBaseframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
create in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void create(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional propertiesframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(Framework framework)
throws OberonException
write in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void unlink(Framework framework)
throws OberonException
unlink in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions
public void destroy(Framework framework)
throws OberonException
destroy in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rightspublic void setMailAddress(java.lang.String emailAddress)
emailAddress - the email addressUser.setMailAddress(String),
User.setMailType(boolean, boolean),
Mail.send(Framework)public java.lang.String getMailAddress()
public void setLanguage(java.lang.String language)
language - the language abbreviation (max 3 chars)public java.lang.String getLanguage()
public void addUser(java.lang.String userName)
userName - the name of the Userpublic void removeUser(java.lang.String userName)
userName - the name of the Userpublic void updateUsers(java.util.Vector<java.lang.String> users)
users - list of User's namespublic java.util.Vector<java.lang.String> getOwnUsers()
User namespublic java.lang.String getOwnUsersAsString(java.lang.String delim)
delim - the separator item
User names separated by the delim characterspublic void addTeam(java.lang.String teamName)
teamName - the name of the Teampublic void removeTeam(java.lang.String teamName)
Users belonging to this Team
will loose the access rights defined for this role
teamName - the name of the Teampublic void updateTeams(java.util.Vector<java.lang.String> teams)
teams - list of Team's namespublic java.util.Vector<java.lang.String> getOwnTeams()
Team namespublic java.lang.String getOwnTeamsAsString(java.lang.String delim)
delim - the separator item
Team names separated by the delim characters
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 OBBasepropertyName - OOQL property identifier/name (example: language , email ...)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 OBBasecomposedName - OOQL property identifier/name (example: user , team .. )filterArgs - extra arguments used to compute propertiesframework - the current framework
public java.lang.String toString()
toString in class AdminBasepublic java.lang.String toString(Framework framework)
toString in class AdminBaseframework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML in class AdminBaseframework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
toXML in class AdminBasegetImage - true to include "imagedata" element with the base64 encoded image datafullDump - true to include detailed informationframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML in class AdminBasepublic java.lang.String getCreateCommand(boolean force)
getCreateCommand in class AdminBaseforce - if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand in class AdminBaseforce - if true append the "force" options at the end
public java.lang.String compareUpdate(Assignment refAssignment,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
throws OberonException
refAssignment - the reference Assignment objectcheckImage - if true compare also the image iconoverwrite - if true update the database object instanceforce - if true ignores optional propertiesframework - the current framework
OberonExceptionfromXML(Element)
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||