public abstract class AbstractVersionServiceImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService
The dictionary service
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
The common node service
|
protected PolicyComponent |
policyComponent
Policy component
|
| Constructor and Description |
|---|
AbstractVersionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
defaultOnCreateVersion(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<String,Serializable> versionProperties,
PolicyScope nodeDetails)
Default implementation of the on create version policy.
|
protected VersionRevertCallback.RevertAspectAction |
getRevertAspectAction(org.alfresco.service.namespace.QName aspectName,
VersionRevertDetails revertDetails)
How should revert deal with this aspect?
|
protected VersionRevertCallback.RevertAssocAction |
getRevertAssocAction(org.alfresco.service.namespace.QName className,
org.alfresco.service.namespace.QName assocName,
VersionRevertDetails revertDetails)
How should revert deal with this association
|
abstract org.alfresco.service.cmr.repository.StoreRef |
getVersionStoreReference() |
void |
initialise()
Initialise method
|
protected void |
invokeAfterCreateVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Version version)
Invoke the after create version policy bahaviour
|
protected void |
invokeAfterVersionRevert(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Version version)
Invokes after version has been reverted
|
protected void |
invokeBeforeCreateVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Invokes the before create version policy behaviour
|
protected String |
invokeCalculateVersionLabel(org.alfresco.service.namespace.QName classRef,
Version preceedingVersion,
int versionNumber,
Map<String,Serializable> versionProperties)
Invoke the calculate version label policy behaviour
|
protected void |
invokeOnCreateVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<String,Serializable> versionProperties,
PolicyScope nodeDetails)
Invoke the on create version policy behaviour
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the dictionary service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the general node service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Sets the policy component
|
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected PolicyComponent policyComponent
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the node servicepublic void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - the policy componentpublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionary servicepublic void initialise()
protected void invokeAfterVersionRevert(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Version version)
nodeRef - the node that has been revertedversion - the reverted versionprotected void invokeBeforeCreateVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - the node being versionedprotected void invokeAfterCreateVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Version version)
nodeRef - the nodeRef versionedversion - the created versionprotected void invokeOnCreateVersion(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<String,Serializable> versionProperties,
PolicyScope nodeDetails)
protected VersionRevertCallback.RevertAspectAction getRevertAspectAction(org.alfresco.service.namespace.QName aspectName, VersionRevertDetails revertDetails)
aspectName - QNamerevertDetails - VersionRevertDetailsprotected VersionRevertCallback.RevertAssocAction getRevertAssocAction(org.alfresco.service.namespace.QName className, org.alfresco.service.namespace.QName assocName, VersionRevertDetails revertDetails)
className - QNameassocName - QNamerevertDetails - VersionRevertDetailsprotected abstract void defaultOnCreateVersion(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<String,Serializable> versionProperties,
PolicyScope nodeDetails)
classRef - QNamenodeRef - NodeRefnodeDetails - PolicyScopeprotected String invokeCalculateVersionLabel(org.alfresco.service.namespace.QName classRef, Version preceedingVersion, int versionNumber, Map<String,Serializable> versionProperties)
classRef - QNamepreceedingVersion - VersionversionNumber - intpublic abstract org.alfresco.service.cmr.repository.StoreRef getVersionStoreReference()
Copyright © 2005–2018 Alfresco Software. All rights reserved.