|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
java.lang.String |
factoryForIncrementationRules()
|
boolean |
factoryForRenderVersioningOption()
|
java.util.Map<java.lang.String,java.lang.String> |
getAvailableVersioningOptionsMap()
|
boolean |
getCreateSnapshot()
Deprecated. |
VersionInfo |
getCurrentDocumentVersionInfo()
|
java.util.Collection<VersionModel> |
getCurrentItemVersioningHistory()
Returns the available versioning history for the current document and state. |
java.util.Collection<VersioningActions> |
getCurrentItemVersioningOptions()
Deprecated. |
boolean |
getDefaultCreateSnapshot()
Deprecated. |
boolean |
getDisplayCreateSnapshotOption()
Deprecated. |
java.lang.String |
getIncRulesResult()
Deprecated. |
java.util.Collection<VersionModel> |
getItemVersioningHistory(DocumentModel document)
Returns the available versioning options for the document parameter and state. |
boolean |
getRendered()
|
java.lang.String |
getVersioningOptionInstanceId()
|
java.util.Map<java.lang.String,java.lang.String> |
getVersioningOptionsMap(DocumentModel doc)
Creates a Map with versioning options (as keys) and labels (as map entry values). |
java.lang.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(java.lang.Boolean rendered)
|
void |
setVersioningOptionInstanceId(DocumentModel docModel,
java.lang.String optionId)
|
void |
setVersioningOptionInstanceId(DocumentModel docModel,
VersioningActions option)
|
void |
setVersioningOptionInstanceId(java.lang.String optionId)
Web action method to set version increment option to the current documentModel. |
void |
validateOptionSelection(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.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 java.util.Collection<VersioningActions> getCurrentItemVersioningOptions()
DocumentVersioning
getCurrentItemVersioningOptions
in interface DocumentVersioning
public java.util.Collection<VersionModel> getItemVersioningHistory(DocumentModel document)
DocumentVersioning
getItemVersioningHistory
in interface DocumentVersioning
document
- the document for which the versioning options will be
returned
public java.util.Collection<VersionModel> getCurrentItemVersioningHistory()
DocumentVersioning
getCurrentItemVersioningHistory
in interface DocumentVersioning
@Factory(value="currentDocumentIncrementationRules", scope=EVENT) public java.lang.String factoryForIncrementationRules()
factoryForIncrementationRules
in interface DocumentVersioning
@Factory(autoCreate=true, value="currentDocumentVersionInfo", scope=EVENT) public VersionInfo getCurrentDocumentVersionInfo() throws ClientException
ClientException
@Deprecated public java.lang.String getIncRulesResult()
DocumentVersioning
getIncRulesResult
in interface DocumentVersioning
@Observer(value="documentSelectionChanged", create=false) @BypassInterceptors public void resetVersioningOption()
public java.util.Map<java.lang.String,java.lang.String> getAvailableVersioningOptionsMap()
getAvailableVersioningOptionsMap
in interface DocumentVersioning
@Observer(value="changeableDocumentCreated", create=false) @BypassInterceptors public void resetRenderingStatus()
public java.util.Map<java.lang.String,java.lang.String> getVersioningOptionsMap(DocumentModel doc)
DocumentVersioning
getVersioningOptionsMap
in interface DocumentVersioning
public java.lang.String getVersionLabel(DocumentModel doc) throws ClientException
getVersionLabel
in interface DocumentVersioning
ClientException
public java.lang.String getVersioningOptionInstanceId()
getVersioningOptionInstanceId
in interface DocumentVersioning
public void setVersioningOptionInstanceId(java.lang.String optionId) throws ClientException
DocumentVersioning
setVersioningOptionInstanceId
in interface DocumentVersioning
ClientException
public void setVersioningOptionInstanceId(DocumentModel docModel, java.lang.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(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.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(java.lang.Boolean rendered)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |