NodeRef test = getnoderef(id)
Mais je ne trouve pas dans alfresco une classe me permettant de retourner un node ref en lui donnant une string (id)NodeRef(String nodeRef)
NodeRef(StoreRef storeRef, String id)
NodeRef(String protocol, String identifier,String id)
NodeRef node = new NodeRef(nodeRef); //Si vous avez le nodeRef
NodeRef node = new NodeRef(new StoreRef("workspace", "SpacesStore"), id); //Si vous avez que l'id et que le Store et le workspace://SpacesStore
NodeRef node = new NodeRef("workspace", "SpacesStore", id);
NodeRef actionedUponNodeRef = new NodeRef(new StoreRef("workspace", "SpacesStore"), this.ActionID);
Action ruleAction = actionService.getAction(actionedUponNodeRef,this.RuleID);
NodeRef docNode = new NodeRef(new StoreRef("workspace", "SpacesStore"), temp[1]);
Action ruleAction = this.actionService.getActions(docNode,this.RuleID);
List<Action> actions = this.actionService.getActions(this.nodeRef);
NodeRef rule = new NodeRef(new StoreRef("workspace", "SpacesStore"), temp[2] );
List<ChildAssociationRef> children = nodeService.getChildAssocs(rule);
for (ChildAssociationRef childAssoc : children) {
NodeRef childNodeRef = childAssoc.getChildRef();
String tempory_name = (String)this.nodeService.getProperty(childNodeRef, QName.createQName("http://www.alfresco.org/model/action/1.0", "parameterName"));
if(tempory_name != null){
if(tempory_name.equals("template")){
this.templateRef_x = childNodeRef;
}
if(tempory_name.equals("text")){
this.text_x = (String)this.nodeService.getProperty(childNodeRef, QName.createQName("http://www.alfresco.org/model/action/1.0", "parameterValue"));
}
if(tempory_name.equals("to")){
this.to_x=(String)this.nodeService.getProperty(childNodeRef, QName.createQName("http://www.alfresco.org/model/action/1.0", "parameterValue"));
}
if(tempory_name.equals("to_many")){
this.to_many_x = this.nodeService.getProperty(childNodeRef, QName.createQName("http://www.alfresco.org/model/action/1.0", "parameterValue"));
}
if(tempory_name.equals("from")){
this.from_x = (String)this.nodeService.getProperty(childNodeRef, QName.createQName("http://www.alfresco.org/model/action/1.0", "parameterValue"));
}
if(tempory_name.equals("subject")){
this.Subject_x = (String)this.nodeService.getProperty(childNodeRef, QName.createQName("http://www.alfresco.org/model/action/1.0", "parameterValue"));
}
}
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.