Interface DisableConditions
- All Known Implementing Classes:
AbstractStaticRelativeDisableConditions
,ConfigDisableConditions
,ContentStaticRelativeDisableConditions
,DataHolderStaticRelativeDisableConditions
,DefaultDisableConditions
,SkinDisableConditions
,UsersAndGroupsDataDisableConditions
,VoidStaticRelativeDisableConditions
public interface DisableConditions
List of disable conditions
Composed by a list of sub conditions or conditions and a association operator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Association between sub conditions -
Method Summary
Modifier and TypeMethodDescriptionGet the associationGet the conditionsdefault Collection
<DisableCondition> Retrieves the external conditions of the currentDisableConditions
Each condition has an index to avoid confusion if there is several conditions with the same idGet the sub conditionsdefault void
Used to do more initialization, checks...void
setAssociation
(DisableConditions.ASSOCIATION_TYPE associationType) Set the association
-
Method Details
-
getConditions
Get the conditions- Returns:
- The list of conditions
-
getSubConditions
Get the sub conditions- Returns:
- The list of underlying conditions
-
getAssociationType
Get the association- Returns:
- The association
-
setAssociation
Set the association- Parameters:
associationType
- The new association between underlying conditions
-
init
Used to do more initialization, checks... needing model items of distant objects Called byModel
parsing when the model items of all models have been initialized.- Parameters:
model
- the model containing the definitiondefinition
- the model item defining this disable condition- Throws:
Exception
- if an error occurs or if an additional check fails.
-
getExternalDisableConditions
Retrieves the external conditions of the currentDisableConditions
Each condition has an index to avoid confusion if there is several conditions with the same id- Parameters:
context
- the definition context- Returns:
- the external conditions of the current
DisableConditions
-