Class PermissionReader


  • public class PermissionReader
    extends java.lang.Object
    read permission of resources class
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> filterPermission​(java.util.Collection<java.lang.String> permissions, org.apache.shiro.subject.Subject subject)
      filter permissions for a specific user
      static java.util.Set<java.lang.String> getMethodsAnnotatedWith​(java.lang.Class<?> type, java.lang.Class<? extends org.apache.shiro.authz.annotation.RequiresPermissions> annotation)
      return the all permissions for vitam
      • Methods inherited from class java.lang.Object

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

      • PermissionReader

        public PermissionReader()
    • Method Detail

      • getMethodsAnnotatedWith

        public static java.util.Set<java.lang.String> getMethodsAnnotatedWith​(java.lang.Class<?> type,
                                                                              java.lang.Class<? extends org.apache.shiro.authz.annotation.RequiresPermissions> annotation)
        return the all permissions for vitam
        Parameters:
        type -
        annotation -
        Returns:
        set of String
      • filterPermission

        public static java.util.List<java.lang.String> filterPermission​(java.util.Collection<java.lang.String> permissions,
                                                                        org.apache.shiro.subject.Subject subject)
        filter permissions for a specific user
        Parameters:
        permissions -
        subject -
        Returns:
        list of String