Added removeProperty method to NodeService.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5558 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-04-26 08:34:43 +00:00
parent 6d39078356
commit d94db4e310
6 changed files with 74 additions and 4 deletions

View File

@@ -372,12 +372,10 @@ public interface NodeService
/**
* Sets the value of a property to be any <code>Serializable</code> instance.
* To remove a property value, use {@link #getProperties(NodeRef)}, remove the
* value and call {@link #setProperties(NodeRef, Map<QName,Serializable>)}.
* <p>
* <b>NOTE:</b> Null values <u>are</u> allowed.
*
* @param nodeRef
* @param nodeRef a reference to an existing node
* @param qname the fully qualified name of the property
* @param propertyValue the value of the property - never null
* @throws InvalidNodeRefException if the node could not be found
@@ -385,6 +383,16 @@ public interface NodeService
@Auditable(key = Auditable.Key.ARG_0 ,parameters = {"nodeRef", "qname", "value"})
public void setProperty(NodeRef nodeRef, QName qname, Serializable value) throws InvalidNodeRefException;
/**
* Removes a property value completely.
*
* @param nodeRef a reference to an existing node
* @param qname the fully qualified name of the property
* @throws InvalidNodeRefException if the node could not be found
*/
@Auditable(key = Auditable.Key.ARG_0 ,parameters = {"nodeRef", "qname"})
public void removeProperty(NodeRef nodeRef, QName qname) throws InvalidNodeRefException;
/**
* @param nodeRef the child node
* @return Returns a list of all parent-child associations that exist where the given