Class 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 Detail

      • HibernateMembership

        public HibernateMembership()
        Private constructor for Hibernate
    • 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)