Package org.bonitasoft.engine.service
Interface PermissionService
-
- All Superinterfaces:
LifecycleService,TenantLifecycleService
- All Known Implementing Classes:
PermissionServiceImpl
public interface PermissionService extends TenantLifecycleService
- Author:
- Baptiste Mesta
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckAPICallWithScript(java.lang.String className, org.bonitasoft.engine.api.permission.APICallContext context, boolean reload)execute thePermissionRulehaving the class name in parameter using the given context-
Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stop
-
Methods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
-
-
-
Method Detail
-
checkAPICallWithScript
boolean checkAPICallWithScript(java.lang.String className, org.bonitasoft.engine.api.permission.APICallContext context, boolean reload) throws SExecutionException, java.lang.ClassNotFoundExceptionexecute thePermissionRulehaving the class name in parameter using the given context- Parameters:
className- the class name of the rule to executecontext- the context of the api call to checkreload- reload class when calling this method, warning if some class were called with reload set to false, they will never be reloadable- Returns:
- true if the security script allows the user to make the api call
- Throws:
SExecutionExceptionjava.lang.ClassNotFoundException
-
-