org.alfresco.web.bean.wcm
Class EditPermissionsDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wcm.BasePermissionsDialog
          extended by org.alfresco.web.bean.wcm.UpdatePermissionsDialog
              extended by org.alfresco.web.bean.wcm.EditPermissionsDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class EditPermissionsDialog
extends UpdatePermissionsDialog

Class for EditPermissions dialog

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.wcm.BasePermissionsDialog
permissionService
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
EditPermissionsDialog()
           
 
Method Summary
 void addPermission(javax.faces.event.ActionEvent event)
          Action handler called when the Add Permission button is pressed to process the current selection
 java.lang.String cancel()
          Method handler called when the cancel button of the dialog is pressed
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 javax.faces.model.SelectItem[] getPerms()
           
 javax.faces.model.DataModel getPersonPermsDataModel()
          Returns the properties for current Person permissions JSF DataModel
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void removePermission(javax.faces.event.ActionEvent event)
          Action handler called when the Remove button is pressed to remove a permission from current user
 void setupAction(javax.faces.event.ActionEvent event)
           
 
Methods inherited from class org.alfresco.web.bean.wcm.UpdatePermissionsDialog
createLock, getActiveNode, getAuthenticationService, getAvmLockingService, setActiveNode, setAuthenticationService, setAvmLockingService
 
Methods inherited from class org.alfresco.web.bean.wcm.BasePermissionsDialog
getAvmBrowseBean, getPermissionService, setAvmBrowseBean, setPermissionService
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, 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
 

Constructor Detail

EditPermissionsDialog

public EditPermissionsDialog()
Method Detail

setupAction

public void setupAction(javax.faces.event.ActionEvent event)
Parameters:
event -

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class UpdatePermissionsDialog
Parameters:
parameters - Map of parameters for the dialog

getFinishButtonDisabled

public boolean getFinishButtonDisabled()
Description copied from interface: IDialogBean
Determines whether the finish button on the dialog should be disabled

Specified by:
getFinishButtonDisabled in interface IDialogBean
Overrides:
getFinishButtonDisabled in class BaseDialogBean
Returns:
true if the button should be disabled

getContainerTitle

public java.lang.String getContainerTitle()
Description copied from interface: IDialogBean
Returns the title to be used for the dialog

If this returns null the DialogManager will lookup the title via the dialog configuration

Specified by:
getContainerTitle in interface IDialogBean
Overrides:
getContainerTitle in class BaseDialogBean
Returns:
The title or null if the title is to be acquired via configuration

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

Overrides:
finishImpl in class BasePermissionsDialog
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

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

getPerms

public javax.faces.model.SelectItem[] getPerms()
Returns:
The list of available permissions for the users/groups

addPermission

public void addPermission(javax.faces.event.ActionEvent event)
Action handler called when the Add Permission button is pressed to process the current selection


getPersonPermsDataModel

public javax.faces.model.DataModel getPersonPermsDataModel()
Returns the properties for current Person permissions JSF DataModel

Returns:
JSF DataModel representing the current Person permissions

removePermission

public void removePermission(javax.faces.event.ActionEvent event)
Action handler called when the Remove button is pressed to remove a permission from current user



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