|
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.AdminBase com.oberon.ooql.sdk.Team
public class Team
Team Admin Object: defines a group of User
s.
Field Summary |
---|
Fields inherited from class com.oberon.ooql.sdk.AdminBase |
---|
bsOptions, HIDDEN_OPTION |
Constructor Summary | |
---|---|
Team()
|
|
Team(java.lang.String name)
|
Method Summary | |
---|---|
void |
addAssignment(java.lang.String assignmentName)
Add a Assignment to this Team; User s belonging to this Team inherit the Assignment access rights |
void |
addSubTeam(java.lang.String teamName)
Add a sub-Team to this Team |
void |
addUser(java.lang.String userName)
Add a User to this Team; the User will gain the access rights defined for this Team |
java.lang.String |
compareUpdate(Team refTeam,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this Team object and let it become equals to another reference object. |
void |
create(boolean force,
Framework framework)
Create a new Team object on the database |
void |
create(Framework framework)
Create a new Team object on the database |
void |
destroy(Framework framework)
Remove the Team object from the database. |
void |
fromXML(org.jdom.Element rootElement)
Load the Team object from XML element tree |
java.util.Vector<java.lang.String> |
getAssignments()
Get Assignment s for this Team |
java.lang.String |
getAssignmentsAsString(java.lang.String delim)
Get Assignment s for this Team as String |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Team object with the settled properties |
java.lang.String |
getLanguage()
Get the Language for this Team |
java.lang.String |
getLocalArea()
Get the default LocalArea for this Team |
java.lang.String |
getMailAddress()
Get the mail address for this Team |
java.util.Vector<java.lang.String> |
getOwnSubTeams()
Get direct sub-Teams for this Team |
java.lang.String |
getOwnSubTeamsAsString(java.lang.String delim)
Get direct sub-Teams for this Team as a String |
java.util.Vector<java.lang.String> |
getOwnUsers()
Return the list of Users belonging to this Team |
java.lang.String |
getOwnUsersAsString(java.lang.String delim)
Return the list of Users, belonging to this Team, 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 Team object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Team object with the modified properties. |
java.util.Vector<java.lang.String> |
getSubTeams(Framework framework)
Get all sub-Teams for this Team |
java.lang.String |
getSubTeamsAsString(java.lang.String delim,
Framework framework)
Get all sub-Teams for this Team as a String |
java.lang.String |
getSuperTeam()
Get the direct parent Team for this Team. |
java.util.Vector<java.lang.String> |
getSuperTeams(Framework framework)
Get the parent Teams for this Team. |
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> |
getUsers(Framework framework)
Return the list of Users belonging to this Team or to its sub-Teams |
java.lang.String |
getUsersAsString(java.lang.String delim,
Framework framework)
Return the list of Users, belonging to this Team or to its sub-Teams, as a String |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Team object: connect the memory instance with the database instance |
static Team |
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 |
removeAssignment(java.lang.String assignmentName)
Remove a Assignment for this Team; User s belonging to this Team loose the Assignment access rights |
void |
removeSubTeam(java.lang.String teamName)
Remove a sub-Team from this Team |
void |
removeUser(java.lang.String userName)
Remove a User from this Team; the User will loose the access rights defined for this Team |
void |
setLanguage(java.lang.String language)
Set the default Language for this Team |
void |
setLocalArea(java.lang.String localAreaName)
Set the default LocalArea for this Team |
void |
setMailAddress(java.lang.String emailAddress)
Set the mail address for this Team. |
void |
setSuperTeam(java.lang.String teamName)
Set the parent Team for this Team |
java.lang.String |
toString()
Return the Team object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Team object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Team object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Team object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
updateAssignments(java.util.Vector<java.lang.String> assignments)
Update the assignments 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 Team object to the database |
void |
write(Framework framework)
Update the Team 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 Team()
public Team(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public static Team 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 exceptionspublic void link(Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
link
in class AdminBase
framework
- the current frameworkcounters
- administrative object synch counters (if null read them from database)
OberonException
- usually due to DB SQL exceptionspublic void create(Framework framework) throws OberonException
create
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic void create(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 rightspublic void write(Framework framework) throws OberonException
write
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic 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 rightspublic void unlink(Framework framework) throws OberonException
unlink
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptionspublic void destroy(Framework framework) throws OberonException
destroy
in class AdminBase
framework
- 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 setLocalArea(java.lang.String localAreaName)
localAreaName
- the LocalArea
namepublic java.lang.String getLocalArea()
LocalArea
for this Team
public void setLanguage(java.lang.String language)
language
- the language abbreviation (max 3 chars)public java.lang.String getLanguage()
public java.util.Vector<java.lang.String> getSuperTeams(Framework framework)
public void setSuperTeam(java.lang.String teamName)
teamName
- then super-Team namepublic java.lang.String getSuperTeam()
public java.util.Vector<java.lang.String> getSubTeams(Framework framework)
public java.lang.String getSubTeamsAsString(java.lang.String delim, Framework framework)
delim
- the Team name separatorpublic void addSubTeam(java.lang.String teamName)
teamName
- then sub-Team namepublic void removeSubTeam(java.lang.String teamName)
teamName
- then sub-Team namepublic java.util.Vector<java.lang.String> getOwnSubTeams()
public java.lang.String getOwnSubTeamsAsString(java.lang.String delim)
delim
- the Team name separatorpublic void addUser(java.lang.String userName)
userName
- the name of the User
public void removeUser(java.lang.String userName)
userName
- the name of the User
public 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 java.util.Vector<java.lang.String> getUsers(Framework framework)
User
namespublic java.lang.String getUsersAsString(java.lang.String delim, Framework framework)
delim
- the separator item
User
names separated by the delim characterspublic void addAssignment(java.lang.String assignmentName)
User
s belonging to this Team inherit the Assignment access rights
assignmentName
- the name of the Assignment
public void removeAssignment(java.lang.String assignmentName)
User
s belonging to this Team loose the Assignment access rights
assignmentName
- the name of the Assignment
public void updateAssignments(java.util.Vector<java.lang.String> assignments)
assignments
- list of Assignment
's namespublic java.util.Vector<java.lang.String> getAssignments()
Assignment
s for this Team
public java.lang.String getAssignmentsAsString(java.lang.String delim)
Assignment
s for this Team as String
delim
- the separator itempublic 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: language , superteam ...)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: user, ownsubteam, .. )filterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString()
toString
in class AdminBase
public java.lang.String toString(Framework framework)
toString
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
toXML
in class AdminBase
getImage
- 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 AdminBase
public java.lang.String getCreateCommand(boolean force)
getCreateCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String compareUpdate(Team refTeam, boolean checkImage, boolean overwrite, boolean force, Framework framework) throws OberonException
refTeam
- the reference Team objectcheckImage
- if true compare also the image iconoverwrite
- if true update the database object instanceforce
- if true ignores optional propertiesframework
- the current framework
OberonException
fromXML(Element)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |