Generated by
JDiff

Class org.cyclos.impl.utils.PermissionHelper

Removed Methods
Collection<T> applyAllowed(Collection<T>, Collection<T>) Basically used for query filter semantics with collections, given a collection with the selected elements and another one with the allowed elements: If the allowed elements are empty, throws a PermissionDeniedException.
Set<T> applyAllowed(Set<T>, Set<T>) Basically used for query filter semantics with collections, given a collection with the selected elements and another one with the allowed elements: If the allowed elements are empty, returns null.
 

Added Methods
Set<E> applyAllowed(Collection<E>, Collection<A>) Basically used for query filter semantics with collections, given a collection with the selected elements and another one with the allowed elements: If the allowed elements are empty, throws a PermissionDeniedException.
boolean hasRole(RoleContainer, Role) Returns whether the given RoleContainer has the given Role
 

Changed Methods
Collection<T> checkSelection(Collection<T>, Collection<T>) Documentation changed from old to new.
Same as .checkSelection(Collection, Collection, boolean) but not supporting an empty collection for the allowed elements.
Collection<T> checkSelection(Collection<T>, Collection<T>, boolean) Documentation changed from old to new.
Used for query filter semantics with collections.
Given a collection with the selected elements and another one with the allowed elements:
If the allowed elements are empty (and empty for the allowed is not supported) it throws a PermissionDeniedException.