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, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AbstractBrowser, AddGroup, AddPrincipal, AddRole, Console, Login, Logoff, RemoveGroup, RemovePrincipal, RemoveRole, ResetPassword, UpdateGroup, ViewGroup, ViewPrincipal, ViewRole

public class BaseAction
extends com.opensymphony.xwork.ActionSupport

See Also:
Serialized Form

Field Summary
protected  java.lang.Boolean authenticated
           
protected  HttpAuthenticator httpAuthenticator
           
protected  org.apache.log4j.Logger logger
           
protected  SOAPPrincipal remotePrincipal
           
protected  SecurityServerClient securityServerClient
           
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
 SOAPAttribute buildAttribute(java.lang.String key, java.lang.String value)
           
 SOAPAttribute buildAttribute(java.lang.String key, java.lang.String[] values)
           
 java.lang.String doDefault()
           
 SOAPAttribute getAttribute(java.lang.String name)
           
 java.lang.String getFirstAttribute(java.lang.String name)
           
 HttpAuthenticator getHttpAuthenticator()
           
 java.lang.String getPrincipalName()
           
 SOAPPrincipal getRemotePrincipal()
           
 SecurityServerClient getSecurityServerClient()
           
protected  javax.servlet.http.HttpSession getSession()
           
 int getTab()
           
 boolean isAuthenticated()
          Checks if a principal is currently authenticated verses the Crowd security server.
 void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)
           
 void setSecurityServerClient(SecurityServerClient securityServerClient)
           
 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.apache.log4j.Logger logger

tab

protected int tab

remotePrincipal

protected SOAPPrincipal remotePrincipal

authenticated

protected java.lang.Boolean authenticated

securityServerClient

protected SecurityServerClient securityServerClient

httpAuthenticator

protected HttpAuthenticator httpAuthenticator
Constructor Detail

BaseAction

public BaseAction()
Method Detail

doDefault

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

getPrincipalName

public java.lang.String getPrincipalName()
                                  throws InvalidPrincipalException
Throws:
InvalidPrincipalException

getRemotePrincipal

public SOAPPrincipal getRemotePrincipal()
                                 throws InvalidPrincipalException
Throws:
InvalidPrincipalException

getFirstAttribute

public java.lang.String getFirstAttribute(java.lang.String name)
                                   throws InvalidPrincipalException
Throws:
InvalidPrincipalException

isAuthenticated

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

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

getAttribute

public SOAPAttribute getAttribute(java.lang.String name)
                           throws InvalidPrincipalException
Throws:
InvalidPrincipalException

buildAttribute

public SOAPAttribute buildAttribute(java.lang.String key,
                                    java.lang.String value)

buildAttribute

public SOAPAttribute buildAttribute(java.lang.String key,
                                    java.lang.String[] values)

getSession

protected javax.servlet.http.HttpSession getSession()

getTab

public int getTab()

setTab

public void setTab(int tab)

getSecurityServerClient

public SecurityServerClient getSecurityServerClient()

setSecurityServerClient

public void setSecurityServerClient(SecurityServerClient securityServerClient)

getHttpAuthenticator

public HttpAuthenticator getHttpAuthenticator()

setHttpAuthenticator

public void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.