public class RoleCollectionImpl
extends Object
implements com.liferay.portal.kernel.security.permission.contributor.RoleCollection
Constructor and Description |
---|
RoleCollectionImpl(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.security.permission.UserBag userBag,
long[] roleIds,
long groupId,
com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRoleId(long roleId) |
long |
getCompanyId() |
long |
getGroupId() |
long[] |
getInitialRoleIds() |
long[] |
getRoleIds() |
com.liferay.portal.kernel.model.User |
getUser() |
com.liferay.portal.kernel.security.permission.UserBag |
getUserBag() |
boolean |
hasRoleId(long roleId) |
boolean |
isSignedIn() |
boolean |
removeRoleId(long roleId) |
public RoleCollectionImpl(com.liferay.portal.kernel.model.User user, com.liferay.portal.kernel.security.permission.UserBag userBag, long[] roleIds, long groupId, com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker)
public boolean addRoleId(long roleId)
addRoleId
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public long getGroupId()
getGroupId
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public long[] getInitialRoleIds()
getInitialRoleIds
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public long[] getRoleIds()
public com.liferay.portal.kernel.model.User getUser()
getUser
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public com.liferay.portal.kernel.security.permission.UserBag getUserBag()
getUserBag
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public boolean hasRoleId(long roleId)
hasRoleId
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public boolean isSignedIn()
isSignedIn
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection
public boolean removeRoleId(long roleId)
removeRoleId
in interface com.liferay.portal.kernel.security.permission.contributor.RoleCollection