Class HibernateMembership
- java.lang.Object
-
- com.atlassian.confluence.impl.user.crowd.hibernate.HibernateMembership
-
- All Implemented Interfaces:
Serializable
public class HibernateMembership extends Object implements Serializable
Hibernate representation of a membership that uses actual foreign keys and joins instead of trusting that database integrity will be maintained by a team of unicorns.This object is not for public consumption and should never escape the MembershipDao. No integrity checking is performed within the object as that would potentially confuse Hibernate, so the safest way to deal with this class is to pretend it is immutable and only ever construct it through the two factory methods provided.
- Since:
- 7.20.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HibernateMembership()
Private constructor for Hibernate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.crowd.model.group.InternalGroup
getGroupMember()
Long
getId()
com.atlassian.crowd.model.group.InternalGroup
getParentGroup()
com.atlassian.crowd.model.user.InternalUser
getUserMember()
static HibernateMembership
groupGroupMembership(com.atlassian.crowd.model.group.InternalGroup parent, com.atlassian.crowd.model.group.InternalGroup member)
static HibernateMembership
groupUserMembership(com.atlassian.crowd.model.group.InternalGroup parent, com.atlassian.crowd.model.user.InternalUser member)
void
setGroupMember(com.atlassian.crowd.model.group.InternalGroup groupMember)
void
setId(Long id)
void
setParentGroup(com.atlassian.crowd.model.group.InternalGroup parentGroup)
void
setUserMember(com.atlassian.crowd.model.user.InternalUser userMember)
String
toString()
-
-
-
Method Detail
-
groupUserMembership
public static HibernateMembership groupUserMembership(com.atlassian.crowd.model.group.InternalGroup parent, com.atlassian.crowd.model.user.InternalUser member)
-
groupGroupMembership
public static HibernateMembership groupGroupMembership(com.atlassian.crowd.model.group.InternalGroup parent, com.atlassian.crowd.model.group.InternalGroup member)
-
getParentGroup
public com.atlassian.crowd.model.group.InternalGroup getParentGroup()
-
setParentGroup
public void setParentGroup(com.atlassian.crowd.model.group.InternalGroup parentGroup)
-
getUserMember
public com.atlassian.crowd.model.user.InternalUser getUserMember()
-
setUserMember
public void setUserMember(com.atlassian.crowd.model.user.InternalUser userMember)
-
getGroupMember
public com.atlassian.crowd.model.group.InternalGroup getGroupMember()
-
setGroupMember
public void setGroupMember(com.atlassian.crowd.model.group.InternalGroup groupMember)
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
-