public class AbstractBaseCopyService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractBaseCopyService.AssociationCopyInfo
Simple container for storing data required to copy a node, including the parent association that will be copied along with
the new path part of the association that will be created by the copy.
|
Constructor and Description |
---|
AbstractBaseCopyService() |
Modifier and Type | Method and Description |
---|---|
protected AbstractBaseCopyService.AssociationCopyInfo |
getAssociationCopyInfo(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef sourceParentRef,
String newName,
boolean nameChanged)
Calculates
QName type of target association, which will be created after copying |
List<String> |
getSystemNamespaces() |
void |
setSystemNamespaces(List<String> systemNamespaces)
Set the namespaces that should be treated as 'system' namespaces.
|
public void setSystemNamespaces(List<String> systemNamespaces)
When files or folders are renamed, the association path (QName) is normally modified to follow the name of the node. If, however, the namespace of the patch QName is in this list, the association path is left alone. This allows parts of the application to use well-known paths even if the end-user is able to modify the objects cm:name value.
systemNamespaces
- a list of system namespacesprotected AbstractBaseCopyService.AssociationCopyInfo getAssociationCopyInfo(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef sourceParentRef, String newName, boolean nameChanged)
QName
type of target association, which will be created after copyingsourceNodeRef
- the node that will be copied (never null)sourceParentRef
- the parent of the node being copied (may be null)newName
- the planned new name of the nodenameChanged
- true if the name of the node is being changedCopyright © 2005–2017 Alfresco Software. All rights reserved.