Package fr.gouv.vitam.ihmdemo.common.utils

# Class PermissionReader

java.lang.Object
fr.gouv.vitam.ihmdemo.common.utils.PermissionReader

public class PermissionReader extends Object
read permission of resources class

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PermissionReader()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<String>`
  `filterPermission(Collection<String> permissions, org.apache.shiro.subject.Subject subject)`
  filter permissions for a specific user
  `static Set<String>`
  `getMethodsAnnotatedWith(Class<?> type, 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 Details

  - ### PermissionReader

    public PermissionReader()

- ## Method Details

  - ### getMethodsAnnotatedWith

    public static Set<String> getMethodsAnnotatedWith(Class<?> type, 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 List<String> filterPermission(Collection<String> permissions, org.apache.shiro.subject.Subject subject)
    filter permissions for a specific user
    Parameters:
      `permissions` -
      `subject` -
    Returns:
      list of String