public NodeRef[] getRequetedNodeRefs() { List<NodeRef> requestedNodeRefs = new ArrayList<NodeRef>(requestedNodes.size()); for (AssociationRef requestedNode : requestedNodes) { requestedNodeRefs.add(requestedNode.getTargetRef()); } return requestedNodeRefs.toArray(new NodeRef[requestedNodeRefs.size()]); }
public TemplateNode getTarget() { return new TemplateNode(assocRef.getTargetRef(), services, resolver); } }
public static NodeRef getSingleAssocNode(Collection<AssociationRef> assocs, boolean getTarget) { if(assocs != null && assocs.size()==1 ) { AssociationRef association = assocs.iterator().next(); return getTarget ? association.getTargetRef() : association.getSourceRef(); } return null; }
public static NodeRef getSingleAssocNode(Collection<AssociationRef> assocs, boolean getTarget) { if(assocs != null && assocs.size()==1 ) { AssociationRef association = assocs.iterator().next(); return getTarget ? association.getTargetRef() : association.getSourceRef(); } return null; }
public TemplateNode getTarget() { return new TemplateNode(assocRef.getTargetRef(), services, resolver); } }
private Set<NodeRef> processIncludedSet(NodeRef startingNode) { NodeService nodeService = serviceRegistry.getNodeService(); Set<NodeRef> foundNodes = new HashSet<NodeRef>(89); for (QName assocType : peerAssociationTypes) { List<AssociationRef> targets = nodeService.getTargetAssocs(startingNode, assocType); for (AssociationRef target : targets) { foundNodes.add(target.getTargetRef()); } } return foundNodes; }
private NodeRef getFileTransferRootNodeRef(NodeRef transferNodeRef) { //testing if transferring to file system if(!TransferModel.TYPE_FILE_TRANSFER_TARGET.equals(nodeService.getType(transferNodeRef))) return null; //get association List<AssociationRef> assocs = nodeService.getTargetAssocs(transferNodeRef, TransferModel.ASSOC_ROOT_FILE_TRANSFER); if(assocs.size() == 0 || assocs.size() > 1) return null; return assocs.get(0).getTargetRef(); }
private NodeRef getFileTransferRootNodeRef(NodeRef transferNodeRef) { //testing if transferring to file system if(!TransferModel.TYPE_FILE_TRANSFER_TARGET.equals(nodeService.getType(transferNodeRef))) return null; //get association List<AssociationRef> assocs = nodeService.getTargetAssocs(transferNodeRef, TransferModel.ASSOC_ROOT_FILE_TRANSFER); if(assocs.size() == 0 || assocs.size() > 1) return null; return assocs.get(0).getTargetRef(); }
public ScriptNode getTarget() { return (ScriptNode)new ValueConverter().convertValueForScript(this.services, this.scope, null, assocRef.getTargetRef()); } }
/** * * @param ref AssociationRef */ public AssociationRefKey(AssociationRef ref) { this.sourceRef = ref.getSourceRef(); this.targetRef = ref.getTargetRef(); this.assocTypeQName = ref.getTypeQName(); }
private Set<NodeRef> getUnsubscribedFolders(String userName) { Set<NodeRef> result = new HashSet<NodeRef>(); PersonService personService = serviceRegistry.getPersonService(); NodeRef userRef = personService.getPerson(userName); List<AssociationRef> unsubscribedFodlers = nodeService.getTargetAssocs(userRef, ImapModel.ASSOC_IMAP_UNSUBSCRIBED); for (AssociationRef asocRef : unsubscribedFodlers) { result.add(asocRef.getTargetRef()); } return result; }
public ScriptNode getTarget() { return (ScriptNode)new ValueConverter().convertValueForScript(this.services, this.scope, null, assocRef.getTargetRef()); } }
/** * * @param ref AssociationRef */ public AssociationRefKey(AssociationRef ref) { this.sourceRef = ref.getSourceRef(); this.targetRef = ref.getTargetRef(); this.assocTypeQName = ref.getTypeQName(); }
public Serializable getValueInternal(CMISNodeInfo nodeInfo) { NodeRef targetNodeRef = nodeInfo.getAssociationRef().getTargetRef(); return createNodeInfo(targetNodeRef).getObjectId(); } }
public Serializable getValueInternal(CMISNodeInfo nodeInfo) { NodeRef targetNodeRef = nodeInfo.getAssociationRef().getTargetRef(); return createNodeInfo(targetNodeRef).getObjectId(); } }
@Override public AssociationRef getName(AssociationRef assocRef) { if (assocRef == null) { return null; } return new AssociationRef(assocRef.getId(), getName(assocRef.getSourceRef()), assocRef.getTypeQName(), getName(assocRef.getTargetRef())); }
@Override public AssociationRef getBaseName(AssociationRef assocRef) { if (assocRef == null) { return null; } return new AssociationRef(assocRef.getId(), getBaseName(assocRef.getSourceRef()), assocRef.getTypeQName(), getBaseName(assocRef.getTargetRef())); }
@Override public AssociationRef getName(AssociationRef assocRef) { if (assocRef == null) { return null; } return new AssociationRef(assocRef.getId(), getName(assocRef.getSourceRef()), assocRef.getTypeQName(), getName(assocRef.getTargetRef())); }
@Override public AssociationRef getBaseName(AssociationRef assocRef) { if (assocRef == null) { return null; } return new AssociationRef(assocRef.getId(), getBaseName(assocRef.getSourceRef()), assocRef.getTypeQName(), getBaseName(assocRef.getTargetRef())); }
@Override public Void execute() throws Throwable { List<AssociationRef> refs = nodeService.getTargetAssocs(testContext.sourceNodeRef, RegexQNamePattern.MATCH_ALL); if(refs.size() > 0) { AssociationRef ref = refs.get(0); nodeService.removeAssociation(ref.getSourceRef(), ref.getTargetRef(), ref.getTypeQName()); } return null; } };