Search in sources :

Example 1 with SetNodeStateParams

use of com.enonic.xp.node.SetNodeStateParams in project xp by enonic.

the class ResolveSyncWorkCommandTest method markAsDelete.

private void markAsDelete(final NodeId id) {
    SetNodeStateParams setNodeStateParams = SetNodeStateParams.create().nodeId(id).nodeState(NodeState.PENDING_DELETE).recursive(true).build();
    SetNodeStateCommand.create().params(setNodeStateParams).indexServiceInternal(this.indexServiceInternal).storageService(this.storageService).searchService(this.searchService).build().execute();
    refresh();
}
Also used : SetNodeStateParams(com.enonic.xp.node.SetNodeStateParams)

Aggregations

SetNodeStateParams (com.enonic.xp.node.SetNodeStateParams)1