@Produces public PermissionVoter producePermissionVoter(PartitionManager partitionManager) { return new PersistentPermissionVoter(partitionManager); }
public VotingResult hasPermission(IdentityType recipient, Object resource, String operation) { if (recipient == null) { throw new IllegalArgumentException("recipient must not be null"); } List<Permission> permissions = getPermissionManager(recipient).listPermissions(resource, operation); return checkPermission(recipient, permissions); }
public VotingResult hasPermission(IdentityType recipient, Object resource, String operation) { if (recipient == null) { throw new IllegalArgumentException("recipient must not be null"); } List<Permission> permissions = getPermissionManager(recipient).listPermissions(resource, operation); return checkPermission(recipient, permissions); }
public VotingResult hasPermission(IdentityType recipient, Class<?> resourceClass, Serializable identifier, String operation) { if (recipient == null) { throw new IllegalArgumentException("recipient must not be null"); } List<Permission> permissions = getPermissionManager(recipient).listPermissions(resourceClass, identifier, operation); return checkPermission(recipient, permissions); }
@Produces public PermissionVoter producePermissionVoter(PartitionManager partitionManager) { return new PersistentPermissionVoter(partitionManager); }
public VotingResult hasPermission(IdentityType recipient, Class<?> resourceClass, Serializable identifier, String operation) { if (recipient == null) { throw new IllegalArgumentException("recipient must not be null"); } List<Permission> permissions = getPermissionManager(recipient).listPermissions(resourceClass, identifier, operation); return checkPermission(recipient, permissions); }
@Produces public PermissionVoter producePermissionVoter(PartitionManager partitionManager) { return new PersistentPermissionVoter(partitionManager); }