|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.continuum.xmlrpc.server.AbstractContinuumSecureService
public abstract class AbstractContinuumSecureService
| Constructor Summary | |
|---|---|
AbstractContinuumSecureService()
|
|
| 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 |
checkManageBuildDefinitionTemplatesAuthorization()
Check if the current user is authorized to manage the build definitions templates |
protected void |
checkManageConfigurationAuthorization()
Check if the current user is authorized to manage the application's configuration |
protected void |
checkManageInstallationsAuthorization()
Check if the current user is authorized to manage the installations |
protected void |
checkManageProfilesAuthorization()
Check if the current user is authorized to manage the profiles |
protected void |
checkManagePurgingAuthorization()
|
protected void |
checkManageQueuesAuthorization()
|
protected void |
checkManageRepositoriesAuthorization()
|
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 |
org.codehaus.plexus.redback.system.SecuritySession |
getSecuritySession()
|
org.codehaus.plexus.redback.system.SecuritySystem |
getSecuritySystem()
|
boolean |
isAuthenticated()
Check if the current user is already authenticated |
protected boolean |
isAuthorized(String role,
String resource)
Verify if the current user is authorized to do the action |
protected boolean |
isAuthorized(String role,
String resource,
boolean requiredResource)
Verify if the current user is authorized to do the action |
void |
setConfig(ContinuumXmlRpcConfig config)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContinuumSecureService()
| Method Detail |
|---|
public void setConfig(ContinuumXmlRpcConfig config)
setConfig in interface ContinuumXmlRpcComponentpublic org.codehaus.plexus.redback.system.SecuritySystem getSecuritySystem()
public org.codehaus.plexus.redback.system.SecuritySession getSecuritySession()
public boolean isAuthenticated()
protected void checkAuthorization(String role)
throws ContinuumException
role - the role
ContinuumException - if the user isn't authorized
protected void checkAuthorization(String role,
String resource)
throws ContinuumException
role - the roleresource - the operation resource
ContinuumException - if the user isn't authorized
protected boolean isAuthorized(String role,
String resource)
throws org.codehaus.plexus.redback.authorization.AuthorizationException
role - the roleresource - the operation resource
org.codehaus.plexus.redback.authorization.AuthorizationException - if the authorizing request generate an error
protected boolean isAuthorized(String role,
String resource,
boolean requiredResource)
throws org.codehaus.plexus.redback.authorization.AuthorizationException
role - the roleresource - the operation resourcerequiredResource - true if resource can't be null
org.codehaus.plexus.redback.authorization.AuthorizationException - if the authorizing request generate an error
protected void checkAuthorization(String role,
String resource,
boolean requiredResource)
throws ContinuumException
role - the roleresource - the operation resourcerequiredResource - true if resource can't be null
ContinuumException - if the user isn't authorized
protected void checkViewProjectGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectGroupAuthorization()
throws ContinuumException
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkBuildProjectGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectToGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectFromGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectInGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkBuildProjectInGroupAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkAddGroupBuildDefinitionAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveGroupBuildDefinitionAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkModifyGroupBuildDefinitionAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectBuildDefinitionAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectBuildDefinitionAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectBuildDefinitionAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectGroupNotifierAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectGroupNotifierAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectGroupNotifierAuthorization(String resource)
throws ContinuumException
resource - the operartion resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkAddProjectNotifierAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkRemoveProjectNotifierAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkModifyProjectNotifierAuthorization(String resource)
throws ContinuumException
resource - the operation resource
ContinuumException - if the user isn't authorized if the user isn't authorized
protected void checkManageConfigurationAuthorization()
throws ContinuumException
ContinuumException - if the user isn't authorized if the user isn't authenticated
protected void checkManageSchedulesAuthorization()
throws ContinuumException
ContinuumException - if the user isn't authorized if the user isn't authenticated
protected void checkManageInstallationsAuthorization()
throws ContinuumException
ContinuumException - if the user isn't authorized if the user isn't authenticated
protected void checkManageProfilesAuthorization()
throws ContinuumException
ContinuumException - if the user isn't authorized if the user isn't authenticated
protected void checkManageBuildDefinitionTemplatesAuthorization()
throws ContinuumException
ContinuumException - if the user isn't authorized if the user isn't authenticated
protected void checkManageQueuesAuthorization()
throws ContinuumException
ContinuumException
protected void checkManagePurgingAuthorization()
throws ContinuumException
ContinuumException
protected void checkManageRepositoriesAuthorization()
throws ContinuumException
ContinuumException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||