Package org.jboss.security.acl
Class EntitlementEntry
- java.lang.Object
-
- org.jboss.security.acl.EntitlementEntry
-
public class EntitlementEntry extends Object
This class represents a standard entry in the collection returned by the
ACLProvider.getEntitlementsmethod. It contains the permissions that a particular identity or role has over an specific resource.- Author:
- Stefan Guilhen
-
-
Constructor Summary
Constructors Constructor Description EntitlementEntry(Resource resource, ACLPermission permission, String identityOrRole)Creates an instance ofEntitlementEntrywith the specified resource and permissions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdentityOrRole()ACLPermissiongetPermission()ResourcegetResource()
-
-
-
Constructor Detail
-
EntitlementEntry
public EntitlementEntry(Resource resource, ACLPermission permission, String identityOrRole)
Creates an instance of
EntitlementEntrywith the specified resource and permissions.- Parameters:
resource- a reference to theResourceobject.permission- the permissions a particular identity has over the specified resource.identityOrRole- aStringcontaining the name of the identity or the role.
-
-
Method Detail
-
getResource
public Resource getResource()
-
getPermission
public ACLPermission getPermission()
-
getIdentityOrRole
public String getIdentityOrRole()
-
-