Class MemberListener

    • Constructor Detail

      • MemberListener

        public MemberListener()
    • Method Detail

      • handleCommitUpdate

        public void handleCommitUpdate​(Storable storable,
                                       Storable oldStorable,
                                       boolean firstTime)
        Description copied from interface: StoreListener
        This method gets called when after a storable has been updated.
        Specified by:
        handleCommitUpdate in interface StoreListener
        Overrides:
        handleCommitUpdate in class BasicDBListenerStoreListener
        Parameters:
        storable - the storable, this instance is the object that was created at first and that will be stored in jcms until deletion of the storable with this ID. You should always manipulate this object if you maintain any index.
        oldStorable - the previous version of the storable, it is a clone, do not use in any index, it should only be used to access old values.
        firstTime - true if it is the first time this operation is processed
        See Also:
        StoreListener.handleCommitUpdate(Storable, Storable, boolean)
      • onPostDelete

        public void onPostDelete​(DBData data,
                                 org.hibernate.event.PostDeleteEvent event,
                                 boolean firstTime)
        Description copied from interface: DBListener
        This method is called after a DBData has been deleted.
        Specified by:
        onPostDelete in interface DBListener
        Overrides:
        onPostDelete in class BasicDBListener
        Parameters:
        data - the deleted DBData. WARNING! In a JSync Cluster, when firstTime is false, this data will be null. In this case, to get information about this deleted data, you must use the event and in particular event.getId(), which returns the JPlatform ID of the data, and event.getDeletedState() which returns the attributes of the data.
        event - the event
        firstTime - true on the JSync replica on which the operation took place and false on the other replicas.
        See Also:
        DBListener.onPostDelete(DBData, PostDeleteEvent, boolean)
      • removeMemberFromPubRoleMap

        protected void removeMemberFromPubRoleMap​(Member mbr)
        Remove a member from all the roleMap of all the Publications
        Parameters:
        mbr - the member to be removed
        Since:
        jcms-5.5.0
      • updateGroups

        protected void updateGroups​(Member mbr,
                                    boolean add)
        Update the MemberSet of a group Update WorkspaceSet of a Member
        Parameters:
        mbr - the member to update
        add - true -> add, false -> remove
      • updateDelegates

        protected void updateDelegates​(Member mbr,
                                       boolean add)
        Update index of of all Member
        Parameters:
        mbr - the member from which to compute other members' update
        add - true -> add, false -> remove
      • clearMemberIsWorker

        protected void clearMemberIsWorker​(Member mbr)
        Clears Member isWorker status cache.
        Parameters:
        mbr - the member
        Since:
        jcms-9.0.5 - JCMS-5683