Package com.proxemo.todo4.bom
Class ToDoWorkGroup
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoWorkGroup
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
public class ToDoWorkGroup extends ToDoVersionedIdentifiable implements java.lang.Comparable
Represents a workgroup or skill pool. A workgroup and a skill pool are equal except the origin they are structured from.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INTERNAL_SUPPORT_NAME
static int
REGIONAL_GROUP
static int
SKILL_GROUP
static int
STANDARD_SERVICE_LEVEL
-
Constructor Summary
Constructors Constructor Description ToDoWorkGroup()
ToDoWorkGroup(ToDoWorkGroup w)
ToDoWorkGroup(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anonymize()
void
clearforTransmission()
int
compareTo(java.lang.Object o)
boolean
equals(java.lang.Object object)
com.proxemo.xutl.XUTLStringComparable
getComparableName()
java.lang.String
getDescription()
java.lang.Long
getId()
Method returning a canonical id of the object.int
getKind()
ToDoMembership
getMemberShip(ToDoUser user)
java.util.Set<ToDoMembership>
getMemberships()
int
getMembersOnline()
java.lang.String
getName()
java.lang.String
getOnAcceptScript()
java.lang.String
getOnCreateScript()
java.lang.String
getOnFinishScript()
java.lang.String
getOnSelectScript()
java.lang.String
getOnSendScript()
java.lang.String
getOnStartScript()
ToDoGroupPermission
getPermission(ToDoUser user)
java.util.Set<ToDoGroupPermission>
getPermissions()
int
getPrio()
java.lang.String
getResponsible()
long
getScheduledEndOffset()
int
getServiceLevel()
java.lang.String
getTextModules()
java.lang.Integer
getVersion()
Method returning the version of the instancejava.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)boolean
isGroup()
boolean
isSkill()
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setDescription(java.lang.String description)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setKind(int kind)
void
setMemberships(java.util.Set<ToDoMembership> memberships)
void
setMembersOnline(int membersOnline)
void
setName(java.lang.String name)
void
setOnAcceptScript(java.lang.String onAcceptScript)
void
setOnCreateScript(java.lang.String onCreateScript)
void
setOnFinishScript(java.lang.String onFinishScript)
void
setOnSelectScript(java.lang.String onSelectScript)
void
setOnSendScript(java.lang.String onSendScript)
void
setOnStartScript(java.lang.String onStartScript)
void
setPermissions(java.util.Set<ToDoGroupPermission> permissions)
void
setPrio(int prio)
void
setResponsible(java.lang.String responsible)
void
setScheduledEndOffset(long offset)
void
setServiceLevel(int serviceLevel)
void
setTextModules(java.lang.String textModules)
void
setToActive()
Method to undelete an object logically.void
setToKindOfGroup()
void
setToKindOfSkill()
void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.java.lang.String
toString()
-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Field Detail
-
STANDARD_SERVICE_LEVEL
public static int STANDARD_SERVICE_LEVEL
-
REGIONAL_GROUP
public static final int REGIONAL_GROUP
- See Also:
- Constant Field Values
-
SKILL_GROUP
public static final int SKILL_GROUP
- See Also:
- Constant Field Values
-
INTERNAL_SUPPORT_NAME
public static final java.lang.String INTERNAL_SUPPORT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToDoWorkGroup
public ToDoWorkGroup()
-
ToDoWorkGroup
public ToDoWorkGroup(java.lang.String name)
-
ToDoWorkGroup
public ToDoWorkGroup(ToDoWorkGroup w)
-
-
Method Detail
-
getMemberShip
public ToDoMembership getMemberShip(ToDoUser user)
-
getPermission
public ToDoGroupPermission getPermission(ToDoUser user)
-
getMemberships
public java.util.Set<ToDoMembership> getMemberships()
- Returns:
- Returns the users.
-
setMemberships
public void setMemberships(java.util.Set<ToDoMembership> memberships)
- Parameters:
users
- The users to set.
-
getPermissions
public java.util.Set<ToDoGroupPermission> getPermissions()
-
setPermissions
public void setPermissions(java.util.Set<ToDoGroupPermission> permissions)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getName
public java.lang.String getName()
-
isGroup
public boolean isGroup()
-
isSkill
public boolean isSkill()
-
setToKindOfGroup
public void setToKindOfGroup()
-
setToKindOfSkill
public void setToKindOfSkill()
-
getKind
public int getKind()
-
setKind
public void setKind(int kind)
-
setName
public void setName(java.lang.String name)
-
getMembersOnline
public int getMembersOnline()
-
setMembersOnline
public void setMembersOnline(int membersOnline)
-
getPrio
public int getPrio()
-
setPrio
public void setPrio(int prio)
-
getScheduledEndOffset
public long getScheduledEndOffset()
-
setScheduledEndOffset
public void setScheduledEndOffset(long offset)
-
getOnCreateScript
public java.lang.String getOnCreateScript()
-
setOnCreateScript
public void setOnCreateScript(java.lang.String onCreateScript)
-
getOnStartScript
public java.lang.String getOnStartScript()
-
setOnStartScript
public void setOnStartScript(java.lang.String onStartScript)
-
getOnFinishScript
public java.lang.String getOnFinishScript()
-
setOnFinishScript
public void setOnFinishScript(java.lang.String onFinishScript)
-
getOnAcceptScript
public java.lang.String getOnAcceptScript()
-
setOnAcceptScript
public void setOnAcceptScript(java.lang.String onAcceptScript)
-
getOnSendScript
public java.lang.String getOnSendScript()
-
setOnSendScript
public void setOnSendScript(java.lang.String onSendScript)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
getTextModules
public java.lang.String getTextModules()
-
setTextModules
public void setTextModules(java.lang.String textModules)
-
getComparableName
public com.proxemo.xutl.XUTLStringComparable getComparableName()
-
getServiceLevel
public int getServiceLevel()
-
setServiceLevel
public void setServiceLevel(int serviceLevel)
-
getResponsible
public java.lang.String getResponsible()
-
setResponsible
public void setResponsible(java.lang.String responsible)
-
clearforTransmission
public void clearforTransmission()
-
getOnSelectScript
public java.lang.String getOnSelectScript()
-
setOnSelectScript
public void setOnSelectScript(java.lang.String onSelectScript)
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiable
Method returning a canonical id of the object. Transient objects return -1;- Specified by:
getId
in classToDoVersionedIdentifiable
- Returns:
- id the id of the object. Id is canonical for all instances of a class.
-
setId
public void setId(java.lang.Long id)
Description copied from class:ToDoVersionedIdentifiable
Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setId
in classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiable
Method setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersion
in classToDoVersionedIdentifiable
- Parameters:
version
- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiable
Method that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActive
in classToDoVersionedIdentifiable
- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiable
Method setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActive
in classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in classToDoVersionedIdentifiable
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
-