mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -214,10 +214,6 @@ public class CopyServiceImpl implements CopyService
|
|||||||
QName.createQName(NamespaceService.ALFRESCO_URI, "getCopyCallback"),
|
QName.createQName(NamespaceService.ALFRESCO_URI, "getCopyCallback"),
|
||||||
ContentModel.ASPECT_OWNABLE,
|
ContentModel.ASPECT_OWNABLE,
|
||||||
new JavaBehaviour(this, "getCallbackForOwnableAspect"));
|
new JavaBehaviour(this, "getCallbackForOwnableAspect"));
|
||||||
this.policyComponent.bindClassBehaviour(
|
|
||||||
QName.createQName(NamespaceService.ALFRESCO_URI, "getCopyCallback"),
|
|
||||||
ContentModel.ASPECT_AUTHOR,
|
|
||||||
new JavaBehaviour(this, "getCallbackForAuthorAspect"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public NodeRef copy(
|
public NodeRef copy(
|
||||||
@@ -1190,14 +1186,4 @@ public class CopyServiceImpl implements CopyService
|
|||||||
{
|
{
|
||||||
return DoNothingCopyBehaviourCallback.getInstance();
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user