Package com.proxemo.todo4.bom
Class ToDoMembership
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoMembership
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoMembership extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
QUALIFICATION_HIGH
static int
QUALIFICATION_LOW
static int
QUALIFICATION_MEDIUM
static int
QUALIFICATION_NO
-
Constructor Summary
Constructors Constructor Description ToDoMembership()
ToDoMembership(ToDoMembership ms)
ToDoMembership(ToDoUser member, ToDoWorkGroup workgroup, int qualification, float activity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anonymize()
float
getActivity()
java.lang.Long
getId()
Method returning a canonical id of the object.ToDoUser
getMemberUser()
int
getQualification()
java.lang.Integer
getVersion()
Method returning the version of the instanceToDoWorkGroup
getWorkgroup()
java.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setActivity(float activity)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setMemberUser(ToDoUser memberUser)
void
setQualification(int qualification)
void
setToActive()
Method to undelete an object logically.void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.void
setWorkgroup(ToDoWorkGroup workgroup)
-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Field Detail
-
QUALIFICATION_NO
public static final int QUALIFICATION_NO
- See Also:
- Constant Field Values
-
QUALIFICATION_LOW
public static final int QUALIFICATION_LOW
- See Also:
- Constant Field Values
-
QUALIFICATION_MEDIUM
public static final int QUALIFICATION_MEDIUM
- See Also:
- Constant Field Values
-
QUALIFICATION_HIGH
public static final int QUALIFICATION_HIGH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToDoMembership
public ToDoMembership()
-
ToDoMembership
public ToDoMembership(ToDoUser member, ToDoWorkGroup workgroup, int qualification, float activity)
-
ToDoMembership
public ToDoMembership(ToDoMembership ms)
-
-
Method Detail
-
getQualification
public int getQualification()
- Returns:
- Returns the qualification of the memberUser for the associated workgroup
-
setQualification
public void setQualification(int qualification)
-
getActivity
public float getActivity()
- Returns:
- Returns the activity.
-
setActivity
public void setActivity(float activity)
- Parameters:
activity
- The activity to set.
-
getMemberUser
public ToDoUser getMemberUser()
- Returns:
- Returns the memberUser.
-
setMemberUser
public void setMemberUser(ToDoUser memberUser)
- Parameters:
memberUser
- The memberUser to set.
-
getWorkgroup
public ToDoWorkGroup getWorkgroup()
- Returns:
- Returns the workgroup.
-
setWorkgroup
public void setWorkgroup(ToDoWorkGroup workgroup)
- Parameters:
workgroup
- The workgroup to set.
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
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
-
-