|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork.ActionSupport com.atlassian.crowd.openid.server.action.BaseAction
public class BaseAction
Field Summary | |
---|---|
protected java.lang.String |
actionMessageAlertColor
Webwork action messages color settings. |
static java.lang.String |
ALERT_BLUE
|
static java.lang.String |
ALERT_RED
|
static java.lang.String |
ALERT_YELLOW
|
protected java.lang.Boolean |
authenticated
|
protected java.lang.String |
identifier
|
protected java.lang.Boolean |
isAdministrator
|
protected OpenIDAuthenticationManager |
openIDAuthenticationManager
|
protected OpenIDPropertyManager |
openIDPropertyManager
|
protected ProfileManager |
profileManager
|
protected SiteManager |
siteManager
|
protected UserManager |
userManager
|
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 | |
---|---|
void |
addActionMessage(java.lang.String color,
java.lang.String message)
Sets a UI message and the color type for the user. |
boolean |
containsActionMessages()
|
java.lang.String |
getActionMessageAlertColor()
Gets the action messageo color dressing to use with the decorator. |
SOAPAttribute |
getAttribute(java.lang.String name)
|
java.lang.String |
getBaseURL()
|
java.lang.String |
getFirstAttribute(java.lang.String name)
|
HttpAuthenticator |
getHttpAuthenticator()
|
protected javax.servlet.http.HttpServletRequest |
getHttpReqest()
|
java.lang.String |
getIdentifier()
|
java.lang.String |
getPrincipalName()
Gets the user's fullname for display. |
SOAPPrincipal |
getRemotePrincipal()
|
protected javax.servlet.http.HttpServletRequest |
getRequest()
Gets the underlying HTTP request from the Action. |
SecurityServerClient |
getSecurityServerClient()
|
protected javax.servlet.http.HttpSession |
getSession()
Gets the HTTP session for the current user. |
boolean |
isAdministrator()
|
boolean |
isAuthenticated()
Checks if a principal is currently authenticated verses the Crowd security server. |
static java.lang.String |
lookupDomainName(javax.servlet.http.HttpServletRequest request)
|
void |
setHttpAuthenticator(HttpAuthenticator httpAuthenticator)
|
void |
setOpenIDAuthenticationManager(OpenIDAuthenticationManager openIDAuthenticationManager)
|
void |
setProfileManager(ProfileManager profileManager)
|
void |
setPropertyManager(OpenIDPropertyManager openIDPropertyManager)
|
void |
setSecurityServerClient(SecurityServerClient securityServerClient)
|
void |
setSiteManager(SiteManager siteManager)
|
void |
setUserManager(UserManager userManager)
|
Methods inherited from class com.opensymphony.xwork.ActionSupport |
---|
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doDefault, 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 |
---|
protected java.lang.Boolean authenticated
protected java.lang.String actionMessageAlertColor
public static final java.lang.String ALERT_BLUE
BaseAction#actionMessageAlertColor;
,
Constant Field Valuespublic static final java.lang.String ALERT_YELLOW
BaseAction#actionMessageAlertColor;
,
Constant Field Valuespublic static final java.lang.String ALERT_RED
BaseAction#actionMessageAlertColor;
,
Constant Field Valuesprotected OpenIDPropertyManager openIDPropertyManager
protected UserManager userManager
protected SiteManager siteManager
protected ProfileManager profileManager
protected OpenIDAuthenticationManager openIDAuthenticationManager
protected java.lang.Boolean isAdministrator
protected java.lang.String identifier
Constructor Detail |
---|
public BaseAction()
Method Detail |
---|
public boolean isAuthenticated()
true
if and only if the principal is currently authenticated, otherwise false
.protected javax.servlet.http.HttpSession getSession()
protected javax.servlet.http.HttpServletRequest getRequest()
public SOAPPrincipal getRemotePrincipal() throws InvalidAuthenticationException
InvalidAuthenticationException
public java.lang.String getPrincipalName() throws InvalidAuthenticationException
InvalidAuthenticationException
public java.lang.String getFirstAttribute(java.lang.String name) throws InvalidAuthenticationException
InvalidAuthenticationException
public SOAPAttribute getAttribute(java.lang.String name) throws InvalidAuthenticationException
InvalidAuthenticationException
public java.lang.String getBaseURL()
public static java.lang.String lookupDomainName(javax.servlet.http.HttpServletRequest request)
protected javax.servlet.http.HttpServletRequest getHttpReqest()
public boolean isAdministrator()
public java.lang.String getActionMessageAlertColor()
public boolean containsActionMessages()
public void setPropertyManager(OpenIDPropertyManager openIDPropertyManager)
public void setUserManager(UserManager userManager)
public void setSiteManager(SiteManager siteManager)
public void setProfileManager(ProfileManager profileManager)
public void setOpenIDAuthenticationManager(OpenIDAuthenticationManager openIDAuthenticationManager)
public java.lang.String getIdentifier() throws InvalidAuthenticationException
InvalidAuthenticationException
public void addActionMessage(java.lang.String color, java.lang.String message)
color
- The color to use.message
- The message to display.public HttpAuthenticator getHttpAuthenticator()
public void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)
public SecurityServerClient getSecurityServerClient()
public void setSecurityServerClient(SecurityServerClient securityServerClient)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |