org.alfresco.web.bean.groups
Class AddUsersDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.groups.AddUsersDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class AddUsersDialog
extends BaseDialogBean

Implementation of the add user dialog.

See Also:
Serialized Form

Field Summary
protected  java.lang.String group
          The id of the group to add users to
protected  java.lang.String groupName
          Name of the group to add users to
protected  javax.faces.model.DataModel usersDataModel
          datamodel for table of users added to group
protected  java.util.List usersForGroup
          selected users to be added to a group
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
AddUsersDialog()
           
 
Method Summary
 void addSelectedUsers(javax.faces.event.ActionEvent event)
          Add the selected User to the list for adding to a Group
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
protected  org.alfresco.service.cmr.security.AuthorityService getAuthService()
           
 java.lang.String getContainerSubTitle()
          Returns the subtitle to be used for the dialog
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
protected  org.alfresco.service.cmr.security.PersonService getPersonService()
           
 javax.faces.model.DataModel getUsersDataModel()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 javax.faces.model.SelectItem[] pickerCallback(int filterIndex, java.lang.String contains)
          Query callback method executed by the Generic Picker component.
 void removeUserSelection(javax.faces.event.ActionEvent event)
          Action handler called when the Remove button is pressed to remove a user from the results list
 void setAuthService(org.alfresco.service.cmr.security.AuthorityService authService)
           
 void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerTitle, 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
 

Field Detail

group

protected java.lang.String group
The id of the group to add users to


groupName

protected java.lang.String groupName
Name of the group to add users to


usersForGroup

protected java.util.List usersForGroup
selected users to be added to a group


usersDataModel

protected transient javax.faces.model.DataModel usersDataModel
datamodel for table of users added to group

Constructor Detail

AddUsersDialog

public AddUsersDialog()
Method Detail

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 BaseDialogBean
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

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

getContainerSubTitle

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

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

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

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

setAuthService

public void setAuthService(org.alfresco.service.cmr.security.AuthorityService authService)

getAuthService

protected org.alfresco.service.cmr.security.AuthorityService getAuthService()
Returns:
the authService

setPersonService

public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)

getPersonService

protected org.alfresco.service.cmr.security.PersonService getPersonService()
Returns:
the personService

getUsersDataModel

public javax.faces.model.DataModel getUsersDataModel()
Returns:
Returns the usersDataModel.

pickerCallback

public javax.faces.model.SelectItem[] pickerCallback(int filterIndex,
                                                     java.lang.String contains)
Query callback method executed by the Generic Picker component. This method is part of the contract to the Generic Picker, it is up to the backing bean to execute whatever query is appropriate and return the results.

Parameters:
filterIndex - Index of the filter drop-down selection
contains - Text from the contains textbox
Returns:
An array of SelectItem objects containing the results to display in the picker.

addSelectedUsers

public void addSelectedUsers(javax.faces.event.ActionEvent event)
Add the selected User to the list for adding to a Group


removeUserSelection

public void removeUserSelection(javax.faces.event.ActionEvent event)
Action handler called when the Remove button is pressed to remove a user from the results list



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