Package com.groiss.wf
Enum Class WorklistKind
- All Implemented Interfaces:
DefinedEnum
,Serializable
,Comparable<WorklistKind>
,Constable
Specifies the kind of items of worklist (which items are to be included).
For use in the
WfEngine.getWorklist(WorklistKind, com.groiss.org.Application)
call and in combined form as Set in the
WfEngine.getWorklist(java.util.Set, com.groiss.org.Application)
call.
The worklist nodes in the standard GUI (standard.xml) are defined as
- USER
- ROLE
- SUBST_USER
- SUSP_NO_SUBST
- ROLESUSP+SUSP_ONLY_SUBST
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn entry for customized content where the task list may not only be filtered (task being removed) but also augmented with additional tasks Is empty if not filled by application code.A "fictional" worklist.The role worklist.The role worklist without substitutions.The rolesuspension worklist.The direct rolesuspension worklist.The worklist of substituted users.The suspension worklist.The direct suspension worklist.The suspension worklist for substituted users.The user worklist. -
Method Summary
Modifier and TypeMethodDescriptionGet the fixed value for this DefinedEnum.boolean
includedIn
(int worklistType) Checks, if the passed worklist type includes this WorklistKindstatic WorklistKind
Returns the enum constant of this class with the specified name.static WorklistKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
A "fictional" worklist. Does not contain any items. Must be defined via theWorklist
implementation. -
ROLE
The role worklist. Contains the (unsuspended) items assigned to the current user via her roles, including the items assigned via role substitution (those items that are assigned to roles that the current user substitutes). c.f.WfEngine.getRoleWorklist(com.groiss.org.Application)
-
SUSP
The suspension worklist. Contains the suspended items assigned directly to the current user, including suspended items assigned to users that are personally substituted by the current user. -
ROLESUSP
The rolesuspension worklist. Contains the suspended items assigned to the current user via her roles, including the items assigned via role substitution (those that are assigned to roles that the current user substitutes). -
USER
The user worklist. Contains the (unsuspended) items assigned directly to the current user. c.f.WfEngine.getWorklist(com.groiss.org.Application, boolean)
using false for withRepr} -
ROLE_NO_SUBST
The role worklist without substitutions. Contains the (unsuspended) items for roles which are directly assigned to the current user. -
SUSP_NO_SUBST
The direct suspension worklist. Contains the suspended items assigned directly to the current user. c.f.WfEngine.getSuspensionList(com.groiss.org.Application)
-
ROLESUSP_NO_SUBST
The direct rolesuspension worklist. Contains the suspended items items for roles which are directly assigned to the current user. c.f.WfEngine.getRoleSuspensionList(com.groiss.org.Application)
-
SUBST_USER
The worklist of substituted users. Contains the (unsuspended) items assigned to users that are personally substituted by the current user. -
SUSP_ONLY_SUBST
The suspension worklist for substituted users. Contains the suspended items assigned to users that are personally substituted by the current user. -
AUGMENTED
An entry for customized content where the task list may not only be filtered (task being removed) but also augmented with additional tasks Is empty if not filled by application code.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
definedValue
Description copied from interface:DefinedEnum
Get the fixed value for this DefinedEnum. At the moment, Strings, Shorts, Integers and Longs are supported.- Specified by:
definedValue
in interfaceDefinedEnum
- Returns:
- the fixed value
-
includedIn
public boolean includedIn(int worklistType) Checks, if the passed worklist type includes this WorklistKind- Parameters:
worklistType
- the type to check for inclusion- Returns:
- true, if the this WorklistKind is included in the passed worklistType
-