org.alfresco.web.bean.wcm
Class ManagePermissionsDialog

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.ManagePermissionsDialog
All Implemented Interfaces:
java.io.Serializable, IContextListener, FilterViewSupport, IDialogBean

public class ManagePermissionsDialog
extends BasePermissionsDialog
implements IContextListener, FilterViewSupport

Class for ManagePermissions 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
ManagePermissionsDialog()
           
 
Method Summary
 void areaChanged()
          Method called by UIContextService.areaChanged() to inform all registered beans that the user has changed area i.e.
 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 filterModeChanged(javax.faces.event.ActionEvent event)
           
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.Object getActionsContext()
          Returns the object to use as the context for the main and more actions that may be configured by the dialog
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 java.util.List getFilterItems()
           
 java.lang.String getFilterMode()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
static java.util.Set getPermissionsForType()
          Get available permissions
protected  org.alfresco.service.cmr.security.PersonService getPersonService()
          Getter for personService
 java.util.List getUsers()
           
 UIRichList getUsersRichList()
          Getter for usersRichList
 void inheritPermissionsValueChanged(javax.faces.event.ValueChangeEvent event)
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 boolean isInheritParenSpacePermissions()
          Getter for inheritParenSpacePermissions
 boolean isRendered()
           
 void restored()
          Called when the dialog is restored after a nested dialog is closed
 void setFilterMode(java.lang.String filterMode)
           
 void setInheritParenSpacePermissions(boolean inheritParenSpacePermissions)
          Setter for inheritParenSpacePermissions Set the global inheritance behaviour for permissions on a node.
 void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
           
 void setUsersRichList(UIRichList usersRichList)
          Setter for usersRichList
 void spaceChanged()
          Method called by UIContextService.spaceChanged() to inform all registered beans that the current space has changed.
 
Methods inherited from class org.alfresco.web.bean.wcm.BasePermissionsDialog
getAvmBrowseBean, getPermissionService, setAvmBrowseBean, setPermissionService
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, 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

ManagePermissionsDialog

public ManagePermissionsDialog()
Method Detail

setPersonService

public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
Parameters:
personService - The personService to set.

getPersonService

protected org.alfresco.service.cmr.security.PersonService getPersonService()
Getter for personService

Returns:
personService

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 BasePermissionsDialog
Parameters:
parameters - Map of parameters for the dialog

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

getUsers

public java.util.List getUsers()
Returns:
the list of user nodes for list data binding

getPermissionsForType

public static java.util.Set getPermissionsForType()
Get available permissions

Returns:
Set of permissions

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

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

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

filterModeChanged

public void filterModeChanged(javax.faces.event.ActionEvent event)
Specified by:
filterModeChanged in interface FilterViewSupport

getFilterItems

public java.util.List getFilterItems()
Specified by:
getFilterItems in interface FilterViewSupport

getFilterMode

public java.lang.String getFilterMode()
Specified by:
getFilterMode in interface FilterViewSupport

setFilterMode

public void setFilterMode(java.lang.String filterMode)
Specified by:
setFilterMode in interface FilterViewSupport

getUsersRichList

public UIRichList getUsersRichList()
Getter for usersRichList

Returns:
usersRichList

setUsersRichList

public void setUsersRichList(UIRichList usersRichList)
Setter for usersRichList

Parameters:
usersRichList -

restored

public void restored()
Description copied from interface: IDialogBean
Called when the dialog is restored after a nested dialog is closed

Specified by:
restored in interface IDialogBean
Overrides:
restored in class BaseDialogBean

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

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

getActionsContext

public java.lang.Object getActionsContext()
Description copied from interface: IDialogBean
Returns the object to use as the context for the main and more actions that may be configured by the dialog

Specified by:
getActionsContext in interface IDialogBean
Overrides:
getActionsContext in class BaseDialogBean
Returns:
Object to use as the context for actions

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

isRendered

public boolean isRendered()
Returns:
true if node in Staging Sandbox

isInheritParenSpacePermissions

public boolean isInheritParenSpacePermissions()
Getter for inheritParenSpacePermissions

Returns:
inheritParenSpacePermissions

setInheritParenSpacePermissions

public void setInheritParenSpacePermissions(boolean inheritParenSpacePermissions)
Setter for inheritParenSpacePermissions Set the global inheritance behaviour for permissions on a node.

Parameters:
inheritParenSpacePermissions -

inheritPermissionsValueChanged

public void inheritPermissionsValueChanged(javax.faces.event.ValueChangeEvent event)


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