Search in sources :

Example 1 with AnyEntitlement

use of org.apache.syncope.common.lib.types.AnyEntitlement in project syncope by apache.

the class EntitlementsHolder method removeFor.

public Set<String> removeFor(final String anyType) {
    Set<String> removed = new HashSet<>();
    for (AnyEntitlement operation : AnyEntitlement.values()) {
        this.values.remove(operation.getFor(anyType));
        removed.add(operation.getFor(anyType));
    }
    return removed;
}
Also used : AnyEntitlement(org.apache.syncope.common.lib.types.AnyEntitlement) HashSet(java.util.HashSet)

Example 2 with AnyEntitlement

use of org.apache.syncope.common.lib.types.AnyEntitlement in project syncope by apache.

the class EntitlementsHolder method addFor.

public Set<String> addFor(final String anyType) {
    Set<String> added = new HashSet<>();
    for (AnyEntitlement operation : AnyEntitlement.values()) {
        this.values.add(operation.getFor(anyType));
        added.add(operation.getFor(anyType));
    }
    return added;
}
Also used : AnyEntitlement(org.apache.syncope.common.lib.types.AnyEntitlement) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)2 AnyEntitlement (org.apache.syncope.common.lib.types.AnyEntitlement)2