com.webmethods.caf.faces.component.dir.view
Class PrincipalPickerControlBean

java.lang.Object
  extended by com.webmethods.caf.faces.bean.BaseFacesBean
      extended by com.webmethods.caf.faces.bean.BaseFacesSessionBean
          extended by com.webmethods.caf.faces.bean.BaseViewBean
              extended by com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
                  extended by com.webmethods.caf.faces.component.dir.view.PrincipalPickerControlBean
All Implemented Interfaces:
IPageFlowScopeAdapter, Serializable

public class PrincipalPickerControlBean
extends BaseCompositeViewControlPageBean
implements Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webmethods.caf.faces.bean.BaseViewBean
BaseViewBean.ClientIdsContentProvider
 
Field Summary
protected  Boolean fGroupSearchAllowed
           
protected  boolean fLastSearchStateSet
           
protected  Boolean fMultipleSelectionsAllowed
           
protected  String fRefreshOnApply
           
protected  Boolean fRoleSearchAllowed
           
protected  DirectorySearchProvider fSearchResultsContentProvider
           
protected  ListTableContentProvider fSelectedPrincipalsProvider
           
protected  Boolean fUserSearchAllowed
           
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
fCompositeNamingContainer
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseViewBean
clientIds, initialized
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
 
Constructor Summary
PrincipalPickerControlBean()
           
 
Method Summary
protected  void afterInvokeApplication()
          Clients should overwrite this method to perform custom actions after an action method is invoked.
 void applyButton_actionListener(ActionEvent actionEvent)
          Action Event Handler for the control with id='applyButton'
protected  void beforeRenderResponse()
          Clients should overwrite this method to perform custom actions before the view gets rendered.
 void cancelButton_actionListener(ActionEvent actionEvent)
          Action Event Handler for the control with id='cancelButton'
 String doSearch()
           
protected  int getDefaultSearchType()
           
protected  List getInitialSelectedPrincipals()
          get the selected principals with the current value of the target value binding expression
 String getRefreshOnApply()
           
 SearchBar getSearchBarControl()
           
 DirectorySearchProvider getSearchResults()
           
 ListTableContentProvider getSelectedPrincipalsProvider()
           
 ValueBinding getTargetValue()
           
 String getTitleText()
           
 boolean isGroupSearchAllowed()
           
 boolean isLastSearchStateSet()
           
 boolean isMultipleSearchTypesAvailable()
           
 boolean isMultipleSelectionsAllowed()
           
 boolean isRoleSearchAllowed()
           
 boolean isUserSearchAllowed()
           
protected  void resetBeanState()
           
 void setGroupSearchAllowed(boolean groupSearchAllowed)
           
 void setMultipleSelectionsAllowed(boolean multipleSelectionsAllowed)
           
 void setRefreshOnApply(String refreshOnApply)
           
 void setRoleSearchAllowed(boolean roleSearchAllowed)
           
 void setUserSearchAllowed(boolean userSearchAllowed)
           
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
findComponentInRoot, getClientIds, getCompositeViewAbsoluteControlId, getCompositeViewControlId, getCompositeViewNamingContainer, getPropertyOrBindingValue, setCompositeViewNamingContainer, setCompositeViewNamingContainer
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseViewBean
afterApplyRequestValues, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRestoreView, beforeUpdateModelValues, callInitialize, findComponent, getApplicationScope, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, gotoPage, initialize, isAsyncRequest, release, resetPageFlowStorage, streamFileDataToResponse
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createValueBinding, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fSearchResultsContentProvider

protected DirectorySearchProvider fSearchResultsContentProvider

fSelectedPrincipalsProvider

protected ListTableContentProvider fSelectedPrincipalsProvider

fMultipleSelectionsAllowed

protected Boolean fMultipleSelectionsAllowed

fUserSearchAllowed

protected Boolean fUserSearchAllowed

fGroupSearchAllowed

protected Boolean fGroupSearchAllowed

fRoleSearchAllowed

protected Boolean fRoleSearchAllowed

fRefreshOnApply

protected String fRefreshOnApply

fLastSearchStateSet

protected boolean fLastSearchStateSet
Constructor Detail

PrincipalPickerControlBean

public PrincipalPickerControlBean()
Method Detail

getTitleText

public String getTitleText()

afterInvokeApplication

protected void afterInvokeApplication()
Description copied from class: BaseViewBean
Clients should overwrite this method to perform custom actions after an action method is invoked.

Overrides:
afterInvokeApplication in class BaseViewBean

beforeRenderResponse

protected void beforeRenderResponse()
Description copied from class: BaseViewBean
Clients should overwrite this method to perform custom actions before the view gets rendered.

Overrides:
beforeRenderResponse in class BaseViewBean

getSelectedPrincipalsProvider

public ListTableContentProvider getSelectedPrincipalsProvider()

isMultipleSearchTypesAvailable

public boolean isMultipleSearchTypesAvailable()

getDefaultSearchType

protected int getDefaultSearchType()

isGroupSearchAllowed

public boolean isGroupSearchAllowed()
Returns:
the groupSearchAllowed

setGroupSearchAllowed

public void setGroupSearchAllowed(boolean groupSearchAllowed)
Parameters:
groupSearchAllowed - the groupSearchAllowed to set

isMultipleSelectionsAllowed

public boolean isMultipleSelectionsAllowed()
Returns:
the multipleSelectionsAllowed

setMultipleSelectionsAllowed

public void setMultipleSelectionsAllowed(boolean multipleSelectionsAllowed)
Parameters:
multipleSelectionsAllowed - the multipleSelectionsAllowed to set

getRefreshOnApply

public String getRefreshOnApply()
Returns:
the refreshOnApply

setRefreshOnApply

public void setRefreshOnApply(String refreshOnApply)
Parameters:
refreshOnApply - the refreshOnApply to set

isRoleSearchAllowed

public boolean isRoleSearchAllowed()
Returns:
the roleSearchAllowed

setRoleSearchAllowed

public void setRoleSearchAllowed(boolean roleSearchAllowed)
Parameters:
roleSearchAllowed - the roleSearchAllowed to set

isUserSearchAllowed

public boolean isUserSearchAllowed()
Returns:
the userSearchAllowed

setUserSearchAllowed

public void setUserSearchAllowed(boolean userSearchAllowed)
Parameters:
userSearchAllowed - the userSearchAllowed to set

getTargetValue

public ValueBinding getTargetValue()

cancelButton_actionListener

public void cancelButton_actionListener(ActionEvent actionEvent)
Action Event Handler for the control with id='cancelButton'


applyButton_actionListener

public void applyButton_actionListener(ActionEvent actionEvent)
Action Event Handler for the control with id='applyButton'


resetBeanState

protected void resetBeanState()

getSearchResults

public DirectorySearchProvider getSearchResults()

getInitialSelectedPrincipals

protected List getInitialSelectedPrincipals()
                                     throws PortalException
get the selected principals with the current value of the target value binding expression

Throws:
PortalException

getSearchBarControl

public SearchBar getSearchBarControl()

doSearch

public String doSearch()

isLastSearchStateSet

public boolean isLastSearchStateSet()