10-23-2009 09:34 AM
QName PROP_QNAME_MY_PROPERTY = QName.createQName("http://www.custom.ch/model/custom/1.0", "myProperty");
Object value = nodeService.getProperty(destination, PROP_QNAME_MY_PROPERTY);
if (value==null){
…
}else{
…
}
Will be null if the nodeRef has not the property in the model but also null is this value has not been setted.10-23-2009 11:33 AM
10-26-2009 03:27 AM
10-26-2009 04:52 AM
10-26-2009 06:40 AM
…
Node currentNode =new Node(actionedUponNodeRef);
String currentNodeURI=currentNode.getType().getNamespaceURI();
if (currentNodeURI.equals("http://www.custom.ch/model/general/1.0")){
// I know that the property is setted on the document in this model http://www.custom.ch/model/general/1.0.
…
In this exemple the property to check is setted to a main document in the model http://www.custom.ch/model/general/1.0. (All documents in this model have the properties). If someone want to check a property which is not apply to all documents : compare the URI + type (compare the QNames).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.