Liferay 7.0-ce-a2

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, Set<Group> userGroups, Set<Organization> userOrgs, Set<Group> userOrgGroups, Set<Group> userUserGroupGroups, Set<Role> userRoles)
           
 
Method Summary
 Set<Group> getGroups()
           
 Set<Role> getRoles()
           
 Set<Group> getUserGroups()
           
 long getUserId()
           
 Set<Group> getUserOrgGroups()
           
 Set<Organization> getUserOrgs()
           
 Set<Group> getUserUserGroupGroups()
           
 boolean hasRole(Role role)
           
 
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,
                   Set<Group> userGroups,
                   Set<Organization> userOrgs,
                   Set<Group> userOrgGroups,
                   Set<Group> userUserGroupGroups,
                   Set<Role> userRoles)
Method Detail

getGroups

public Set<Group> getGroups()
Specified by:
getGroups in interface UserBag

getRoles

public Set<Role> getRoles()
Specified by:
getRoles in interface UserBag

getUserGroups

public Set<Group> getUserGroups()
Specified by:
getUserGroups in interface UserBag

getUserId

public long getUserId()
Specified by:
getUserId in interface UserBag

getUserOrgGroups

public Set<Group> getUserOrgGroups()
Specified by:
getUserOrgGroups in interface UserBag

getUserOrgs

public Set<Organization> getUserOrgs()
Specified by:
getUserOrgs in interface UserBag

getUserUserGroupGroups

public Set<Group> getUserUserGroupGroups()
Specified by:
getUserUserGroupGroups in interface UserBag

hasRole

public boolean hasRole(Role role)
Specified by:
hasRole in interface UserBag

Liferay 7.0-ce-a2