org.alfresco.web.bean.trashcan
Class TrashcanDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.trashcan.TrashcanDialog
All Implemented Interfaces:
java.io.Serializable, IContextListener, IDialogBean
Direct Known Subclasses:
TrashcanDeleteAllItemsDialog, TrashcanDeleteItemDialog, TrashcanDeleteListedItemsDialog, TrashcanItemDetailsDialog, TrashcanRecoverItemDialog, TrashcanRecoverListedItemsDialog, TrashcanRecoveryReportDialog

public class TrashcanDialog
extends BaseDialogBean
implements IContextListener

Backing bean for the Manage Deleted Items (soft delete and archiving) pages.

See Also:
Serialized Form

Field Summary
protected  org.alfresco.service.cmr.security.PermissionService permissionService
          The PermissionService reference
protected  TrashcanDialogProperty property
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
TrashcanDialog()
           
 
Method Summary
 void areaChanged()
          Method called by UIContextService.areaChanged() to inform all registered beans that the user has changed area i.e.
 java.lang.String cancel()
          Method handler called when the cancel button of the dialog is pressed
 void clearSearch(javax.faces.event.ActionEvent event)
          Action handler to clear the current search results and show all items
 java.lang.String close()
           
 void contextUpdated()
          Method called by UIContextService.notifyBeans() to inform all registered beans that all UI Beans should refresh dump all cached data and settings.
 void dateFilterChanged(javax.faces.event.ActionEvent event)
          Action handler called when the Date filter is changed by the user
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
 java.lang.String getFailureItemsTable()
           
 java.lang.String getItemBrowserUrl()
          Returns the URL to the content for the current document item
 java.lang.String getItemDownloadUrl()
          Returns the download URL to the content for the current document item
 java.lang.String getItemNodeRefUrl()
          Return the Alfresco NodeRef URL for the current item node
 java.util.List getItems()
           
 java.lang.String getListedItemsTable()
           
 java.lang.String getPanelMessage()
           
protected  org.alfresco.service.cmr.security.PermissionService getPermissionService()
           
 TrashcanDialogProperty getProperty()
           
 java.lang.String getSuccessItemsTable()
           
protected  void saveReportDetail(java.util.List reports)
          Save the detail of the items that were successfully or unsuccessfully restored
 void searchContent(javax.faces.event.ActionEvent event)
          Search the deleted item store by text
 void searchName(javax.faces.event.ActionEvent event)
          Search the deleted item store by name
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setProperty(TrashcanDialogProperty property)
           
 void setupItemAction(javax.faces.event.ActionEvent event)
          Action handler called to prepare the selected item for an action
 void setupListAction(javax.faces.event.ActionEvent event)
          Action handler to setup actions that act on lists
 void setupTrashcan(javax.faces.event.ActionEvent event)
          Action handler to initially setup the trashcan screen
 void spaceChanged()
          Method called by UIContextService.spaceChanged() to inform all registered beans that the current space has changed.
 void userFilterChanged(javax.faces.event.ActionEvent event)
          Action handler called when the User filter is changed by the user
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property

protected TrashcanDialogProperty property

permissionService

protected transient org.alfresco.service.cmr.security.PermissionService permissionService
The PermissionService reference

Constructor Detail

TrashcanDialog

public TrashcanDialog()
Method Detail

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Parameters:
permissionService - The PermissionService to set.

getPermissionService

protected org.alfresco.service.cmr.security.PermissionService getPermissionService()

setProperty

public void setProperty(TrashcanDialogProperty property)

getProperty

public TrashcanDialogProperty getProperty()

getPanelMessage

public java.lang.String getPanelMessage()
Returns:
Message to display in the title of the panel area

getItemBrowserUrl

public java.lang.String getItemBrowserUrl()
Returns the URL to the content for the current document item

Returns:
Content url to the current document item

getItemDownloadUrl

public java.lang.String getItemDownloadUrl()
Returns the download URL to the content for the current document item

Returns:
Download url to the current document item

getItemNodeRefUrl

public java.lang.String getItemNodeRefUrl()
Return the Alfresco NodeRef URL for the current item node

Returns:
the Alfresco NodeRef URL

getListedItemsTable

public java.lang.String getListedItemsTable()
Returns:
HTML table of the listed items

getSuccessItemsTable

public java.lang.String getSuccessItemsTable()
Returns:
HTML table of the items successfully recovered

getFailureItemsTable

public java.lang.String getFailureItemsTable()
Returns:
HTML table of the items that failed to recover

getItems

public java.util.List getItems()
Returns:
the list of deleted items to display

finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

searchName

public void searchName(javax.faces.event.ActionEvent event)
Search the deleted item store by name


searchContent

public void searchContent(javax.faces.event.ActionEvent event)
Search the deleted item store by text


clearSearch

public void clearSearch(javax.faces.event.ActionEvent event)
Action handler to clear the current search results and show all items


setupItemAction

public void setupItemAction(javax.faces.event.ActionEvent event)
Action handler called to prepare the selected item for an action


setupListAction

public void setupListAction(javax.faces.event.ActionEvent event)
Action handler to setup actions that act on lists


close

public java.lang.String close()
Returns:
outcome to close the main list screen and reset other beans ready for display

setupTrashcan

public void setupTrashcan(javax.faces.event.ActionEvent event)
Action handler to initially setup the trashcan screen


dateFilterChanged

public void dateFilterChanged(javax.faces.event.ActionEvent event)
Action handler called when the Date filter is changed by the user


userFilterChanged

public void userFilterChanged(javax.faces.event.ActionEvent event)
Action handler called when the User filter is changed by the user


saveReportDetail

protected void saveReportDetail(java.util.List reports)
Save the detail of the items that were successfully or unsuccessfully restored

Parameters:
reports - The List of RestoreNodeReport objects to walk for results

contextUpdated

public void contextUpdated()
Description copied from interface: IContextListener
Method called by UIContextService.notifyBeans() to inform all registered beans that all UI Beans should refresh dump all cached data and settings.

Specified by:
contextUpdated in interface IContextListener
See Also:
IContextListener.contextUpdated()

areaChanged

public void areaChanged()
Description copied from interface: IContextListener
Method called by UIContextService.areaChanged() to inform all registered beans that the user has changed area i.e. from company home to my home.

Specified by:
areaChanged in interface IContextListener
See Also:
IContextListener.areaChanged()

spaceChanged

public void spaceChanged()
Description copied from interface: IContextListener
Method called by UIContextService.spaceChanged() to inform all registered beans that the current space has changed.

Specified by:
spaceChanged in interface IContextListener
See Also:
IContextListener.spaceChanged()

cancel

public java.lang.String cancel()
Description copied from interface: IDialogBean
Method handler called when the cancel button of the dialog is pressed

Specified by:
cancel in interface IDialogBean
Overrides:
cancel in class BaseDialogBean
Returns:
The outcome to return

getCancelButtonLabel

public java.lang.String getCancelButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the cancel button

Specified by:
getCancelButtonLabel in interface IDialogBean
Overrides:
getCancelButtonLabel in class BaseDialogBean
Returns:
The cancel button label


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.