public class PermissionServiceImpl extends Object implements PermissionService
| Constructor and Description |
|---|
PermissionServiceImpl(org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
SessionService sessionService,
String scriptFolder,
long tenantId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAPICallWithScript(String className,
APICallContext context,
boolean reload)
execute the
PermissionRule having the class name in parameter using the given context |
protected APIAccessorImpl |
createAPIAccessorImpl() |
void |
pause() |
void |
resume() |
void |
start() |
void |
stop() |
public PermissionServiceImpl(org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
SessionService sessionService,
String scriptFolder,
long tenantId)
public boolean checkAPICallWithScript(String className, APICallContext context, boolean reload) throws org.bonitasoft.engine.commons.exceptions.SExecutionException, 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 reloadableorg.bonitasoft.engine.commons.exceptions.SExecutionExceptionClassNotFoundExceptionprotected APIAccessorImpl createAPIAccessorImpl()
public void start()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
start in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void stop()
stop in interface org.bonitasoft.engine.commons.LifecycleServicepublic void pause()
pause in interface org.bonitasoft.engine.commons.LifecycleServicepublic void resume()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
resume in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.