com.atlassian.crowd.console.action.application
Class ViewApplicationUsers

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.crowd.console.action.BaseAction
          extended by com.atlassian.crowd.console.action.ApplicationBaseAction
              extended by com.atlassian.crowd.console.action.application.ViewApplication
                  extended by com.atlassian.crowd.console.action.application.ViewApplicationUsers
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, Serializable, Cloneable

public class ViewApplicationUsers
extends ViewApplication

Adds the ability to search for the users in an application by using the functionality of BrowsePrincipals.

See Also:
Serialized Form

Field Summary
protected  List<User> results
          Results listObjects.
protected  int resultsPerPage
          Results per page.
protected  int resultsStart
          Results start.
 
Fields inherited from class com.atlassian.crowd.console.action.application.ViewApplication
aliasingEnabled, applicationDescription, directoryId, ID, logger, lowerCaseOutput, name, password, passwordConfirm, permissionManager, testPassword, testUsername
 
Fields inherited from class com.atlassian.crowd.console.action.BaseAction
actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, crowdLicenseManager, crowdUserDetailsService, directoryManager, initialLoad, propertyManager, tab, tokenAuthenticationManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewApplicationUsers()
           
 
Method Summary
 String doDefault()
          Loads all the basic information needed to populate the form.
 String getActive()
           
 String getAliasForUser(String username)
           
 int getNextResultsStart()
          Gets the next results start.
 int getPreviousResultsStart()
          Gets the previous results start.
 List<User> getResults()
           
 int getResultsPerPage()
          Gets the results per page.
 int getResultsStart()
          Gets the results start.
 String getSearch()
           
 void setActive(String active)
           
 void setAliasManager(AliasManager aliasManager)
           
 void setResults(List<User> results)
           
 void setResultsPerPage(int resultsPerPage)
          Sets the results per page.
 void setResultsStart(int resultsStart)
          Sets the results start.
 void setSearch(String search)
           
 void setUserSearcher(Searcher userSearcher)
           
 
Methods inherited from class com.atlassian.crowd.console.action.application.ViewApplication
doConfigTest, getApplication, getApplicationByName, getApplicationDescription, getDirectoryId, getGroupMappingsForApplication, getID, getIsIncrementalSyncAvailable, getName, getPassword, getPasswordConfirm, getTestPassword, getTestUsername, getUnsubscribedDirectories, getUnsubscribedGroups, hasPermission, isActive, isAliasingEnabled, isCrowdApplication, isLowerCaseOutput, isPluginApplication, isTestAuthentication, isValidTestAuthentication, permissionEnabledGlobally, processGeneral, setActive, setAliasingEnabled, setApplicationDescription, setDirectoryId, setID, setLowerCaseOutput, setName, setPassword, setPasswordConfirm, setPermissionManager, setTestPassword, setTestUsername
 
Methods inherited from class com.atlassian.crowd.console.action.ApplicationBaseAction
getWebItemsForApplication
 
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionError, addActionMessage, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, containsActionMessages, containsErrorMessages, directory, getActionMessageAlertColor, getBootstrapManager, getCrowdApplication, getCurrentLicenseResourceTotal, getDisplayableLink, getHttpRequest, getImageLocation, getImageTitle, getLicense, getLink, getPasswordComplexityMessage, getRemoteUser, getSession, getSitemeshPageProperties, getSitemeshPageProperty, getTab, getText, getText, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, hasAdminRole, isAdmin, isAtResourceLimit, isAuthenticated, isEvaluation, isInitialLoad, isLicenseExpired, isSubscription, isWithinGracePeriod, renderFreemarkerTemplate, setActionHelper, setApplicationManager, setApplicationService, setClientProperties, setCrowdApplication, setCrowdLicenseManager, setCrowdUserDetailsService, setDirectoryManager, setPropertyManager, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultsStart

protected int resultsStart
Results start.


resultsPerPage

protected int resultsPerPage
Results per page.


results

protected List<User> results
Results listObjects.

Constructor Detail

ViewApplicationUsers

public ViewApplicationUsers()
Method Detail

doDefault

public String doDefault()
Loads all the basic information needed to populate the form. If there's a directoryID set, performs a search. These two separate pieces of functionality are conflated into one method because I suck at getting webwork to do what I want.

Overrides:
doDefault in class ViewApplication

getResultsStart

public int getResultsStart()
Gets the results start.

Returns:
the results start.

setResultsStart

public void setResultsStart(int resultsStart)
Sets the results start.

Parameters:
resultsStart - the results start.

getNextResultsStart

public int getNextResultsStart()
Gets the next results start.

Returns:
the next results start.

getPreviousResultsStart

public int getPreviousResultsStart()
Gets the previous results start.

Returns:
the previous results start.

getResultsPerPage

public int getResultsPerPage()
Gets the results per page.

Returns:
the results per page.

setResultsPerPage

public void setResultsPerPage(int resultsPerPage)
Sets the results per page.

Parameters:
resultsPerPage - the results per page.

getResults

public List<User> getResults()

setResults

public void setResults(List<User> results)

getActive

public String getActive()

setActive

public void setActive(String active)

getSearch

public String getSearch()

setSearch

public void setSearch(String search)

setUserSearcher

public void setUserSearcher(Searcher userSearcher)

setAliasManager

public void setAliasManager(AliasManager aliasManager)

getAliasForUser

public String getAliasForUser(String username)
                       throws ApplicationNotFoundException
Throws:
ApplicationNotFoundException


Copyright © 2014 Atlassian. All Rights Reserved.