Class RestRuleCompositeConditionModelMapper
java.lang.Object
org.alfresco.rest.api.impl.mapper.rules.RestRuleCompositeConditionModelMapper
- All Implemented Interfaces:
RestModelMapper<CompositeCondition,
ActionCondition>
@Experimental
public class RestRuleCompositeConditionModelMapper
extends Object
implements RestModelMapper<CompositeCondition,ActionCondition>
-
Constructor Summary
ConstructorsConstructorDescriptionRestRuleCompositeConditionModelMapper
(RestModelMapper<SimpleCondition, ActionCondition> simpleConditionMapper) -
Method Summary
Modifier and TypeMethodDescriptiontoRestModel
(Collection<ActionCondition> actionConditions) Converts Action conditions (service POJO) list to composite condition (REST model).toServiceModels
(CompositeCondition compositeCondition) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.alfresco.rest.api.model.mapper.RestModelMapper
toRestModel, toRestModels, toRestModels, toServiceModel, toServiceModel, toServiceModels
-
Constructor Details
-
RestRuleCompositeConditionModelMapper
public RestRuleCompositeConditionModelMapper(RestModelMapper<SimpleCondition, ActionCondition> simpleConditionMapper)
-
-
Method Details
-
toRestModel
Converts Action conditions (service POJO) list to composite condition (REST model).- Specified by:
toRestModel
in interfaceRestModelMapper<CompositeCondition,
ActionCondition> - Parameters:
actionConditions
- - list ofActionCondition
service POJOs- Returns:
CompositeCondition
REST model
-
toServiceModels
- Specified by:
toServiceModels
in interfaceRestModelMapper<CompositeCondition,
ActionCondition>
-