public class EntitlementEntry extends Object
This class represents a standard entry in the collection returned by the ACLProvider.getEntitlements
method.
It contains the permissions that a particular identity or role has over an specific resource.
Constructor and Description |
---|
EntitlementEntry(Resource resource,
ACLPermission permission,
String identityOrRole)
Creates an instance of
EntitlementEntry with the specified resource and permissions. |
Modifier and Type | Method and Description |
---|---|
String |
getIdentityOrRole() |
ACLPermission |
getPermission() |
Resource |
getResource() |
public EntitlementEntry(Resource resource, ACLPermission permission, String identityOrRole)
Creates an instance of EntitlementEntry
with the specified resource and permissions.
resource
- a reference to the Resource
object.permission
- the permissions a particular identity has over the specified resource.identityOrRole
- a String
containing the name of the identity or the role.public Resource getResource()
public ACLPermission getPermission()
public String getIdentityOrRole()
Copyright © 2016 JBoss by Red Hat. All rights reserved.