Package de.xima.fc.form.common.models
Class XItemConditionsDescriptor
- java.lang.Object
-
- de.xima.fc.form.common.models.XItemConditionsDescriptor
-
- All Implemented Interfaces:
Serializable
public class XItemConditionsDescriptor extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
-
-
-
Method Detail
-
getConditions
public List<XItemConditionDescriptor> getConditions()
- Returns:
- The condition is fulfilled when at least one of these conditions is fulfilled.
-
isAllowsAny
public boolean isAllowsAny()
- Returns:
- When true
true
: the condition is fulfilled when any (state, user group etc.) exists.
-
isAllowsNone
public boolean isAllowsNone()
- Returns:
- When true
true
: the condition is fulfilled when no (state, user group etc.) exists.
-
isHasAnyCondition
public boolean isHasAnyCondition()
- Returns:
true
if there is at least one condition,false
when this condition is unconditionally true.
-
forAvailableWhenState
public static XItemConditionsDescriptor forAvailableWhenState(XItem item)
-
forAvailableWhenStateWithParents
public static List<XItemConditionsDescriptor> forAvailableWhenStateWithParents(XItem item, Map<String,XItem> itemsByIdMap)
-
forAvailableWhenUserGroup
public static XItemConditionsDescriptor forAvailableWhenUserGroup(XItem item)
-
forAvailableWhenUserGroupWithParents
public static List<XItemConditionsDescriptor> forAvailableWhenUserGroupWithParents(XItem item, Map<String,XItem> itemsByIdMap)
-
forReadonlyWhenState
public static XItemConditionsDescriptor forReadonlyWhenState(XItem item)
-
forReadonlyWhenStateWithParents
public static List<XItemConditionsDescriptor> forReadonlyWhenStateWithParents(XItem item, Map<String,XItem> itemsByIdMap)
-
forReadonlyWhenUserGroup
public static XItemConditionsDescriptor forReadonlyWhenUserGroup(XItem item)
-
forReadonlyWhenUserGroupWithParents
public static List<XItemConditionsDescriptor> forReadonlyWhenUserGroupWithParents(XItem item, Map<String,XItem> itemsByIdMap)
-
forState
public static List<XItemConditionsDescriptor> forState(XItem item)
-
forStateWithParents
public static List<XItemConditionsDescriptor> forStateWithParents(XItem item, Map<String,XItem> itemsByIdMap)
-
forUserGroup
public static List<XItemConditionsDescriptor> forUserGroup(XItem item)
-
-