Privilege.Builder, Privilege.Impl
Constructor and Description |
---|
Impl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityId()
Returns Id of an entity for which these permissions are defined
|
EntityType |
getEntityType()
Returns type of an entity for which these permissions are defined
|
java.util.Set<Permission> |
getPermissions()
Returns non-null, immutable set of permissions associated with an entity.
|
boolean |
hasPermission(Permission p)
Returns true if this privilege contains specified permission, otherwise false.
|
java.lang.String |
toString() |
public java.lang.String getEntityId()
Privilege
getEntityId
in interface Privilege
public EntityType getEntityType()
Privilege
getEntityType
in interface Privilege
public java.util.Set<Permission> getPermissions()
Privilege
getPermissions
in interface Privilege
public boolean hasPermission(Permission p)
Privilege
hasPermission
in interface Privilege
public java.lang.String toString()
toString
in class java.lang.Object