Class AuthorizationActionResource
- java.lang.Object
-
- org.pentaho.platform.web.http.api.resources.AuthorizationActionResource
-
public class AuthorizationActionResource extends Object
Resource deals with the Authorization Action in the BA Platform. This service validates if a current user is authorized to perform a specific action.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationActionResource()
AuthorizationActionResource(List<org.pentaho.platform.api.engine.IAuthorizationAction> authActionList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthorizationActionService
getAuthorizationActionService()
javax.ws.rs.core.Response
validateAuth(String authAction)
Validates if a current user is authorized to perform a specific action.
-
-
-
Constructor Detail
-
AuthorizationActionResource
public AuthorizationActionResource(List<org.pentaho.platform.api.engine.IAuthorizationAction> authActionList)
-
AuthorizationActionResource
public AuthorizationActionResource()
-
-
Method Detail
-
validateAuth
public javax.ws.rs.core.Response validateAuth(String authAction)
Validates if a current user is authorized to perform a specific action.Example Request:
GET pentaho/api/authorization/action/isauthorized- Parameters:
authAction
- Authorization Action to be validated for the current user.- Returns:
- A boolean response based on the current user being authorized to perform a specific action within the system.
Example Response:
false
-
getAuthorizationActionService
protected AuthorizationActionService getAuthorizationActionService()
-
-