|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.apache.maven.continuum.web.action.PlexusActionSupport
org.apache.maven.continuum.web.action.ContinuumActionSupport
public class ContinuumActionSupport
ContinuumActionSupport
| Field Summary | |
|---|---|
protected SimpleDateFormat |
dateFormatter
|
protected static String |
ERROR_MSG_AUTHORIZATION_REQUIRED
|
protected static String |
ERROR_MSG_PROCESSING_AUTHORIZATION
|
protected static String |
RELEASE_ERROR
|
protected static String |
REQUIRES_AUTHENTICATION
|
protected static String |
REQUIRES_AUTHORIZATION
|
| Fields inherited from class org.apache.maven.continuum.web.action.PlexusActionSupport |
|---|
session |
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
ContinuumActionSupport()
|
|
| Method Summary | |
|---|---|
protected void |
checkAddGroupBuildDefinitionAuthorization(String resource)
Check if the current user is authorized to add a build definition for the specified project group |
protected void |
checkAddProjectBuildDefinitionAuthorization(String resource)
Check if the current user is authorized to add a group build definition to a specific project |
protected void |
checkAddProjectGroupAuthorization()
Check if the current user is authorized to add a project group |
protected void |
checkAddProjectGroupNotifierAuthorization(String resource)
Check if the current user is authorized to add a notifier to the specified project group |
protected void |
checkAddProjectNotifierAuthorization(String resource)
Check if the current user is authorized to add a notifier to a specific project |
protected void |
checkAddProjectToGroupAuthorization(String resource)
Check if the current user is authorized to add a project to a specific project group |
protected void |
checkAuthorization(String role)
Check if the current user is authorized to do the action |
protected void |
checkAuthorization(String role,
String resource)
Check if the current user is authorized to do the action |
protected void |
checkAuthorization(String role,
String resource,
boolean requiredResource)
Check if the current user is authorized to do the action |
protected void |
checkBuildProjectGroupAuthorization(String resource)
Check if the current user is authorized to build the specified project group |
protected void |
checkBuildProjectInGroupAuthorization(String resource)
Check if the current user is authorized to build a project in the specified group |
protected void |
checkManageConfigurationAuthorization()
Check if the current user is authorized to manage the application's configuration |
protected void |
checkManageLocalRepositoriesAuthorization()
|
protected void |
checkManageQueuesAuthorization()
Check if the current user is authorized to manage queues |
protected void |
checkManageSchedulesAuthorization()
Check if the current user is authorized to manage the project build schedules |
protected void |
checkModifyGroupBuildDefinitionAuthorization(String resource)
Check if the current user is authorized to modify a build definition in the specified project group |
protected void |
checkModifyProjectBuildDefinitionAuthorization(String resource)
Check if the current user is authorized to modify a build definition of a specific project |
protected void |
checkModifyProjectGroupAuthorization(String resource)
Check if the current user is authorized to modify the specified project group |
protected void |
checkModifyProjectGroupNotifierAuthorization(String resource)
Check if the current user is authorized to modify a notifier in the specified project group |
protected void |
checkModifyProjectInGroupAuthorization(String resource)
Check if the current user is authorized to modify a project in the specified group |
protected void |
checkModifyProjectNotifierAuthorization(String resource)
Check if the current user is authorized to modify a notifier in a specific project |
protected void |
checkRemoveGroupBuildDefinitionAuthorization(String resource)
Check if the current user is authorized to delete a build definition in the specified project group |
protected void |
checkRemoveProjectBuildDefinitionAuthorization(String resource)
Check if the current user is authorized to delete a build definition of a specific project |
protected void |
checkRemoveProjectFromGroupAuthorization(String resource)
Check if the current user is authorized to delete a project from a specified group |
protected void |
checkRemoveProjectGroupAuthorization(String resource)
Check if the current user is authorized to delete the specified project group |
protected void |
checkRemoveProjectGroupNotifierAuthorization(String resource)
Check if the current user is authorized to delete a notifier in the specified project group |
protected void |
checkRemoveProjectNotifierAuthorization(String resource)
Check if the current user is authorized to delete a notifier in a specific project |
protected void |
checkViewProjectGroupAuthorization(String resource)
Check if the current user is authorized to view the specified project group |
protected void |
checkViewReportsAuthorization()
|
String |
doDefault()
|
String |
execute()
|
Continuum |
getContinuum()
|
protected String |
getPrincipal()
|
protected ResourceBundle |
getResourceBundle()
|
protected org.codehaus.plexus.redback.system.SecuritySystem |
getSecuritySystem()
Get the security system |
protected org.codehaus.plexus.redback.users.User |
getUser(String principal)
|
String |
input()
|
boolean |
isAuthenticated()
Check if the current user is already authenticated |
void |
prepare()
|
protected boolean |
requiresAuthentication()
|
void |
setContinuum(Continuum continuum)
|
| Methods inherited from class org.apache.maven.continuum.web.action.PlexusActionSupport |
|---|
setSession |
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, 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 static final String REQUIRES_AUTHENTICATION
protected static final String REQUIRES_AUTHORIZATION
protected static final String RELEASE_ERROR
protected static final String ERROR_MSG_AUTHORIZATION_REQUIRED
protected static final String ERROR_MSG_PROCESSING_AUTHORIZATION
protected final SimpleDateFormat dateFormatter
| Constructor Detail |
|---|
public ContinuumActionSupport()
| Method Detail |
|---|
public void prepare()
throws Exception
prepare in interface com.opensymphony.xwork2.PreparableExceptionpublic Continuum getContinuum()
public void setContinuum(Continuum continuum)
public String doDefault()
throws Exception
doDefault in class com.opensymphony.xwork2.ActionSupportException
public String input()
throws Exception
input in class com.opensymphony.xwork2.ActionSupportException
public String execute()
throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportException
protected void checkAuthorization(String role)
throws AuthorizationRequiredException
role - the role
AuthorizationRequiredException - if the user isn't authorized
protected void checkAuthorization(String role,
String resource)
throws AuthorizationRequiredException
role - the roleresource - the operation resource
AuthorizationRequiredException - if the user isn't authorized
protected void checkAuthorization(String role,
String resource,
boolean requiredResource)
throws AuthorizationRequiredException
role - the roleresource - the operation resourcerequiredResource - true if resource can't be null
AuthorizationRequiredException - if the user isn't authorized
protected void checkViewProjectGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectGroupAuthorization()
throws AuthorizationRequiredException
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkBuildProjectGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectToGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectFromGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectInGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkBuildProjectInGroupAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkAddGroupBuildDefinitionAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveGroupBuildDefinitionAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkModifyGroupBuildDefinitionAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectBuildDefinitionAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectBuildDefinitionAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectBuildDefinitionAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectGroupNotifierAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectGroupNotifierAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectGroupNotifierAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operartion resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectNotifierAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectNotifierAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectNotifierAuthorization(String resource)
throws AuthorizationRequiredException
resource - the operation resource
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkManageConfigurationAuthorization()
throws AuthenticationRequiredException,
AuthorizationRequiredException
AuthenticationRequiredException - if the user isn't authorized if the user isn't authenticated
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkManageSchedulesAuthorization()
throws AuthenticationRequiredException,
AuthorizationRequiredException
AuthenticationRequiredException - if the user isn't authorized if the user isn't authenticated
AuthorizationRequiredException - if the user isn't authorized if the user isn't authorized
protected void checkManageQueuesAuthorization()
throws AuthenticationRequiredException,
AuthorizationRequiredException
AuthenticationRequiredException - if the user isn't authenticated
AuthorizationRequiredException - if the user isn't authorized
protected void checkManageLocalRepositoriesAuthorization()
throws AuthorizationRequiredException
AuthorizationRequiredException
protected void checkViewReportsAuthorization()
throws AuthorizationRequiredException
AuthorizationRequiredExceptionprotected org.codehaus.plexus.redback.system.SecuritySystem getSecuritySystem()
protected boolean requiresAuthentication()
public boolean isAuthenticated()
protected ResourceBundle getResourceBundle()
protected String getPrincipal()
protected org.codehaus.plexus.redback.users.User getUser(String principal)
throws org.codehaus.plexus.redback.users.UserNotFoundException
org.codehaus.plexus.redback.users.UserNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||