Class RestRuleActionModelMapper
java.lang.Object
org.alfresco.rest.api.impl.mapper.rules.RestRuleActionModelMapper
- All Implemented Interfaces:
RestModelMapper<Action,
Action>
@Experimental
public class RestRuleActionModelMapper
extends Object
implements RestModelMapper<Action,Action>
-
Constructor Summary
ConstructorsConstructorDescriptionRestRuleActionModelMapper
(ActionParameterConverter parameterConverter, List<ActionValidator> actionValidators) -
Method Summary
Modifier and TypeMethodDescriptiontoRestModel
(Action actionModel) Converts service POJO action to REST model action.toServiceModel
(Collection<Action> actions) Convert the REST model objects to composite action service POJO.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, toServiceModels, toServiceModels
-
Constructor Details
-
RestRuleActionModelMapper
public RestRuleActionModelMapper(ActionParameterConverter parameterConverter, List<ActionValidator> actionValidators)
-
-
Method Details
-
toRestModel
Converts service POJO action to REST model action.- Specified by:
toRestModel
in interfaceRestModelMapper<Action,
Action> - Parameters:
actionModel
- -Action
service POJO- Returns:
Action
REST model
-
toServiceModel
Convert the REST model objects to composite action service POJO.- Specified by:
toServiceModel
in interfaceRestModelMapper<Action,
Action> - Parameters:
actions
- List of actions.- Returns:
- The composite action service POJO.
-