Fixed ETHREEOH-1283: Copying file doesn't copy it's Author field

- Copying of cm:author was explicitly (and quite possibly needlessly) disabled
 - Took out non-default handling of cm:author on copy


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-05-21 13:43:57 +00:00
parent f056fd3b3a
commit 373c26db78

View File

@@ -214,10 +214,6 @@ public class CopyServiceImpl implements CopyService
QName.createQName(NamespaceService.ALFRESCO_URI, "getCopyCallback"),
ContentModel.ASPECT_OWNABLE,
new JavaBehaviour(this, "getCallbackForOwnableAspect"));
this.policyComponent.bindClassBehaviour(
QName.createQName(NamespaceService.ALFRESCO_URI, "getCopyCallback"),
ContentModel.ASPECT_AUTHOR,
new JavaBehaviour(this, "getCallbackForAuthorAspect"));
}
public NodeRef copy(
@@ -1190,14 +1186,4 @@ public class CopyServiceImpl implements CopyService
{
return DoNothingCopyBehaviourCallback.getInstance();
}
/**
* Callback behaviour retrieval for the 'author' aspect.
*
* @return Returns {@link DoNothingCopyBehaviourCallback} always
*/
public CopyBehaviourCallback getCallbackForAuthorAspect(QName classRef, CopyDetails copyDetails)
{
return DoNothingCopyBehaviourCallback.getInstance();
}
}