mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Yet another merge from head to WCM-DEV2.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3774 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -59,6 +59,11 @@ public interface CopyService
|
||||
* not copied.
|
||||
* <p>
|
||||
* Source association are not copied.
|
||||
* <p>
|
||||
* <b>NOTE:</b> The top-level node has it's <b>cm:name</b> property removed for
|
||||
* associations that do not allow duplicately named children in order
|
||||
* to prevent any chance of a duplicate name clash. Reassign the
|
||||
* <b>cm:name</b> property and catch the {@link DuplicateChildNodeNameException}.
|
||||
*
|
||||
* @param sourceNodeRef the node reference used as the source of the copy
|
||||
* @param destinationParent the intended parent of the new node
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -34,6 +34,7 @@ import org.alfresco.repo.template.NodeSearchResultsMap;
|
||||
import org.alfresco.repo.template.SavedSearchResultsMap;
|
||||
import org.alfresco.repo.template.XPathResultsMap;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.audit.AuditInfo;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.lock.LockStatus;
|
||||
import org.alfresco.service.cmr.security.AccessPermission;
|
||||
@@ -495,7 +496,7 @@ public final class TemplateNode implements Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Display path to this node
|
||||
* @return Display path to this node - the path built of 'cm:name' attribute values.
|
||||
*/
|
||||
public String getDisplayPath()
|
||||
{
|
||||
@@ -514,6 +515,14 @@ public final class TemplateNode implements Serializable
|
||||
return displayPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QName path to this node. This can be used for Lucene PATH: style queries
|
||||
*/
|
||||
public String getQnamePath()
|
||||
{
|
||||
return this.services.getNodeService().getPath(this.nodeRef).toPrefixString(this.services.getNamespaceService());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the small icon image for this node
|
||||
*/
|
||||
@@ -652,6 +661,14 @@ public final class TemplateNode implements Serializable
|
||||
}
|
||||
|
||||
|
||||
// Audit API
|
||||
|
||||
|
||||
public List<AuditInfo> getAuditTrail()
|
||||
{
|
||||
return this.services.getAuditService().getAuditTrail(this.nodeRef);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Misc helpers
|
||||
|
||||
|
Reference in New Issue
Block a user