@Override public Void execute() throws Throwable { nodeService.deleteNode(nodeRef); return null; } }, false, newTransaction);
@Override public void delete(NodeRef nodeRef) { nodeService.deleteNode(nodeRef); // Done if (logger.isDebugEnabled()) { logger.debug("Deleted: \n" + " node: " + nodeRef); } }
@Override public void delete(NodeRef nodeRef) { apiFacet.getNodeService().deleteNode(nodeRef); }
/** * Delete the download node identified by nodeRef * @param nodeRef NodeRef */ public void delete(NodeRef nodeRef) { validateNode(nodeRef); nodeService.deleteNode(nodeRef); } }
@Override public void delete(NodeRef nodeRef) { apiFacet.getNodeService().deleteNode(nodeRef); }
public Object execute() throws Exception { // Delete the node DictionaryModelTypeTest.this.nodeService.deleteNode(node1); return null; } });
public void deleteRenditionDefinition(RenditionDefinition renderingAction) { NodeRef actionNodeRef = findOrCreateActionNode(renderingAction); if(actionNodeRef != null) { nodeService.deleteNode(actionNodeRef); } }
@Override public void deleteTopic(TopicInfo topic) { if (topic.getNodeRef() == null) { throw new IllegalArgumentException("Can't delete a topic that was never persisted"); } nodeService.deleteNode(topic.getNodeRef()); }
@Override public void deleteBlogPost(BlogPostInfo post) { if (post.getNodeRef() == null) { throw new IllegalArgumentException("Can't delete a post that was never persisted"); } nodeService.deleteNode(post.getNodeRef()); }
@Override public void deletePost(PostInfo post) { if (post.getNodeRef() == null) { throw new IllegalArgumentException("Can't delete a post that was never persisted"); } nodeService.deleteNode(post.getNodeRef()); }
@Override public void deleteBlogPost(BlogPostInfo post) { if (post.getNodeRef() == null) { throw new IllegalArgumentException("Can't delete a post that was never persisted"); } nodeService.deleteNode(post.getNodeRef()); }
public Void execute() throws Exception { if (!nodeService.exists(archivedNodeRef)) { // Node has disappeared return null; } invokeBeforePurgeNode(archivedNodeRef); nodeService.deleteNode(archivedNodeRef); return null; } };
public void deleteReplicationDefinition(ReplicationDefinition replicationAction) { QName actionName = replicationAction.getReplicationQName(); NodeRef actionNode = findActionNode(actionName); if(actionNode != null) { nodeService.deleteNode(actionNode); } }
@Override public void deleteQuickShareLinkExpiryAction(QuickShareLinkExpiryAction linkExpiryAction) { ParameterCheck.mandatory("linkExpiryAction", linkExpiryAction); NodeRef actionNodeRef = findOrCreateActionNode(linkExpiryAction); if (actionNodeRef != null) { nodeService.deleteNode(actionNodeRef); } }
public Object execute() throws Throwable { nodeService.deleteNode(contentNodeRef); // All URLs must be cleaned up urlsToMiss.addAll(urlsToExist); urlsToExist.clear(); // Done return null; } };
@Override public void deleteUser(String userName) throws AuthenticationException { NodeRef userRef = getUserOrNull(userName); if (userRef == null) { throw new AuthenticationException("User name does not exist: " + AuthenticationUtil.maskUsername(userName)); } nodeService.deleteNode(userRef); }
@Override public void deleteUser(String userName) throws AuthenticationException { NodeRef userRef = getUserOrNull(userName); if (userRef == null) { throw new AuthenticationException("User name does not exist: " + AuthenticationUtil.maskUsername(userName)); } nodeService.deleteNode(userRef); }
public void testSimple_Create_Commit_Delete_Commit() throws Exception { commitAndBeginNewTransaction(); nodeService.deleteNode(a); commitAndBeginNewTransaction(); }
@Override public Void execute() throws Throwable { // As system user AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName()); // Delete the template nodeService.deleteNode(template); return null; } });
public void deleteNode() { Version version = getVersion(); if (getVersionHistory().getPredecessor(version) == null) { connector.getNodeService().deleteNode(nodeRef); } else { connector.getVersionService().deleteVersion(nodeRef, version); } }