|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.ServiceImpl
org.camunda.bpm.engine.impl.AuthorizationServiceImpl
public class AuthorizationServiceImpl
| Field Summary |
|---|
| Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl |
|---|
commandExecutor |
| Constructor Summary | |
|---|---|
AuthorizationServiceImpl()
|
|
| Method Summary | |
|---|---|
AuthorizationQuery |
createAuthorizationQuery()
Constructs an authorization query. |
Authorization |
createNewAuthorization(int type)
Returns a new (transient) Authorization object. |
void |
deleteAuthorization(String authorizationId)
Allows deleting a persistent Authorization object. |
boolean |
isUserAuthorized(String userId,
List<String> groupIds,
Permission permission,
Resource resource)
Allows performing an authorization check. |
boolean |
isUserAuthorized(String userId,
List<String> groupIds,
Permission permission,
Resource resource,
String resourceId)
Allows performing an authorization check. |
Authorization |
saveAuthorization(Authorization authorization)
Allows saving an Authorization object. |
| Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl |
|---|
getCommandExecutor, setCommandExecutor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationServiceImpl()
| Method Detail |
|---|
public AuthorizationQuery createAuthorizationQuery()
AuthorizationService
createAuthorizationQuery in interface AuthorizationServicepublic Authorization createNewAuthorization(int type)
AuthorizationServiceReturns a new (transient) Authorization object. The Object is not
yet persistent and must be saved using the AuthorizationService.saveAuthorization(Authorization)
method.
createNewAuthorization in interface AuthorizationServicetype - the type of the authorization. Legal values: Authorization.AUTH_TYPE_GLOBAL,
Authorization.AUTH_TYPE_GRANT, Authorization.AUTH_TYPE_REVOKE
public Authorization saveAuthorization(Authorization authorization)
AuthorizationServiceAuthorization object. Use this method for persisting new
transient Authorization objects obtained through AuthorizationService.createNewAuthorization(int) or
for updating persistent objects.
saveAuthorization in interface AuthorizationServiceauthorization - a Authorization object.
public void deleteAuthorization(String authorizationId)
AuthorizationServiceAuthorization object.
deleteAuthorization in interface AuthorizationServiceauthorizationId - the id of the Authorization object to delete.
public boolean isUserAuthorized(String userId,
List<String> groupIds,
Permission permission,
Resource resource)
AuthorizationServiceAllows performing an authorization check.
Returns true if the given user has permissions for interacting with the resource is the requested way.
This method checks for the resource type, see Authorization.ANY
isUserAuthorized in interface AuthorizationServiceuserId - the id of the user for which the check is performed.groupIds - a list of group ids the user is member ofpermission - the permission(s) to check for.resource - the resource for which the authorization is checked.
public boolean isUserAuthorized(String userId,
List<String> groupIds,
Permission permission,
Resource resource,
String resourceId)
AuthorizationServiceAllows performing an authorization check.
Returns true if the given user has permissions for interacting with the resource is the requested way.
isUserAuthorized in interface AuthorizationServiceuserId - the id of the user for which the check is performed.groupIds - a list of group ids the user is member ofpermission - the permission(s) to check for.resource - the resource for which the authorization is checked.resourceId - the resource id for which the authorization check is performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||