Interface PermissionService

    • Field Detail

      • USER_TYPE_AUTHORIZATION_PREFIX

        static final java.lang.String USER_TYPE_AUTHORIZATION_PREFIX
        See Also:
        Constant Field Values
      • PROFILE_TYPE_AUTHORIZATION_PREFIX

        static final java.lang.String PROFILE_TYPE_AUTHORIZATION_PREFIX
        See Also:
        Constant Field Values
      • SCRIPT_TYPE_AUTHORIZATION_PREFIX

        static final java.lang.String SCRIPT_TYPE_AUTHORIZATION_PREFIX
        See Also:
        Constant Field Values
    • 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
      • addPermissions

        void addPermissions​(java.lang.String pageName,
                            java.util.Properties pageProperties)
      • removePermissions

        void removePermissions​(java.util.Properties pageProperties)
      • getResourcePermissions

        java.util.Set<java.lang.String> getResourcePermissions​(java.lang.String resourceKey)