@ProviderType
public interface RoleCollection
RoleContributor.contribute(RoleCollection)
. It holds the managed collection
of roleIds starting with the initial set calculated from persisted
role assignment and role inheritance.Modifier and Type | Method and Description |
---|---|
boolean |
addRoleId(long roleId)
Add a roleId to the collection.
|
long |
getCompanyId()
Get the companyId of the Company being checked.
|
long |
getGroupId()
Get the groupId of the Group currently being permission checked.
|
long[] |
getInitialRoleIds()
Get the initial set of roles calculated from persisted assignment and
inheritance.
|
User |
getUser() |
UserBag |
getUserBag() |
boolean |
hasRoleId(long roleId)
Check if a Role is already in the collection by roleId.
|
boolean |
isSignedIn()
Returns
true if the user is signed in. |
boolean |
removeRoleId(long roleId) |
boolean addRoleId(long roleId)
roleId
- to add to the collectiontrue
if the roleId was added to the collectionlong getCompanyId()
long getGroupId()
long[] getInitialRoleIds()
User getUser()
UserBag getUserBag()
boolean hasRoleId(long roleId)
roleId
- the roleId to checktrue
of the Role is in the collectionboolean isSignedIn()
true
if the user is signed in.true
if the user is signed in; false
otherwiseboolean removeRoleId(long roleId)