Liferay 7.0-ce-b4

com.liferay.portal.security.permission
Class UserBagImpl

java.lang.Object
  extended by com.liferay.portal.security.permission.UserBagImpl
All Implemented Interfaces:
UserBag, Serializable

public class UserBagImpl
extends Object
implements UserBag

See Also:
Serialized Form

Constructor Summary
UserBagImpl(long userId, Collection<Group> userGroups, Collection<Organization> userOrgs, Collection<Group> userOrgGroups, Collection<Role> userRoles)
           
 
Method Summary
 Set<Group> getGroups()
           
 long[] getRoleIds()
           
 List<Role> getRoles()
           
 long[] getUserGroupIds()
           
 List<Group> getUserGroups()
           
 long getUserId()
           
 long[] getUserOrgGroupIds()
           
 List<Group> getUserOrgGroups()
           
 long[] getUserOrgIds()
           
 List<Organization> getUserOrgs()
           
 boolean hasRole(Role role)
           
 boolean hasUserGroup(Group group)
           
 boolean hasUserOrg(Organization organization)
           
 boolean hasUserOrgGroup(Group group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserBagImpl

public UserBagImpl(long userId,
                   Collection<Group> userGroups,
                   Collection<Organization> userOrgs,
                   Collection<Group> userOrgGroups,
                   Collection<Role> userRoles)
Method Detail

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

Liferay 7.0-ce-b4