Added NodeDaoService.getNodePropertiesRaw(Long nodeId)

- Allow low-level retrieval of the persisted node properties
 - Unmarshalling of cm:auditable properties included


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15042 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-06-30 15:25:39 +00:00
parent e622af0425
commit ffb8441f71
2 changed files with 57 additions and 4 deletions

View File

@@ -32,6 +32,8 @@ import java.util.Set;
import org.alfresco.repo.domain.ChildAssoc;
import org.alfresco.repo.domain.NodeAssoc;
import org.alfresco.repo.domain.NodePropertyValue;
import org.alfresco.repo.domain.PropertyMapKey;
import org.alfresco.repo.domain.Transaction;
import org.alfresco.repo.domain.hibernate.DirtySessionAnnotation;
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
@@ -135,6 +137,17 @@ public interface NodeDaoService
@DirtySessionAnnotation(markDirty=false)
public Serializable getNodeProperty(Long nodeId, QName propertyQName);
/**
*
* @param nodeId the node's ID
* @return Returns a copy of the low-level properties including auditable properties
* @throws ObjectNotFoundException if the node ID is invalid
*
* @see #getNodePair(NodeRef)
*/
@DirtySessionAnnotation(markDirty=false)
public Map<PropertyMapKey, NodePropertyValue> getNodePropertiesRaw(Long nodeId);
@DirtySessionAnnotation(markDirty=false)
public Map<QName, Serializable> getNodeProperties(Long nodeId);