Search in sources :

Example 1 with NodeCommitEntryMapper

use of com.enonic.xp.lib.node.mapper.NodeCommitEntryMapper in project xp by enonic.

the class CommitNodeHandler method execute.

@Override
public NodeCommitEntryMapper execute() {
    final NodeCommitEntry nodeCommitEntry = NodeCommitEntry.create().message(message).build();
    final NodeIds nodeIds = getNodeIds();
    final NodeCommitEntry createdCommitEntry = nodeService.commit(nodeCommitEntry, nodeIds);
    return new NodeCommitEntryMapper(createdCommitEntry);
}
Also used : NodeIds(com.enonic.xp.node.NodeIds) NodeCommitEntryMapper(com.enonic.xp.lib.node.mapper.NodeCommitEntryMapper) NodeCommitEntry(com.enonic.xp.node.NodeCommitEntry)

Aggregations

NodeCommitEntryMapper (com.enonic.xp.lib.node.mapper.NodeCommitEntryMapper)1 NodeCommitEntry (com.enonic.xp.node.NodeCommitEntry)1 NodeIds (com.enonic.xp.node.NodeIds)1