@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 |
---|---|
boolean |
factoryForRenderVersioningOption()
Deprecated.
|
VersionIncEditOptions |
getAvailableVersioningOptions(DocumentModel doc) |
Map<String,String> |
getAvailableVersioningOptionsMap()
Deprecated.
|
VersionInfo |
getCurrentDocumentVersionInfo() |
Collection<VersionModel> |
getCurrentItemVersioningHistory()
Returns the available versioning history for the current document and
state.
|
Collection<VersionModel> |
getItemVersioningHistory(DocumentModel document)
Returns the available versioning options for the document parameter and
state.
|
boolean |
getRendered()
Deprecated.
since 5.7.3: rendered clause is now evaluated on the widget
definition instead
|
String |
getVersioningOptionInstanceId()
Deprecated.
|
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 |
resetVersioningOption() |
void |
setRendered(Boolean rendered)
Deprecated.
since 5.7.3: rendered clause is now evaluated on the widget
definition instead
|
void |
setVersioningOptionInstanceId(DocumentModel docModel,
String optionId)
Deprecated.
|
void |
setVersioningOptionInstanceId(DocumentModel docModel,
VersioningActions option)
Deprecated.
|
void |
setVersioningOptionInstanceId(String optionId)
Deprecated.
|
void |
validateOptionSelection(FacesContext context,
UIComponent component,
Object value)
Versioning increment options - select radio component validator method.
|
public Collection<VersionModel> getItemVersioningHistory(DocumentModel document)
DocumentVersioning
getItemVersioningHistory
in interface DocumentVersioning
document
- the document for which the versioning options will be
returnedpublic Collection<VersionModel> getCurrentItemVersioningHistory()
DocumentVersioning
getCurrentItemVersioningHistory
in interface DocumentVersioning
@Factory(autoCreate=true, value="currentDocumentVersionInfo", scope=EVENT) public VersionInfo getCurrentDocumentVersionInfo() throws ClientException
ClientException
@Observer(value={"documentSelectionChanged","documentChanged"}, create=false) @BypassInterceptors public void resetVersioningOption()
@Deprecated public Map<String,String> getAvailableVersioningOptionsMap()
getAvailableVersioningOptionsMap
in interface DocumentVersioning
public Map<String,String> getVersioningOptionsMap(DocumentModel doc)
DocumentVersioning
getVersioningOptionsMap
in interface DocumentVersioning
public VersionIncEditOptions getAvailableVersioningOptions(DocumentModel doc)
public String getVersionLabel(DocumentModel doc) throws ClientException
getVersionLabel
in interface DocumentVersioning
ClientException
@Deprecated public String getVersioningOptionInstanceId()
getVersioningOptionInstanceId
in interface DocumentVersioning
@Deprecated public void setVersioningOptionInstanceId(String optionId) throws ClientException
DocumentVersioning
setVersioningOptionInstanceId
in interface DocumentVersioning
ClientException
@Deprecated public void setVersioningOptionInstanceId(DocumentModel docModel, String optionId) throws ClientException
setVersioningOptionInstanceId
in interface DocumentVersioning
ClientException
@Deprecated public void setVersioningOptionInstanceId(DocumentModel docModel, VersioningActions option) throws ClientException
setVersioningOptionInstanceId
in interface DocumentVersioning
ClientException
public void validateOptionSelection(FacesContext context, UIComponent component, Object value)
DocumentVersioning
validateOptionSelection
in interface DocumentVersioning
@Deprecated @Factory(value="renderVersioningOptionsForCurrentDocument", scope=EVENT) public boolean factoryForRenderVersioningOption()
factoryForRenderVersioningOption
in interface DocumentVersioning
@Deprecated public boolean getRendered()
@Deprecated public void setRendered(Boolean rendered)
Copyright © 2013 Nuxeo SA. All Rights Reserved.