public interface GrantEntry
Privileges are expressed in terms of PermissionEntry, which at runtime translates to a Permission.
Note: This interface is defined as a mechanism to exchange information only. The consumer must not implement this interface. Rather, the consumer should rely upon the existing public classes that implement this interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object another)
Indicates where some other object is "equal" to this object.
|
GranteeEntry |
getGranteeEntry()
Returns the grantee.
|
java.util.List<PermissionEntry> |
getPermissionEntries()
Returns the Permissions granted to this grantee.
|
java.util.List<PermissionEntry> |
getPermissionEntries(java.lang.String permSetName)
Return permissions granted to the grantee based upon a criteria.
|
java.util.Set<java.lang.String> |
getPermissionSetNames()
Returns the names of all the PermissionSet names associated with this grant.
|
GranteeEntry getGranteeEntry()
java.util.List<PermissionEntry> getPermissionEntries()
Permissions returned in this list are permissions granted by via of a grant of an PermissionSet, or a direct grant of a Permission to the grantee
java.util.Set<java.lang.String> getPermissionSetNames()
boolean equals(java.lang.Object another)
equals in class java.lang.Objectjava.util.List<PermissionEntry> getPermissionEntries(java.lang.String permSetName)
permSetName - if permSetName is null, all permissions granted to the grantee by a grant are only returned.
If permSetName is '*', then all permissions granted to the grantee by all PermissionSets are returned.
If permSetName is a valid PermissionSet name, then only the permissions granted by this PermissionSet are returned. A valid PermissionSet is one that is contained in the return result of GrantEntry.getPermissionSetNames().