use of com.enonic.xp.content.ContentAccessException in project xp by enonic.
the class DeleteContentCommand method execute.
DeleteContentsResult execute() {
params.validate();
try {
final DeleteContentsResult deletedContents = doExecute();
nodeService.refresh(RefreshMode.SEARCH);
return deletedContents;
} catch (NodeAccessException e) {
throw new ContentAccessException(e);
}
}
use of com.enonic.xp.content.ContentAccessException in project xp by enonic.
the class RestoreContentCommand method execute.
RestoreContentsResult execute() {
params.validate();
try {
final RestoreContentsResult restoredContents = doExecute();
this.nodeService.refresh(RefreshMode.ALL);
return restoredContents;
} catch (MoveNodeException e) {
throw new RestoreContentException(e.getMessage(), ContentNodeHelper.translateNodePathToContentPath(e.getPath()));
} catch (NodeAccessException e) {
throw new ContentAccessException(e);
}
}
Aggregations