Class PermissionReader
- java.lang.Object
-
- fr.gouv.vitam.ihmdemo.common.utils.PermissionReader
-
public class PermissionReader extends java.lang.Object
read permission of resources class
-
-
Constructor Summary
Constructors Constructor Description PermissionReader()
-
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 userstatic 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
-
-
-
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
-
-