@Override public boolean exists(NodeRef nodeRef) { return nodeService.exists(nodeRef); }
public Boolean apply(NodeRef value) { return nodeService.exists(value); } };
/** * Checks whether the {@link ScriptNode} exists in the repository. * @return boolean */ public boolean exists() { return nodeService.exists(nodeRef); }
private boolean isValidResource(NodeRef node, Collection<QName> allowedTypes) { if (nodeService.exists(node)) { //Check if the node is one of the allowedTypes. return allowedTypes.contains(nodeService.getType(node)); } return false; }
private Path lookupPath(final NodeRef nodeRef) { Path path = null; if ((nodeRef != null) && (nodeService.exists(nodeRef))) { path = nodeService.getPath(nodeRef); } return path; }
/** * @param actionedUponNodeRef NodeRef */ protected void checkSourceNodeExists(NodeRef actionedUponNodeRef) { if (nodeService.exists(actionedUponNodeRef) == false) { String msg = "Cannot execute action as node does not exist: " + actionedUponNodeRef; logger.warn(msg); throw new RenditionServiceException(msg); } }
@Override public boolean exists(NodeRef nodeRef) { return apiFacet.getNodeService().exists(nodeRef); }
/** * Delegates to the <code>NodeService</code> used as the version store implementation */ public boolean exists(StoreRef storeRef) { return dbNodeService.exists(VersionUtil.convertStoreRef(storeRef)); }
@Override public Object doWork() { if (nodeService.exists(nodeRef) && lockService.getLockStatus(nodeRef) != LockStatus.LOCKED) { deleteFailedThumbnailChildren(nodeRef); } return null; } });
/** * Delegates to the <code>NodeService</code> used as the version store implementation */ public boolean exists(NodeRef nodeRef) { return dbNodeService.exists(VersionUtil.convertNodeRef(nodeRef)); }
public Void execute() throws Exception { if (!nodeService.exists(archivedNodeRef)) { // Node has disappeared return null; } invokeBeforePurgeNode(archivedNodeRef); nodeService.deleteNode(archivedNodeRef); return null; } };
private NodeRef lookupParentNodeRef(final NodeRef nodeRef) throws JSONException { NodeRef parentNodeRef = null; if (nodeService.exists(nodeRef)) { parentNodeRef = nodeService.getPrimaryParent(nodeRef).getParentRef(); } return parentNodeRef; }
/** * @see org.alfresco.repo.action.executer.ActionExecuter#execute(Action, NodeRef) */ public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef) { if (this.nodeService.exists(actionedUponNodeRef) == true) { // Remove the aspect QName aspectQName = (QName)ruleAction.getParameterValue(PARAM_ASPECT_NAME); this.nodeService.removeAspect(actionedUponNodeRef, aspectQName); } }
public Boolean command() throws Throwable { return serviceRegistry.getNodeService().exists(folderInfo.getNodeRef()); } }.run(true);
public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef) { if (nodeService.exists(actionedUponNodeRef) && isApplicableType(actionedUponNodeRef)) { ownableService.takeOwnership(actionedUponNodeRef); } } }
public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef) { if (nodeService.exists(actionedUponNodeRef) && isApplicableType(actionedUponNodeRef)) { ownableService.takeOwnership(actionedUponNodeRef); } } }
@Override public void onDeleteAssociation(AssociationRef nodeAssocRef) { // The act:actionSchedule type must have the association, so remove the source when the // association is deleted. NodeRef actionScheduleNodeRef = nodeAssocRef.getSourceRef(); if (nodeService.exists(actionScheduleNodeRef) && !nodeService.hasAspect(actionScheduleNodeRef, ContentModel.ASPECT_PENDING_DELETE)) { // Delete the source nodeService.deleteNode(actionScheduleNodeRef); } }
/** * @see org.alfresco.service.cmr.tagging.TaggingService#refreshTagScope(org.alfresco.service.cmr.repository.NodeRef, boolean) */ public void refreshTagScope(NodeRef nodeRef, boolean async) { if (this.nodeService.exists(nodeRef) == true && this.nodeService.hasAspect(nodeRef, ContentModel.ASPECT_TAGSCOPE) == true) { Action action = this.actionService.createAction(RefreshTagScopeActionExecuter.NAME); this.actionService.executeAction(action, nodeRef, false, async); } }
public void afterCheckOut(NodeRef workingCopy) { if (this.nodeService.exists(workingCopy) == true && this.nodeService.hasAspect(workingCopy, ContentModel.ASPECT_TAGGABLE) == true && this.nodeService.hasAspect(workingCopy, ContentModel.ASPECT_WORKING_COPY)) { updateAllScopeTags(workingCopy, Boolean.FALSE); } }
private void assertThatArchivedNodeExists(NodeRef originalNodeRef, String failureMsg) { final NodeRef archivedNodeRef = NODE_ARCHIVE_SERVICE.getArchivedNode(originalNodeRef); assertTrue(failureMsg, NODE_SERVICE.exists(archivedNodeRef)); }