03-23-2010 11:59 AM
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)03-23-2010 12:23 PM
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);
03-23-2010 12:41 PM
03-23-2010 12:57 PM
NodeRef actionedUponNodeRef = new NodeRef(new StoreRef("workspace", "SpacesStore"), this.ActionID);
Action ruleAction = actionService.getAction(actionedUponNodeRef,this.RuleID);
03-23-2010 03:01 PM
NodeRef docNode = new NodeRef(new StoreRef("workspace", "SpacesStore"), temp[1]);
Action ruleAction = this.actionService.getActions(docNode,this.RuleID);
03-24-2010 08:35 AM
03-24-2010 03:08 PM
03-24-2010 04:06 PM
List<Action> actions = this.actionService.getActions(this.nodeRef);03-24-2010 05:06 PM
03-26-2010 10:34 AM
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"));
}
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.