|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.version.common.AbstractVersionServiceImpl
public abstract class AbstractVersionServiceImpl
Abstract version service implementation.
| Field Summary | |
|---|---|
protected DictionaryService |
dictionaryService
The dictionary service |
protected NodeService |
nodeService
The common node service |
protected PolicyComponent |
policyComponent
Policy component |
| Constructor Summary | |
|---|---|
AbstractVersionServiceImpl()
|
|
| Method Summary | |
|---|---|
protected abstract void |
defaultOnCreateVersion(QName classRef,
NodeRef nodeRef,
java.util.Map versionProperties,
PolicyScope nodeDetails)
Default implementation of the on create version policy. |
abstract StoreRef |
getVersionStoreReference()
|
void |
initialise()
Initialise method |
protected void |
invokeAfterCreateVersion(NodeRef nodeRef,
Version version)
Invoke the after create version policy bahaviour |
protected void |
invokeBeforeCreateVersion(NodeRef nodeRef)
Invokes the before create version policy behaviour |
protected java.lang.String |
invokeCalculateVersionLabel(QName classRef,
Version preceedingVersion,
int versionNumber,
java.util.Map versionProperties)
Invoke the calculate version label policy behaviour |
protected void |
invokeOnCreateVersion(NodeRef nodeRef,
java.util.Map 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NodeService nodeService
protected PolicyComponent policyComponent
protected DictionaryService dictionaryService
| Constructor Detail |
|---|
public AbstractVersionServiceImpl()
| Method Detail |
|---|
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 invokeBeforeCreateVersion(NodeRef nodeRef)
nodeRef - the node being versioned
protected void invokeAfterCreateVersion(NodeRef nodeRef,
Version version)
nodeRef - the nodeRef versionedversion - the created version
protected void invokeOnCreateVersion(NodeRef nodeRef,
java.util.Map versionProperties,
PolicyScope nodeDetails)
protected abstract void defaultOnCreateVersion(QName classRef,
NodeRef nodeRef,
java.util.Map versionProperties,
PolicyScope nodeDetails)
nodeRef - versionProperties - nodeDetails -
protected java.lang.String invokeCalculateVersionLabel(QName classRef,
Version preceedingVersion,
int versionNumber,
java.util.Map versionProperties)
classRef - preceedingVersion - versionNumber - versionProperties -
public abstract StoreRef getVersionStoreReference()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||