Search in sources :

Example 6 with ScriptValueTranslatorResult

use of com.enonic.xp.lib.value.ScriptValueTranslatorResult in project xp by enonic.

the class CreateNodeHandler method execute.

@Override
public Object execute() {
    final ScriptValueTranslatorResult params = getParams(this.params);
    final CreateNodeParams createNodeParams = new CreateNodeParamsFactory().create(params);
    final Node node = this.nodeService.create(createNodeParams);
    return new NodeMapper(node);
}
Also used : ScriptValueTranslatorResult(com.enonic.xp.lib.value.ScriptValueTranslatorResult) Node(com.enonic.xp.node.Node) NodeMapper(com.enonic.xp.lib.node.mapper.NodeMapper) CreateNodeParams(com.enonic.xp.node.CreateNodeParams)

Aggregations

ScriptValueTranslatorResult (com.enonic.xp.lib.value.ScriptValueTranslatorResult)6 PropertyTree (com.enonic.xp.data.PropertyTree)5 ScriptValueTranslator (com.enonic.xp.lib.value.ScriptValueTranslator)4 PropertySet (com.enonic.xp.data.PropertySet)1 NodeMapper (com.enonic.xp.lib.node.mapper.NodeMapper)1 CreateNodeParams (com.enonic.xp.node.CreateNodeParams)1 Node (com.enonic.xp.node.Node)1 AccessControlList (com.enonic.xp.security.acl.AccessControlList)1