com.atlassian.user.impl.hibernate
Class DefaultHibernateUser
java.lang.Object
com.atlassian.user.impl.DefaultEntity
com.atlassian.user.impl.DefaultUser
com.atlassian.user.impl.hibernate.DefaultHibernateUser
- All Implemented Interfaces:
- Entity, java.security.Principal, java.io.Serializable, User
- public class DefaultHibernateUser
- extends DefaultUser
A hibernate implementation of a user.
This implementation is intended to provide a collection of groups this user
is a member of. Care should taken when using this collection however as its
lazy loaded you must be sure you are querying it within the same session this
object was loaded.
If unsure, use the GroupManager.getGroups(com.atlassian.user.User)
method.
See: http://jira.atlassian.com/browse/USER-191
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.user.Entity |
getName |
Methods inherited from interface java.security.Principal |
getName |
DefaultHibernateUser
public DefaultHibernateUser()
DefaultHibernateUser
public DefaultHibernateUser(java.lang.String name)
getGroups
public java.util.Set getGroups()
- Provided for Hibernate's use only.
- See Also:
GroupManager.getGroups(com.atlassian.user.User)
setGroups
public void setGroups(java.util.Set groups)
getId
public long getId()
setId
public void setId(long id)
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class DefaultUser
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class DefaultUser
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class DefaultUser
Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.