public class PermissionServiceImpl extends java.lang.Object implements PermissionService
| Constructor and Description |
|---|
PermissionServiceImpl(ClassLoaderService classLoaderService,
TechnicalLoggerService logger,
SessionAccessor sessionAccessor,
SessionService sessionService,
long tenantId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAPICallWithScript(java.lang.String className,
org.bonitasoft.engine.api.permission.APICallContext context,
boolean reload)
execute the
PermissionRule having the class name in parameter using
the given context |
protected APIAccessorImpl |
createAPIAccessorImpl() |
void |
pause()
Temporary halt the execution of this service.
|
void |
resume()
resume the execution the service
|
void |
start()
Start the service
|
void |
stop() |
public PermissionServiceImpl(ClassLoaderService classLoaderService, TechnicalLoggerService logger, SessionAccessor sessionAccessor, SessionService sessionService, long tenantId)
public boolean checkAPICallWithScript(java.lang.String className,
org.bonitasoft.engine.api.permission.APICallContext context,
boolean reload)
throws SExecutionException,
java.lang.ClassNotFoundException
PermissionServicePermissionRule having the class name in parameter using
the given contextcheckAPICallWithScript in interface PermissionServiceclassName - 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 reloadableSExecutionExceptionjava.lang.ClassNotFoundExceptionprotected APIAccessorImpl createAPIAccessorImpl()
public void start()
throws SBonitaException
LifecycleServicestart in interface LifecycleServiceSBonitaExceptionpublic void stop()
stop in interface LifecycleServicepublic void pause()
LifecycleServicepause in interface LifecycleServicepublic void resume()
throws SBonitaException
LifecycleServiceresume in interface LifecycleServiceSBonitaException