com.atlassian.crowd.security.demo.action
Class BaseAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.crowd.security.demo.action.BaseAction
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:
AbstractBrowser, AddGroup, AddUser, Console, Login, Logoff, RemoveGroup, RemoveUser, UpdateGroup, ViewGroup, ViewUser

public class BaseAction
extends com.opensymphony.xwork.ActionSupport

See Also:
Serialized Form

Field Summary
protected  Boolean authenticated
           
protected  CrowdClient crowdClient
           
protected  CrowdHttpAuthenticator crowdHttpAuthenticator
           
protected  org.slf4j.Logger logger
           
protected  User remoteUser
           
protected  int tab
           
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
BaseAction()
           
 
Method Summary
 String doDefault()
           
 CrowdClient getCrowdClient()
           
 CrowdHttpAuthenticator getCrowdHttpAuthenticator()
           
 String getDisplayName()
           
 User getRemoteUser()
           
protected  javax.servlet.http.HttpSession getSession()
           
 int getTab()
           
 boolean isAuthenticated()
          Checks if a user is currently authenticated verses the Crowd server.
 void setCrowdClient(CrowdClient crowdClient)
           
 void setCrowdHttpAuthenticator(CrowdHttpAuthenticator httpAuthenticator)
           
 void setTab(int tab)
           
 
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, 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

logger

protected final org.slf4j.Logger logger

tab

protected int tab

remoteUser

protected User remoteUser

authenticated

protected Boolean authenticated

crowdClient

protected CrowdClient crowdClient

crowdHttpAuthenticator

protected CrowdHttpAuthenticator crowdHttpAuthenticator
Constructor Detail

BaseAction

public BaseAction()
Method Detail

doDefault

public String doDefault()
Overrides:
doDefault in class com.opensymphony.xwork.ActionSupport

getDisplayName

public String getDisplayName()
                      throws InvalidAuthenticationException
Throws:
InvalidAuthenticationException

getRemoteUser

public User getRemoteUser()
                   throws InvalidAuthenticationException
Throws:
InvalidAuthenticationException

isAuthenticated

public boolean isAuthenticated()
Checks if a user is currently authenticated verses the Crowd server.

Returns:
true if and only if the user is currently authenticated, otherwise false.

getSession

protected javax.servlet.http.HttpSession getSession()

getTab

public int getTab()

setTab

public void setTab(int tab)

getCrowdClient

public CrowdClient getCrowdClient()

setCrowdClient

public void setCrowdClient(CrowdClient crowdClient)

getCrowdHttpAuthenticator

public CrowdHttpAuthenticator getCrowdHttpAuthenticator()

setCrowdHttpAuthenticator

public void setCrowdHttpAuthenticator(CrowdHttpAuthenticator httpAuthenticator)


Copyright © 2013 Atlassian. All Rights Reserved.