@Name(value="documentVersioning") @Scope(value=CONVERSATION) @Install(precedence=10) public class DocumentVersioningBean extends Object implements DocumentVersioning, Serializable
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
availableVersioningOptionsMap
Deprecated.
since 5.7.3: versioning options map does not need to be kept in cache anymore here
|
protected CoreSession |
documentManager |
protected NavigationContext |
navigationContext |
protected ResourcesAccessor |
resourcesAccessor |
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(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Versioning increment options - select radio component validator method.
|
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
@In(create=true, required=false) protected transient CoreSession documentManager
@Deprecated protected Map<String,String> availableVersioningOptionsMap
@In(create=true) protected transient NavigationContext navigationContext
public DocumentVersioningBean()
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()
@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)
getVersionLabel
in interface DocumentVersioning
@Deprecated public String getVersioningOptionInstanceId()
getVersioningOptionInstanceId
in interface DocumentVersioning
@Deprecated public void setVersioningOptionInstanceId(String optionId)
DocumentVersioning
setVersioningOptionInstanceId
in interface DocumentVersioning
@Deprecated public void setVersioningOptionInstanceId(DocumentModel docModel, String optionId)
setVersioningOptionInstanceId
in interface DocumentVersioning
@Deprecated public void setVersioningOptionInstanceId(DocumentModel docModel, VersioningActions option)
setVersioningOptionInstanceId
in interface DocumentVersioning
public void validateOptionSelection(javax.faces.context.FacesContext context, javax.faces.component.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 © 2016 Nuxeo SA. All rights reserved.