public NodeRef apply(String value) { if(value!=null && NodeRef.isNodeRef(value)) { return new NodeRef(value); } return null; } };
public NodeRef apply(String value) { if(value!=null && NodeRef.isNodeRef(value)) { return new NodeRef(value); } return null; } };
private void checkNodeRefList(boolean hasValue, String line, int i) { String value = checkValue(hasValue, line, i); if (value != null) { for (String nodeRefString: line.split(", *")) { nodeRefString = nodeRefString.trim(); if (nodeRefString.length() != 0 && !NodeRef.isNodeRef(nodeRefString)) { throw unexpectedProperty("Expected NodeRef value "+nodeRefString, line); } } } }
private void checkNodeRefList(boolean hasValue, String line, int i) { String value = checkValue(hasValue, line, i); if (value != null) { for (String nodeRefString: line.split(", *")) { nodeRefString = nodeRefString.trim(); if (nodeRefString.length() != 0 && !NodeRef.isNodeRef(nodeRefString)) { throw unexpectedProperty("Expected NodeRef value "+nodeRefString, line); } } } }
/** * @param uuid the uud to set */ public void setUuid(String uuid) { if(NodeRef.isNodeRef(uuid)) { NodeRef ref = new NodeRef(uuid); this.uuid = ref.getId(); } else { this.uuid = uuid; } }
/** * @param uuid the uud to set */ public void setUuid(String uuid) { if(NodeRef.isNodeRef(uuid)) { NodeRef ref = new NodeRef(uuid); this.uuid = ref.getId(); } else { this.uuid = uuid; } }
public void setUuids(String[] uuids) { this.uuids = new String[uuids.length]; for(int i = 0; i < uuids.length; i++) { if(NodeRef.isNodeRef(uuids[i])) { NodeRef ref = new NodeRef(uuids[i]); this.uuids[i] = ref.getId(); } else { this.uuids[i] = uuids[i]; } } }
if (NodeRef.isNodeRef(ref))
public void setUuids(String[] uuids) { this.uuids = new String[uuids.length]; for(int i = 0; i < uuids.length; i++) { if(NodeRef.isNodeRef(uuids[i])) { NodeRef ref = new NodeRef(uuids[i]); this.uuids[i] = ref.getId(); } else { this.uuids[i] = uuids[i]; } } }
if (NodeRef.isNodeRef(ref))
if (NodeRef.isNodeRef(importedRef))
if (NodeRef.isNodeRef(importedRef))
if(!NodeRef.isNodeRef((String)nodeRefStr))
if(!NodeRef.isNodeRef((String)nodeRefStr))
/** * This method returns the actionedUponNodeRef based on the submitted form data. */ private NodeRef getActionedUponNodeRef(ActionDefinition item, FormData data) { FieldData actionedUponNodeRef = data.getFieldData(DESTINATION); NodeRef result = null; // We'll allow a null actionedUponNodeRef as the actionService allows it. // However most action-executers require an actionedUponNodeRef and so most // executer implementations will throw an exception on execution. if (actionedUponNodeRef != null) { String nodeRefString = (String)actionedUponNodeRef.getValue(); if (NodeRef.isNodeRef(nodeRefString)) { result = new NodeRef(nodeRefString); } else { // We will disallow a malformed actionedUponNodeRef string throw new FormException("Illegal actionedUponNodeRef: " + nodeRefString); } } return result; }
/** * This method returns the actionedUponNodeRef based on the submitted form data. */ private NodeRef getActionedUponNodeRef(ActionDefinition item, FormData data) { FieldData actionedUponNodeRef = data.getFieldData(DESTINATION); NodeRef result = null; // We'll allow a null actionedUponNodeRef as the actionService allows it. // However most action-executers require an actionedUponNodeRef and so most // executer implementations will throw an exception on execution. if (actionedUponNodeRef != null) { String nodeRefString = (String)actionedUponNodeRef.getValue(); if (NodeRef.isNodeRef(nodeRefString)) { result = new NodeRef(nodeRefString); } else { // We will disallow a malformed actionedUponNodeRef string throw new FormException("Illegal actionedUponNodeRef: " + nodeRefString); } } return result; }
if (NodeRef.isNodeRef(item.getId()))
if (NodeRef.isNodeRef(item.getId()))
if (NodeRef.isNodeRef(ref))
if (NodeRef.isNodeRef(ref))