com.atlassian.crowd.console.action
Class ApplicationBaseAction

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
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:
ViewApplication

public abstract class ApplicationBaseAction
extends BaseAction

Needed so application plugins can get the correct list of web-items without having to depend too heavily on the internals of the way Crowd lays out the page.

See Also:
Serialized Form

Field Summary
 
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
ApplicationBaseAction()
           
 
Method Summary
abstract  Application getApplication()
           
 List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForApplication()
          Gets a list of web-items that should be used as tabs in the view of an application.
 
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
 

Constructor Detail

ApplicationBaseAction

public ApplicationBaseAction()
Method Detail

getWebItemsForApplication

public List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForApplication()
                                                                                             throws ApplicationNotFoundException
Gets a list of web-items that should be used as tabs in the view of an application. UI elements with a of "application-tabs" are part of the system, and defined in system-ui-plugin.xml. Plugins should define their app-specific web-items as "application-tabs:app-name" (eg "application-tabs:google-apps"). Any defined for all applications can be defined as part of "application-tabs".

Returns:
Throws:
ApplicationNotFoundException

getApplication

public abstract Application getApplication()
                                    throws ApplicationNotFoundException
Throws:
ApplicationNotFoundException


Copyright © 2013 Atlassian. All Rights Reserved.