|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.ecm.webapp.versioning.DocumentVersioningBean
@Name(value="documentVersioning") @Scope(value=CONVERSATION) @Install(precedence=10) public class DocumentVersioningBean
Web action bean for document versioning. Used also by other seam components through injection.
Constructor Summary | |
---|---|
DocumentVersioningBean()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentVersioningBean()
Method Detail |
---|
@Deprecated public Collection<VersioningActions> getCurrentItemVersioningOptions()
DocumentVersioning
getCurrentItemVersioningOptions
in interface DocumentVersioning
public Collection<VersionModel> getItemVersioningHistory(DocumentModel document)
DocumentVersioning
getItemVersioningHistory
in interface DocumentVersioning
document
- the document for which the versioning options will be
returned
public Collection<VersionModel> getCurrentItemVersioningHistory()
DocumentVersioning
getCurrentItemVersioningHistory
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()
DocumentVersioning
getIncRulesResult
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)
DocumentVersioning
getVersioningOptionsMap
in interface DocumentVersioning
public String getVersionLabel(DocumentModel doc) throws ClientException
getVersionLabel
in interface DocumentVersioning
ClientException
public String getVersioningOptionInstanceId()
getVersioningOptionInstanceId
in interface DocumentVersioning
public void setVersioningOptionInstanceId(String optionId) throws ClientException
DocumentVersioning
setVersioningOptionInstanceId
in interface DocumentVersioning
ClientException
public void setVersioningOptionInstanceId(DocumentModel docModel, String optionId) throws ClientException
setVersioningOptionInstanceId
in interface DocumentVersioning
ClientException
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 public void setCreateSnapshot(boolean createSnapshot)
setCreateSnapshot
in interface DocumentVersioning
@Deprecated public boolean getCreateSnapshot() throws ClientException
getCreateSnapshot
in interface DocumentVersioning
ClientException
@Deprecated public boolean getDefaultCreateSnapshot() throws ClientException
getDefaultCreateSnapshot
in interface DocumentVersioning
ClientException
@Deprecated public boolean getDisplayCreateSnapshotOption() throws ClientException
getDisplayCreateSnapshotOption
in interface DocumentVersioning
ClientException
@Factory(value="renderVersioningOptionsForCurrentDocument", scope=EVENT) public boolean factoryForRenderVersioningOption()
factoryForRenderVersioningOption
in interface DocumentVersioning
public boolean getRendered()
public void setRendered(Boolean rendered)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |