@Entity
public class TodoPerformer
extends com.whitestein.lsps.common.AbstractEntity
Modifier and Type | Class and Description |
---|---|
static class |
TodoPerformer.Source
Source of a todo performer.
|
Modifier | Constructor and Description |
---|---|
protected |
TodoPerformer()
Creates new instance of
TodoPerformer . |
Modifier and Type | Method and Description |
---|---|
static TodoPerformer |
allocation(String personId)
Creates new allocation person performer.
|
static TodoPerformer |
delegation(String personId,
Integer level,
String delegatedBy)
Creates new delegation person performer.
|
String |
getDelegatedBy()
Returns the delegated by person.
|
Integer |
getDelegationLevel()
Returns the delegation level.
|
String |
getPersonId()
Returns the person id.
|
RoleUnitName |
getRoleName()
Returns the role unit name.
|
TodoPerformer.Source |
getSource()
Returns the source of the performer.
|
Todo |
getTodo()
Returns the todo.
|
PerformerType |
getType()
Returns the type of the performer.
|
static TodoPerformer |
initial(RoleUnitName role)
Creates an initial role performer.
|
static TodoPerformer |
initial(String personId)
Creates an initial person performer.
|
static TodoPerformer |
initial(String roleName,
List<RoleUnitParameter> paramValues)
Creates an initial role performer.
|
static TodoPerformer |
initial(String roleName,
RoleUnitParameter... paramValues)
Creates an initial role performer.
|
static TodoPerformer |
initialAny()
Creates an initial any performer.
|
boolean |
isActive()
Returns true if this performer is active.
|
boolean |
isAllocation()
Returns true if this is an allocation performer.
|
boolean |
isCurrentDelegation()
Returns true if this is a delegation performer and the delegation level is the current todo
delegation level.
|
boolean |
isDelegation()
Returns true if this is a delegation performer.
|
boolean |
isInitial()
Returns true if this is an initial performer.
|
boolean |
isPersonPermitted(Person person)
Returns true if this performer permits the given person to see the todo.
|
boolean |
isTodoFinished()
Returns true if the corresponding todo is finished.
|
void |
setTodoFinished(boolean todoFinished)
Sets todo finished,
|
String |
toString() |
protected TodoPerformer()
TodoPerformer
.public static TodoPerformer initial(String personId)
personId
- NullPointerException
- if person
is nullpublic static TodoPerformer initial(String roleName, RoleUnitParameter... paramValues)
roleName
- paramValues
- NullPointerException
- if roleName
is nullpublic static TodoPerformer initial(String roleName, List<RoleUnitParameter> paramValues)
roleName
- paramValues
- NullPointerException
- if roleName
is nullpublic static TodoPerformer initial(RoleUnitName role)
role
- NullPointerException
- if role
is nullpublic static TodoPerformer initialAny()
public static TodoPerformer allocation(String personId)
personId
- NullPointerException
- if person
is nullpublic static TodoPerformer delegation(String personId, Integer level, String delegatedBy)
personId
- level
- delegatedBy
- NullPointerException
- if person
or level
or delegatedBy
is nullpublic TodoPerformer.Source getSource()
public PerformerType getType()
public String getPersonId()
public RoleUnitName getRoleName()
public Todo getTodo()
public Integer getDelegationLevel()
public boolean isInitial()
public boolean isAllocation()
public boolean isDelegation()
public boolean isCurrentDelegation()
public String getDelegatedBy()
public boolean isPersonPermitted(Person person)
person
- public boolean isActive()
public boolean isTodoFinished()
public void setTodoFinished(boolean todoFinished)
todoFinished
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.