|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.BaseDetailsBean
org.alfresco.web.bean.content.DocumentDetailsDialog
public class DocumentDetailsDialog
Backing bean providing access to the details of a document
Field Summary | |
---|---|
protected org.alfresco.service.cmr.coci.CheckOutCheckInService |
cociService
|
protected org.alfresco.service.cmr.ml.ContentFilterLanguagesService |
contentFilterLanguagesService
|
protected org.alfresco.service.cmr.ml.EditionService |
editionService
|
protected org.alfresco.service.cmr.lock.LockService |
lockService
|
protected org.alfresco.service.cmr.ml.MultilingualContentService |
multilingualContentService
|
protected org.alfresco.service.cmr.version.VersionService |
versionService
|
Fields inherited from class org.alfresco.web.bean.BaseDetailsBean |
---|
imageResolver, panels, template, workflowProperties |
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
DocumentDetailsDialog()
Default constructor |
Method Summary | |
---|---|
void |
applyClassifiable()
Applies the classifiable aspect to the current document |
java.lang.String |
applyInlineEditable()
Applies the inlineeditable aspect to the current document |
void |
applyVersionable()
Applies the versionable aspect to the current document |
java.lang.String |
cancel()
Method handler called when the cancel button of the dialog is pressed |
java.lang.String |
editContentProperties()
Fixes an issue reported in https://issues.alfresco.com/jira/browse/ETWOONE-92 |
void |
expandPanel(javax.faces.event.ActionEvent event)
Save the state of the panel that was expanded/collapsed |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard. |
java.lang.String |
getBrowserUrl()
Returns the URL to the content for the current document |
java.lang.String |
getCancelButtonLabel()
Returns the label to use for the cancel button |
java.lang.String |
getCategoriesOverviewHTML()
Returns a list of objects representing the categories applied to the current document |
protected org.alfresco.service.cmr.coci.CheckOutCheckInService |
getCheckOutCheckInService()
|
java.lang.String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog |
java.lang.String |
getContainerTitle()
Returns the title to be used for the dialog |
protected org.alfresco.service.cmr.ml.ContentFilterLanguagesService |
getContentFilterLanguagesService()
|
java.lang.String |
getCurrentItemId()
|
SingleEditionBean |
getCurrentSingleEditionBean()
For the client side iteration on the edition hitories list, return the current edition history. |
Node |
getDocument()
Returns the document this bean is currently representing |
Node |
getDocumentMlContainer()
Returns the ml container of the document this bean is currently representing |
java.lang.String |
getDownloadUrl()
Returns the download URL to the content for the current document |
protected org.alfresco.service.cmr.ml.EditionService |
getEditionService()
|
protected Node |
getLinkResolvedNode()
Resolve the actual document Node from any Link object that may be proxying it |
protected org.alfresco.service.cmr.lock.LockService |
getLockService()
|
protected org.alfresco.service.cmr.ml.MultilingualContentService |
getMultilingualContentService()
|
SingleEditionBean |
getNextSingleEditionBean()
For the client side iteration on the edition hitories list, return the next edition history. |
Node |
getNode()
Returns the Node this bean is currently representing |
java.lang.String |
getOutcome()
|
protected java.lang.String |
getPropertiesPanelId()
|
java.util.Map |
getTemplateModel()
Returns a model for use by a template on the Document Details page. |
Node |
getTranslationDocument()
|
java.lang.String |
getUrl()
Returns the URL to download content for the current document |
java.util.List |
getVersionHistory()
Returns a list of objects representing the versions of the current document |
protected org.alfresco.service.cmr.version.VersionService |
getVersionService()
|
Node |
getWorkingCopyDocument()
|
void |
init(java.util.Map parameters)
Initialises the dialog bean |
boolean |
isCategorised()
Determines whether the current document has any categories applied |
boolean |
isInlineEditable()
|
boolean |
isLocked()
Returns whether the current document is locked |
boolean |
isMultilingual()
|
boolean |
isOwner()
Returns whether the current document is a working copy owned by the current User |
boolean |
isVersionable()
Determines whether the current document is versionable |
boolean |
isWorkingCopy()
Returns whether the current document is a working copy |
void |
nextItem(javax.faces.event.ActionEvent event)
Navigates to next item in the list of content for the current Space |
void |
previousItem(javax.faces.event.ActionEvent event)
Navigates to the previous item in the list of content for the current Space |
void |
reset()
Resets any state that may be held by this bean |
void |
restored()
Called when the dialog is restored after a nested dialog is closed |
void |
setCheckOutCheckInService(org.alfresco.service.cmr.coci.CheckOutCheckInService cociService)
Sets the checkincheckout service instance the bean should use |
void |
setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
|
void |
setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
|
void |
setLockService(org.alfresco.service.cmr.lock.LockService lockService)
Sets the lock service instance the bean should use |
void |
setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
|
void |
setTranslationDocument(Node node)
Before opening the ml container details, remeber the translation from which the action comes. |
void |
setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
Sets the version service instance the bean should use |
void |
unlock(javax.faces.event.ActionEvent event)
Action Handler to unlock a locked document |
Methods inherited from class org.alfresco.web.bean.BaseDetailsBean |
---|
applyTemplate, approve, cancelWorkflowEdit, getApproveStepName, getBookmarkUrl, getCifsPath, getCopyService, getHasCustomView, getHasTemplateView, getHasWebscriptView, getId, getName, getNodeRefUrl, getOwnableService, getPanels, getPermissionService, getRejectStepName, getTemplate, getTemplateRef, getWebdavUrl, getWebscriptUrl, getWorkflowProperties, reject, removeTemplate, saveWorkflow, setCopyService, setOwnableService, setPanels, setPermissionService, setTemplate, takeOwnership |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient org.alfresco.service.cmr.lock.LockService lockService
protected transient org.alfresco.service.cmr.version.VersionService versionService
protected transient org.alfresco.service.cmr.coci.CheckOutCheckInService cociService
protected transient org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService
protected transient org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService
protected transient org.alfresco.service.cmr.ml.EditionService editionService
Constructor Detail |
---|
public DocumentDetailsDialog()
Method Detail |
---|
public void reset()
public void init(java.util.Map parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic void restored()
IDialogBean
restored
in interface IDialogBean
restored
in class BaseDialogBean
public java.lang.String cancel()
IDialogBean
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
public java.lang.String getUrl()
public Node getTranslationDocument()
public void setTranslationDocument(Node node)
node
- public java.lang.String getBrowserUrl()
public java.lang.String getDownloadUrl()
protected Node getLinkResolvedNode()
getLinkResolvedNode
in class BaseDetailsBean
public boolean isVersionable()
public boolean isInlineEditable()
public boolean isMultilingual()
public java.lang.String editContentProperties()
public void expandPanel(javax.faces.event.ActionEvent event)
expandPanel
in class BaseDetailsBean
public java.util.List getVersionHistory()
public SingleEditionBean getNextSingleEditionBean()
public SingleEditionBean getCurrentSingleEditionBean()
public boolean isCategorised()
public java.lang.String getCategoriesOverviewHTML()
public void applyClassifiable()
public void applyVersionable()
public void unlock(javax.faces.event.ActionEvent event)
public java.lang.String applyInlineEditable()
public void nextItem(javax.faces.event.ActionEvent event)
nextItem
in interface NavigationSupport
public void previousItem(javax.faces.event.ActionEvent event)
previousItem
in interface NavigationSupport
protected java.lang.String getPropertiesPanelId()
getPropertiesPanelId
in class BaseDetailsBean
BaseDetailsBean.getPropertiesPanelId()
public java.util.Map getTemplateModel()
getTemplateModel
in class BaseDetailsBean
public boolean isLocked()
public boolean isWorkingCopy()
public Node getWorkingCopyDocument()
public boolean isOwner()
public Node getNode()
getNode
in class BaseDetailsBean
public Node getDocument()
public Node getDocumentMlContainer()
public void setLockService(org.alfresco.service.cmr.lock.LockService lockService)
lockService
- The LockServiceprotected org.alfresco.service.cmr.lock.LockService getLockService()
public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
versionService
- The VersionServiceprotected org.alfresco.service.cmr.version.VersionService getVersionService()
public void setCheckOutCheckInService(org.alfresco.service.cmr.coci.CheckOutCheckInService cociService)
cociService
- The CheckOutCheckInServiceprotected org.alfresco.service.cmr.coci.CheckOutCheckInService getCheckOutCheckInService()
getCheckOutCheckInService
in class BaseDialogBean
public void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
multilingualContentService
- the multilingual ContentService to setprotected org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
public void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
contentFilterLanguagesService
- The Content Filter Languages Service to set.protected org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()
public void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
EditionService
- The Edition Service to set.protected org.alfresco.service.cmr.ml.EditionService getEditionService()
public java.lang.String getCancelButtonLabel()
IDialogBean
getCancelButtonLabel
in interface IDialogBean
getCancelButtonLabel
in class BaseDialogBean
public java.lang.String getContainerSubTitle()
IDialogBean
If this returns null the DialogManager will lookup the subtitle via the dialog configuration
getContainerSubTitle
in interface IDialogBean
getContainerSubTitle
in class BaseDialogBean
public java.lang.String getContainerTitle()
IDialogBean
If this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle
in interface IDialogBean
getContainerTitle
in class BaseDialogBean
public java.lang.String getCurrentItemId()
getCurrentItemId
in interface NavigationSupport
protected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
public java.lang.String getOutcome()
getOutcome
in interface NavigationSupport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |