mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user