Class PermissionServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.service.impl.PermissionServiceImpl
-
- All Implemented Interfaces:
LifecycleService,TenantLifecycleService,PermissionService
public class PermissionServiceImpl extends java.lang.Object implements PermissionService
Permission service implementation- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description PermissionServiceImpl(ClassLoaderService classLoaderService, TechnicalLoggerService logger, SessionAccessor sessionAccessor, SessionService sessionService, long tenantId)
-
Method Summary
All Methods Instance Methods Concrete 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 contextprotected APIAccessorImplcreateAPIAccessorImpl()voidpause()Temporary halt the execution of this service.voidresume()resume the execution the servicevoidstart()Start the servicevoidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
-
-
-
Constructor Detail
-
PermissionServiceImpl
public PermissionServiceImpl(ClassLoaderService classLoaderService, TechnicalLoggerService logger, SessionAccessor sessionAccessor, SessionService sessionService, long tenantId)
-
-
Method Detail
-
checkAPICallWithScript
public boolean checkAPICallWithScript(java.lang.String className, org.bonitasoft.engine.api.permission.APICallContext context, boolean reload) throws SExecutionException, java.lang.ClassNotFoundExceptionDescription copied from interface:PermissionServiceexecute thePermissionRulehaving the class name in parameter using the given context- Specified by:
checkAPICallWithScriptin interfacePermissionService- 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
-
createAPIAccessorImpl
protected APIAccessorImpl createAPIAccessorImpl()
-
start
public void start() throws SBonitaExceptionDescription copied from interface:LifecycleServiceStart the service- Specified by:
startin interfaceLifecycleService- Throws:
SBonitaException
-
stop
public void stop()
- Specified by:
stopin interfaceLifecycleService
-
pause
public void pause()
Description copied from interface:LifecycleServiceTemporary halt the execution of this service.- Specified by:
pausein interfaceLifecycleService
-
resume
public void resume() throws SBonitaExceptionDescription copied from interface:LifecycleServiceresume the execution the service- Specified by:
resumein interfaceLifecycleService- Throws:
SBonitaException
-
-