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();
}
Aggregations