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