Class PermissionAPIImpl

  • All Implemented Interfaces:
    org.bonitasoft.engine.api.PermissionAPI

    public class PermissionAPIImpl
    extends java.lang.Object
    implements org.bonitasoft.engine.api.PermissionAPI
    Author:
    Baptiste Mesta
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean checkAPICallWithScript​(java.lang.String className, org.bonitasoft.engine.api.permission.APICallContext context, boolean reload)
      Deprecated, for removal: This API element is subject to removal in a future version.
      java.util.Set<java.lang.String> getResourcePermissions​(java.lang.String resourceKey)  
      boolean isAuthorized​(org.bonitasoft.engine.api.permission.APICallContext apiCallContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PermissionAPIImpl

        public PermissionAPIImpl()
    • Method Detail

      • checkAPICallWithScript

        @Deprecated(forRemoval=true,
                    since="7.14.0")
        public boolean checkAPICallWithScript​(java.lang.String className,
                                              org.bonitasoft.engine.api.permission.APICallContext context,
                                              boolean reload)
                                       throws org.bonitasoft.engine.exception.ExecutionException,
                                              org.bonitasoft.engine.exception.NotFoundException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        checkAPICallWithScript in interface org.bonitasoft.engine.api.PermissionAPI
        Throws:
        org.bonitasoft.engine.exception.ExecutionException
        org.bonitasoft.engine.exception.NotFoundException
      • isAuthorized

        public boolean isAuthorized​(org.bonitasoft.engine.api.permission.APICallContext apiCallContext)
                             throws org.bonitasoft.engine.exception.ExecutionException
        Specified by:
        isAuthorized in interface org.bonitasoft.engine.api.PermissionAPI
        Throws:
        org.bonitasoft.engine.exception.ExecutionException
      • getResourcePermissions

        public java.util.Set<java.lang.String> getResourcePermissions​(java.lang.String resourceKey)
        Specified by:
        getResourcePermissions in interface org.bonitasoft.engine.api.PermissionAPI