mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged DEV/CHECK_EXISTS to HEAD
svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/DEV/CHECK_EXISTS@3442 svn://www.alfresco.org:3691/alfresco/BRANCHES/DEV/CHECK_EXISTS@3590 . TODO: Fix bug raising incorrect exception during UI paste of same-named file Note: - Added a new method to NodeService to get child by name - Added a new method to FileFolderService to perform fast, direct lookups based on name git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3591 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package org.alfresco.repo.node.db;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.repo.domain.ChildAssoc;
|
||||
@@ -24,6 +25,7 @@ import org.alfresco.repo.domain.NodeAssoc;
|
||||
import org.alfresco.repo.domain.NodeStatus;
|
||||
import org.alfresco.repo.domain.Store;
|
||||
import org.alfresco.service.cmr.dictionary.InvalidTypeException;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
@@ -128,6 +130,30 @@ public interface NodeDaoService
|
||||
QName assocTypeQName,
|
||||
QName qname);
|
||||
|
||||
/**
|
||||
* Change the name of the child node.
|
||||
*
|
||||
* @param childAssoc the child association to change
|
||||
* @param childName the name to put on the association
|
||||
*/
|
||||
public void setChildNameUnique(ChildAssoc childAssoc, String childName);
|
||||
|
||||
/**
|
||||
* Get all child associations for a given node
|
||||
*
|
||||
* @param parentNode the parent of the child associations
|
||||
* @return Returns all child associations for the given node
|
||||
*/
|
||||
public Collection<ChildAssoc> getChildAssocs(final Node parentNode);
|
||||
|
||||
/**
|
||||
* Get a collection of all child association references for a given parent node.
|
||||
*
|
||||
* @param parentNode the parent node
|
||||
* @return Returns a collection of association references
|
||||
*/
|
||||
public Collection<ChildAssociationRef> getChildAssocRefs(Node parentNode);
|
||||
|
||||
/**
|
||||
* @return Returns a matching association or null if one was not found
|
||||
*
|
||||
@@ -138,7 +164,12 @@ public interface NodeDaoService
|
||||
Node childNode,
|
||||
QName assocTypeQName,
|
||||
QName qname);
|
||||
|
||||
|
||||
/**
|
||||
* @return Returns an association matching the given parent, type and child name - or null
|
||||
* if not found
|
||||
*/
|
||||
public ChildAssoc getChildAssoc(Node parentNode, QName assocTypeQName, String childName);
|
||||
|
||||
/**
|
||||
* @param assoc the child association to remove
|
||||
@@ -164,6 +195,11 @@ public interface NodeDaoService
|
||||
Node targetNode,
|
||||
QName assocTypeQName);
|
||||
|
||||
/**
|
||||
* @return Returns a list of all node associations associated with the given node
|
||||
*/
|
||||
public List<NodeAssoc> getNodeAssocsToAndFrom(final Node node);
|
||||
|
||||
/**
|
||||
* @return Returns the node association or null if not found
|
||||
*/
|
||||
@@ -172,6 +208,16 @@ public interface NodeDaoService
|
||||
Node targetNode,
|
||||
QName assocTypeQName);
|
||||
|
||||
/**
|
||||
* @return Returns all the node associations where the node is the <b>source</b>
|
||||
*/
|
||||
public List<NodeAssoc> getTargetNodeAssocs(Node sourceNode);
|
||||
|
||||
/**
|
||||
* @return Returns all the node associations where the node is the </b>target</b>
|
||||
*/
|
||||
public List<NodeAssoc> getSourceNodeAssocs(Node targetNode);
|
||||
|
||||
/**
|
||||
* @param assoc the node association to remove
|
||||
*/
|
||||
|
Reference in New Issue
Block a user