com.liferay.portal.security.permission
Class UserBagImpl
java.lang.Object
com.liferay.portal.security.permission.UserBagImpl
- All Implemented Interfaces:
- UserBag, Serializable
public class UserBagImpl
- extends Object
- implements UserBag
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserBagImpl
public UserBagImpl(long userId,
Collection<Group> userGroups,
Collection<Organization> userOrgs,
Collection<Group> userOrgGroups,
Collection<Role> userRoles)
getGroups
public Set<Group> getGroups()
throws PortalException
- Specified by:
getGroups in interface UserBag
- Throws:
PortalException
getRoleIds
public long[] getRoleIds()
- Specified by:
getRoleIds in interface UserBag
getRoles
public List<Role> getRoles()
throws PortalException
- Specified by:
getRoles in interface UserBag
- Throws:
PortalException
getUserGroupIds
public long[] getUserGroupIds()
- Specified by:
getUserGroupIds in interface UserBag
getUserGroups
public List<Group> getUserGroups()
throws PortalException
- Specified by:
getUserGroups in interface UserBag
- Throws:
PortalException
getUserId
public long getUserId()
- Specified by:
getUserId in interface UserBag
getUserOrgGroupIds
public long[] getUserOrgGroupIds()
- Specified by:
getUserOrgGroupIds in interface UserBag
getUserOrgGroups
public List<Group> getUserOrgGroups()
throws PortalException
- Specified by:
getUserOrgGroups in interface UserBag
- Throws:
PortalException
getUserOrgIds
public long[] getUserOrgIds()
- Specified by:
getUserOrgIds in interface UserBag
getUserOrgs
public List<Organization> getUserOrgs()
throws PortalException
- Specified by:
getUserOrgs in interface UserBag
- Throws:
PortalException
hasRole
public boolean hasRole(Role role)
- Specified by:
hasRole in interface UserBag
hasUserGroup
public boolean hasUserGroup(Group group)
- Specified by:
hasUserGroup in interface UserBag
hasUserOrg
public boolean hasUserOrg(Organization organization)
- Specified by:
hasUserOrg in interface UserBag
hasUserOrgGroup
public boolean hasUserOrgGroup(Group group)
- Specified by:
hasUserOrgGroup in interface UserBag