edu.internet2.middleware.grouper.grouperUi.beans.attributeDefNamePicker
Class AttributeDefNamePickerContainer

java.lang.Object
  extended by edu.internet2.middleware.grouper.grouperUi.beans.attributeDefNamePicker.AttributeDefNamePickerContainer
All Implemented Interfaces:
Serializable

public class AttributeDefNamePickerContainer
extends Object
implements Serializable

bean for attributeDefName picker. holds all state for this module

See Also:
Serialized Form

Constructor Summary
AttributeDefNamePickerContainer()
           
 
Method Summary
 String configValue(String key)
          check config file or defaults
 String configValue(String key, boolean exceptionIfNotThere)
          check config file or defaults
 boolean configValueBoolean(String key)
          check config file or defaults
 int configValueInt(String key)
          based on request get a media int
 String getAttributeDefNamePickerElementName()
           
 String getAttributeDefNamePickerName()
           
 String getCancelText()
          cancel text
 String getErrorMessage()
          error message for screen
 String getHeader()
          main title of screen
 PickerResultAttributeDefName[] getPickerResultAttributeDefNames()
          members in result
 String getResultsSectionTitle()
          resultsSectionTitle
 String getSearchButtonText()
          search button text
 String getSearchSectionTitle()
          searchSectionTitle
 String getSearchString()
          string the user is searching for
 String getSubmitResultToUrl()
          the url to submit to or blank to use opener (same domain)
 boolean isHasError()
          if there is an error in the search (e.g.
 boolean isSubmitToUrl()
          if we are submitting to a URL instead of using opener
static AttributeDefNamePickerContainer retrieveFromRequest()
          retrieveFromRequest, cannot be null
 void setErrorMessage(String errorMessage1)
          error message for screen
 void setHasError(boolean hasError1)
          if there is an error in the search (e.g.
 void setPickerResultAttributeDefNames(PickerResultAttributeDefName[] thePickerResultAttributeDefNames)
          members in result
 void setSearchString(String searchString1)
          string the user is searching for
 void storeToRequest()
          store to session scope
 String textMessage(String key)
          get the text or default
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDefNamePickerContainer

public AttributeDefNamePickerContainer()
Method Detail

configValue

public String configValue(String key)
check config file or defaults

Parameters:
key -
Returns:
the value

configValue

public String configValue(String key,
                          boolean exceptionIfNotThere)
check config file or defaults

Parameters:
key -
exceptionIfNotThere -
Returns:
the value

configValueBoolean

public boolean configValueBoolean(String key)
check config file or defaults

Parameters:
key -
Returns:
true if true, false if false

configValueInt

public int configValueInt(String key)
based on request get a media int

Parameters:
key -
Returns:
true if true, false if false

storeToRequest

public void storeToRequest()
store to session scope


retrieveFromRequest

public static AttributeDefNamePickerContainer retrieveFromRequest()
retrieveFromRequest, cannot be null

Returns:
the app state in request scope

getPickerResultAttributeDefNames

public PickerResultAttributeDefName[] getPickerResultAttributeDefNames()
members in result

Returns:
the PickerResultAttributeDefNames

setPickerResultAttributeDefNames

public void setPickerResultAttributeDefNames(PickerResultAttributeDefName[] thePickerResultAttributeDefNames)
members in result

Parameters:
thePickerResultAttributeDefNames - the guiAttributeDefNames to set

getSearchString

public String getSearchString()
string the user is searching for

Returns:
the searchString

setSearchString

public void setSearchString(String searchString1)
string the user is searching for

Parameters:
searchString1 - the searchString to set

isSubmitToUrl

public boolean isSubmitToUrl()
if we are submitting to a URL instead of using opener

Returns:
the url

getSubmitResultToUrl

public String getSubmitResultToUrl()
the url to submit to or blank to use opener (same domain)

Returns:
the url to submit to or blank to use opener (same domain)

isHasError

public boolean isHasError()
if there is an error in the search (e.g. too many results

Returns:
the hasError

setHasError

public void setHasError(boolean hasError1)
if there is an error in the search (e.g. too many results

Parameters:
hasError1 - the hasError to set

getErrorMessage

public String getErrorMessage()
error message for screen

Returns:
the errorMessage

setErrorMessage

public void setErrorMessage(String errorMessage1)
error message for screen

Parameters:
errorMessage1 - the errorMessage to set

getAttributeDefNamePickerName

public String getAttributeDefNamePickerName()
Returns:
the attributeDefName picker name

getAttributeDefNamePickerElementName

public String getAttributeDefNamePickerElementName()
Returns:
the attributeDefName picker name

getCancelText

public String getCancelText()
cancel text

Returns:
cancel text

getHeader

public String getHeader()
main title of screen

Returns:
title

textMessage

public String textMessage(String key)
get the text or default

Parameters:
key -
Returns:
the text or default

getSearchSectionTitle

public String getSearchSectionTitle()
searchSectionTitle

Returns:
title

getResultsSectionTitle

public String getResultsSectionTitle()
resultsSectionTitle

Returns:
title

getSearchButtonText

public String getSearchButtonText()
search button text

Returns:
search button text