com.atlassian.crowd.console.action
Class AbstractBrowser<T>

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.crowd.console.action.BaseAction
          extended by com.atlassian.crowd.console.action.AbstractBrowser<T>
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
Direct Known Subclasses:
BrowseApplications, BrowseApplicationSessions, BrowseDirectories, BrowseGroups, BrowsePrincipals, BrowsePrincipalSessions, SearchPicker

public abstract class AbstractBrowser<T>
extends BaseAction

See Also:
Serialized Form

Field Summary
protected  List<T> results
          Results listObjects.
protected  int resultsPerPage
          Results per page.
protected  int resultsStart
          Results start.
 
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, logger, 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
AbstractBrowser()
           
 
Method Summary
 String getFormattedDateTime(Date date)
           
 String getFormattedDateTime(long time)
           
 int getNextResultsStart()
          Gets the next results start.
 int getPreviousResultsStart()
          Gets the previous results start.
 List<T> getResults()
           
 int getResultsPerPage()
          Gets the results per page.
 int getResultsStart()
          Gets the results start.
 void setResults(List<T> results)
           
 void setResultsPerPage(int resultsPerPage)
          Sets the results per page.
 void setResultsStart(int resultsStart)
          Sets the results start.
 
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionError, addActionMessage, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, containsActionMessages, containsErrorMessages, directory, doDefault, 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<T> results
Results listObjects.

Constructor Detail

AbstractBrowser

public AbstractBrowser()
Method Detail

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<T> getResults()

setResults

public void setResults(List<T> results)

getFormattedDateTime

public final String getFormattedDateTime(Date date)

getFormattedDateTime

public final String getFormattedDateTime(long time)


Copyright © 2014 Atlassian. All Rights Reserved.