Package org.ametys.core.model
Class ModelItemHelper
java.lang.Object
org.ametys.core.model.ModelItemHelper
- All Implemented Interfaces:
Component
,Serviceable
Helper for model items
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondisableConditionsToJSON
(ModelItem modelItem) Converts the model item's disable conditions in a JSON mapdisableConditionToJSON
(DisableCondition disableCondition) Converts the given disable condition in a JSON mapvoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon ROLE.
-
-
Constructor Details
-
ModelItemHelper
public ModelItemHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
disableConditionsToJSON
Converts the model item's disable conditions in a JSON map- Parameters:
modelItem
- The model item containing the disable conditions- Returns:
- The model item's disable conditions as a JSON map
-
disableConditionToJSON
Converts the given disable condition in a JSON map- Parameters:
disableCondition
- the disable condition to convert- Returns:
- The disable condition as a JSON map
-