@Name(value="documentVersioning") @Scope(value=CONVERSATION) @Install(precedence=10) public class DocumentVersioningBean extends Object implements DocumentVersioning, Serializable
| Constructor and Description |
|---|
DocumentVersioningBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
factoryForIncrementationRules() |
boolean |
factoryForRenderVersioningOption() |
Map<String,String> |
getAvailableVersioningOptionsMap() |
boolean |
getCreateSnapshot()
Deprecated.
|
VersionInfo |
getCurrentDocumentVersionInfo() |
Collection<VersionModel> |
getCurrentItemVersioningHistory()
Returns the available versioning history for the current document and
state.
|
Collection<VersioningActions> |
getCurrentItemVersioningOptions()
Deprecated.
|
boolean |
getDefaultCreateSnapshot()
Deprecated.
|
boolean |
getDisplayCreateSnapshotOption()
Deprecated.
|
String |
getIncRulesResult()
Deprecated.
|
Collection<VersionModel> |
getItemVersioningHistory(DocumentModel document)
Returns the available versioning options for the document parameter and
state.
|
boolean |
getRendered() |
String |
getVersioningOptionInstanceId() |
Map<String,String> |
getVersioningOptionsMap(DocumentModel doc)
Creates a Map with versioning options (as keys) and labels (as map entry
values).
|
String |
getVersionLabel(DocumentModel doc) |
void |
resetRenderingStatus()
For documents about to be created there should be no versioning options.
|
void |
resetVersioningOption() |
void |
setCreateSnapshot(boolean createSnapshot)
Deprecated.
|
void |
setRendered(Boolean rendered) |
void |
setVersioningOptionInstanceId(DocumentModel docModel,
String optionId) |
void |
setVersioningOptionInstanceId(DocumentModel docModel,
VersioningActions option) |
void |
setVersioningOptionInstanceId(String optionId)
Web action method to set version increment option to the current
documentModel.
|
void |
validateOptionSelection(FacesContext context,
UIComponent component,
Object value)
Versioning increment options - select radio component validator method.
|
@Deprecated public Collection<VersioningActions> getCurrentItemVersioningOptions()
DocumentVersioninggetCurrentItemVersioningOptions in interface DocumentVersioningpublic Collection<VersionModel> getItemVersioningHistory(DocumentModel document)
DocumentVersioninggetItemVersioningHistory in interface DocumentVersioningdocument - the document for which the versioning options will be
returnedpublic Collection<VersionModel> getCurrentItemVersioningHistory()
DocumentVersioninggetCurrentItemVersioningHistory in interface DocumentVersioning@Factory(value="currentDocumentIncrementationRules", scope=EVENT) public String factoryForIncrementationRules()
factoryForIncrementationRules in interface DocumentVersioning@Factory(autoCreate=true, value="currentDocumentVersionInfo", scope=EVENT) public VersionInfo getCurrentDocumentVersionInfo() throws ClientException
ClientException@Deprecated public String getIncRulesResult()
DocumentVersioninggetIncRulesResult in interface DocumentVersioning@Observer(value={"documentSelectionChanged","documentChanged"}, create=false) @BypassInterceptors public void resetVersioningOption()
public Map<String,String> getAvailableVersioningOptionsMap()
getAvailableVersioningOptionsMap in interface DocumentVersioning@Observer(value="changeableDocumentCreated", create=false) @BypassInterceptors public void resetRenderingStatus()
public Map<String,String> getVersioningOptionsMap(DocumentModel doc)
DocumentVersioninggetVersioningOptionsMap in interface DocumentVersioningpublic String getVersionLabel(DocumentModel doc) throws ClientException
getVersionLabel in interface DocumentVersioningClientExceptionpublic String getVersioningOptionInstanceId()
getVersioningOptionInstanceId in interface DocumentVersioningpublic void setVersioningOptionInstanceId(String optionId) throws ClientException
DocumentVersioningsetVersioningOptionInstanceId in interface DocumentVersioningClientExceptionpublic void setVersioningOptionInstanceId(DocumentModel docModel, String optionId) throws ClientException
setVersioningOptionInstanceId in interface DocumentVersioningClientExceptionpublic void setVersioningOptionInstanceId(DocumentModel docModel, VersioningActions option) throws ClientException
setVersioningOptionInstanceId in interface DocumentVersioningClientExceptionpublic void validateOptionSelection(FacesContext context, UIComponent component, Object value)
DocumentVersioningvalidateOptionSelection in interface DocumentVersioning@Deprecated public void setCreateSnapshot(boolean createSnapshot)
setCreateSnapshot in interface DocumentVersioning@Deprecated public boolean getCreateSnapshot() throws ClientException
getCreateSnapshot in interface DocumentVersioningClientException@Deprecated public boolean getDefaultCreateSnapshot() throws ClientException
getDefaultCreateSnapshot in interface DocumentVersioningClientException@Deprecated public boolean getDisplayCreateSnapshotOption() throws ClientException
getDisplayCreateSnapshotOption in interface DocumentVersioningClientException@Factory(value="renderVersioningOptionsForCurrentDocument", scope=EVENT) public boolean factoryForRenderVersioningOption()
factoryForRenderVersioningOption in interface DocumentVersioningpublic boolean getRendered()
public void setRendered(Boolean rendered)
Copyright © 2012 Nuxeo SA. All Rights Reserved.