EntityACL

public class EntityACL

Fields

GLOBAL_PERMISSIONS

public static final EntityACL GLOBAL_PERMISSIONS

MIN_PRIORITY_BITSET

public static final long MIN_PRIORITY_BITSET

OWNER_BITSET

public static final long OWNER_BITSET

Constructors

EntityACL

public EntityACL(Collection<EntityACI> acl)

EntityACL

public EntityACL(EntityACI... aci)

Methods

combine

public static final EntityACL combine(EntityACL... acls)

convert

public static BitSet convert(long value)

convertToArray

public static boolean[] convertToArray(long value)

deserialize

public static final EntityACL deserialize(String input)

equals

public boolean equals(Object obj)

fromJSON

public static EntityACL fromJSON(String input)

getOwnerACLFor

public static final EntityACL getOwnerACLFor(Subject subject)

getOwnerACLFor

public static final EntityACL getOwnerACLFor(ResponsibleAgent agent)

getOwners

public List<ResponsibleAgent> getOwners()

getOwners

public static final List<ResponsibleAgent> getOwners(Collection<EntityACI> acl)

getPermissionsFor

public static final Set<EntityPermission> getPermissionsFor(Subject subject, Collection<EntityACI> entityACL)

getPermissionsFor

public Element getPermissionsFor(Subject subject)

getPermissionsFromBitSet

public static final Set<EntityPermission> getPermissionsFromBitSet(long bitSet)

getPriorityEntityACL

public static final EntityACL getPriorityEntityACL(EntityACL acl)

getPriorityEntityACL

public EntityACL getPriorityEntityACL()

getResultingACL

public static final long getResultingACL(Collection<Long> acl)

getRules

public Collection<EntityACI> getRules()

isAllowance

public static final boolean isAllowance(long bitSet)

isDenial

public static final boolean isDenial(long bitSet)

isOwnerBitSet

public static final boolean isOwnerBitSet(long bitSet)

isPermitted

public boolean isPermitted(Subject subject, org.apache.shiro.authz.Permission permission)

isPriorityBitSet

public static final boolean isPriorityBitSet(long bitSet)

parseFromElement

public static final EntityACL parseFromElement(Element e)

Example

Parameters:
  • e

serialize

public static final String serialize(EntityACL entityACL)

serialize

public String serialize()

toElement

public final Element toElement()

toJSON

public static String toJSON(EntityACL acl)