public class DocumentDetailsDialog extends BaseDetailsBean implements NavigationSupport
Modifier and Type | Field and Description |
---|---|
protected CheckOutCheckInService |
cociService |
protected ContentFilterLanguagesService |
contentFilterLanguagesService |
protected EditionService |
editionService |
protected LockService |
lockService |
protected MultilingualContentService |
multilingualContentService |
protected VersionService |
versionService |
imageResolver, panels, template, workflowProperties
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
DocumentDetailsDialog()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
applyClassifiable()
Applies the classifiable aspect to the current document
|
String |
applyInlineEditable()
Applies the inlineeditable aspect to the current document
|
void |
applyVersionable()
Applies the versionable aspect to the current document
|
String |
cancel()
Method handler called when the cancel button of the dialog is pressed
|
String |
editContentProperties()
Fixes an issue reported in https://issues.alfresco.com/jira/browse/ETWOONE-92
|
void |
expandPanel(ActionEvent event)
Save the state of the panel that was expanded/collapsed
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
String |
getBrowserUrl()
Returns the URL to the content for the current document
|
String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
String |
getCategoriesOverviewHTML()
Returns a list of objects representing the categories applied to the
current document
|
protected CheckOutCheckInService |
getCheckOutCheckInService() |
String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog
|
String |
getContainerTitle()
Returns the title to be used for the dialog
|
protected ContentFilterLanguagesService |
getContentFilterLanguagesService() |
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
|
String |
getDownloadUrl()
Returns the download URL to the content for the current document
|
protected EditionService |
getEditionService() |
protected Node |
getLinkResolvedNode()
Resolve the actual document Node from any Link object that may be proxying it
|
protected LockService |
getLockService() |
protected 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
|
String |
getOutcome() |
protected String |
getPropertiesPanelId() |
Map |
getTemplateModel()
Returns a model for use by a template on the Document Details page.
|
Node |
getTranslationDocument() |
String |
getUrl()
Returns the URL to download content for the current document
|
List |
getVersionHistory()
Returns a list of objects representing the versions of the
current document
|
protected VersionService |
getVersionService() |
Node |
getWorkingCopyDocument() |
void |
init(Map<String,String> 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(ActionEvent event)
Navigates to next item in the list of content for the current Space
|
void |
previousItem(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(CheckOutCheckInService cociService)
Sets the checkincheckout service instance the bean should use
|
void |
setContentFilterLanguagesService(ContentFilterLanguagesService contentFilterLanguagesService) |
void |
setEditionService(EditionService editionService) |
void |
setLockService(LockService lockService)
Sets the lock service instance the bean should use
|
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setTranslationDocument(Node node)
Before opening the ml container details, remeber the translation
from which the action comes.
|
void |
setVersionService(VersionService versionService)
Sets the version service instance the bean should use
|
void |
unlock(ActionEvent event)
Action Handler to unlock a locked document
|
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
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getContainerDescription, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
protected transient LockService lockService
protected transient VersionService versionService
protected transient CheckOutCheckInService cociService
protected transient MultilingualContentService multilingualContentService
protected transient ContentFilterLanguagesService contentFilterLanguagesService
protected transient EditionService editionService
public void reset()
public void init(Map<String,String> 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 String cancel()
IDialogBean
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
public String getUrl()
public Node getTranslationDocument()
public void setTranslationDocument(Node node)
node
- public String getBrowserUrl()
public String getDownloadUrl()
protected Node getLinkResolvedNode()
getLinkResolvedNode
in class BaseDetailsBean
public boolean isVersionable()
public boolean isInlineEditable()
public boolean isMultilingual()
public String editContentProperties()
public void expandPanel(ActionEvent event)
expandPanel
in class BaseDetailsBean
public List getVersionHistory()
public SingleEditionBean getNextSingleEditionBean()
public SingleEditionBean getCurrentSingleEditionBean()
public boolean isCategorised()
public String getCategoriesOverviewHTML()
public void applyClassifiable()
public void applyVersionable()
public void unlock(ActionEvent event)
public String applyInlineEditable()
public void nextItem(ActionEvent event)
nextItem
in interface NavigationSupport
public void previousItem(ActionEvent event)
previousItem
in interface NavigationSupport
protected String getPropertiesPanelId()
getPropertiesPanelId
in class BaseDetailsBean
BaseDetailsBean.getPropertiesPanelId()
public 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(LockService lockService)
lockService
- The LockServiceprotected LockService getLockService()
public void setVersionService(VersionService versionService)
versionService
- The VersionServiceprotected VersionService getVersionService()
public void setCheckOutCheckInService(CheckOutCheckInService cociService)
cociService
- The CheckOutCheckInServiceprotected CheckOutCheckInService getCheckOutCheckInService()
getCheckOutCheckInService
in class BaseDialogBean
public void setMultilingualContentService(MultilingualContentService multilingualContentService)
multilingualContentService
- the multilingual ContentService to setprotected MultilingualContentService getMultilingualContentService()
public void setContentFilterLanguagesService(ContentFilterLanguagesService contentFilterLanguagesService)
contentFilterLanguagesService
- The Content Filter Languages Service to set.protected ContentFilterLanguagesService getContentFilterLanguagesService()
public void setEditionService(EditionService editionService)
editionService
- The Edition Service to set.protected EditionService getEditionService()
public String getCancelButtonLabel()
IDialogBean
getCancelButtonLabel
in interface IDialogBean
getCancelButtonLabel
in class BaseDialogBean
public 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 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 String getCurrentItemId()
getCurrentItemId
in interface NavigationSupport
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public String getOutcome()
getOutcome
in interface NavigationSupport
Copyright © 2005–2017 Alfresco Software. All rights reserved.