Class HibernateMembership

  • All Implemented Interfaces:

    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • HibernateMembership

        public HibernateMembership()
        Private constructor for Hibernate
    • Method Detail

      • groupUserMembership

        public static HibernateMembership groupUserMembership​( parent,
                                                              com.atlassian.crowd.model.user.InternalUser member)
      • groupGroupMembership

        public static HibernateMembership groupGroupMembership​( parent,
      • getParentGroup

        public getParentGroup()
      • setParentGroup

        public void setParentGroup​( parentGroup)
      • getUserMember

        public com.atlassian.crowd.model.user.InternalUser getUserMember()
      • setUserMember

        public void setUserMember​(com.atlassian.crowd.model.user.InternalUser userMember)
      • getGroupMember

        public getGroupMember()
      • setGroupMember

        public void setGroupMember​( groupMember)
      • getId

        public Long getId()
      • setId

        public void setId​(Long id)