- 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:
Roy Wetherall
2006-02-11 21:18:04 +00:00
parent c4a4e7ecba
commit 542775a3cd

View File

@@ -135,7 +135,15 @@ public class CopyServiceImpl implements CopyService
this.policyComponent.bindClassBehaviour(
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyNode"),
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(
QName.createQName(NamespaceService.ALFRESCO_URI, "onCopyComplete"),
ContentModel.ASPECT_COPIEDFROM,
@@ -752,6 +760,26 @@ public class CopyServiceImpl implements CopyService
// Do nothing. This will ensure that copy aspect on the source node does not get copied onto
// 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(
QName classRef,