@ProviderType
public interface RoleCollection
RoleContributor.contribute(RoleCollection)
.Modifier and Type | Method and Description |
---|---|
boolean |
addRoleId(long roleId)
Adds the role ID to the collection.
|
long |
getCompanyId()
Returns the primary key of the company whose permissions are being
checked.
|
long |
getGroupId()
Returns the primary key of the group whose permissions are being checked.
|
long[] |
getInitialRoleIds()
Returns the IDs of the initial set of roles calculated from persisted
assignment and inheritance.
|
User |
getUser() |
UserBag |
getUserBag() |
boolean |
hasRoleId(long roleId)
Returns
true if the collection has the role ID. |
boolean |
isSignedIn()
Returns
true if the user is signed in. |
boolean |
removeRoleId(long roleId) |
boolean addRoleId(long roleId)
roleId
- the ID of the roletrue
if the role ID was added to the collectionlong getCompanyId()
long getGroupId()
long[] getInitialRoleIds()
User getUser()
UserBag getUserBag()
boolean hasRoleId(long roleId)
true
if the collection has the role ID.roleId
- the ID of the roletrue
if the collection has the role ID;
false
otherwiseboolean isSignedIn()
true
if the user is signed in.true
if the user is signed in; false
otherwiseboolean removeRoleId(long roleId)