Interface PermissionService

    • Method Detail

      • checkAPICallWithScript

        boolean checkAPICallWithScript​(java.lang.String className,
                                       org.bonitasoft.engine.api.permission.APICallContext context,
                                       boolean reload)
                                throws SExecutionException,
                                       java.lang.ClassNotFoundException
        execute the PermissionRule having the class name in parameter using the given context
        Parameters:
        className - the class name of the rule to execute
        context - the context of the api call to check
        reload - 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:
        SExecutionException
        java.lang.ClassNotFoundException