com.atlassian.crowd.security.demo.action
Class BaseAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
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
Fields inherited from class com.opensymphony.xwork.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
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 |
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
BaseAction
public BaseAction()
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.