mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Prevent the ownable and author aspect from being created.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2350 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -136,6 +136,14 @@ public class CopyServiceImpl implements CopyService
|
|||||||
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyNode"),
|
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyNode"),
|
||||||
ContentModel.ASPECT_COPIEDFROM,
|
ContentModel.ASPECT_COPIEDFROM,
|
||||||
new JavaBehaviour(this, "copyAspectOnCopy"));
|
new JavaBehaviour(this, "copyAspectOnCopy"));
|
||||||
|
this.policyComponent.bindClassBehaviour(
|
||||||
|
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyNode"),
|
||||||
|
ContentModel.ASPECT_OWNABLE,
|
||||||
|
new JavaBehaviour(this, "onCopyOwnable"));
|
||||||
|
this.policyComponent.bindClassBehaviour(
|
||||||
|
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyNode"),
|
||||||
|
ContentModel.ASPECT_AUTHOR,
|
||||||
|
new JavaBehaviour(this, "onCopyAuthor"));
|
||||||
this.policyComponent.bindClassBehaviour(
|
this.policyComponent.bindClassBehaviour(
|
||||||
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyComplete"),
|
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyComplete"),
|
||||||
ContentModel.ASPECT_COPIEDFROM,
|
ContentModel.ASPECT_COPIEDFROM,
|
||||||
@@ -753,6 +761,26 @@ public class CopyServiceImpl implements CopyService
|
|||||||
// the destination node.
|
// the destination node.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onCopyOwnable(
|
||||||
|
QName classRef,
|
||||||
|
NodeRef sourceNodeRef,
|
||||||
|
StoreRef destinationStoreRef,
|
||||||
|
boolean copyToNewNode,
|
||||||
|
PolicyScope copyDetails)
|
||||||
|
{
|
||||||
|
// Do nothing since the ownable aspect should not be copied
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onCopyAuthor(
|
||||||
|
QName classRef,
|
||||||
|
NodeRef sourceNodeRef,
|
||||||
|
StoreRef destinationStoreRef,
|
||||||
|
boolean copyToNewNode,
|
||||||
|
PolicyScope copyDetails)
|
||||||
|
{
|
||||||
|
// Do nothing since the author aspect should not be copied
|
||||||
|
}
|
||||||
|
|
||||||
public void onCopyComplete(
|
public void onCopyComplete(
|
||||||
QName classRef,
|
QName classRef,
|
||||||
NodeRef sourceNodeRef,
|
NodeRef sourceNodeRef,
|
||||||
|
Reference in New Issue
Block a user