Class MemberDeleteRequest

    • Field Detail

      • MEMBER_TO_DELETE_ID_FIELD

        public static final java.lang.String MEMBER_TO_DELETE_ID_FIELD
        See Also:
        Constant Field Values
      • urid

        protected transient java.lang.String urid
      • memberToDelete

        protected transient Member memberToDelete
      • memberToDeleteId

        protected transient java.lang.String memberToDeleteId
      • contextMap

        protected transient java.util.Map<java.lang.String,​?> contextMap
    • Constructor Detail

      • MemberDeleteRequest

        public MemberDeleteRequest()
    • Method Detail

      • getUrid

        public java.lang.String getUrid()
        URID of the replica on which member delete took place
        Overrides:
        getUrid in class BasicStorable
        Returns:
        an URID
        See Also:
        Channel.getUrid()
      • setUrid

        public void setUrid​(java.lang.String urid)
        URID of the replica on which member delete is requested
        Parameters:
        urid - a replica URID
        See Also:
        Channel.getUrid()
      • getMemberToDelete

        public Member getMemberToDelete()
        Retrieve the Member that requested for deletion
        Returns:
        a Member, or null if member could not be found when reading this MemberDeleteRequest from db, in such case getMemberToDeleteId() still contains the original id
      • setMemberToDelete

        public void setMemberToDelete​(Member memberToDelete)
        Set the member requested for deletion
        Parameters:
        memberToDelete - a Member, should not be null (otherwise... quite useles!!)
      • getMemberToDeleteId

        public java.lang.String getMemberToDeleteId()
        Retrieve the id of the Member requested for deletion
        Returns:
        a Member id
      • setMemberToDeleteId

        public void setMemberToDeleteId​(java.lang.String memberToDeleteId)
        Set the id of the Member requested for deletion
        Parameters:
        memberToDeleteId - a Member id
      • setContextMap

        public void setContextMap​(java.util.Map<java.lang.String,​?> contextMap)
        Set the Map of the contexts Map that was specified in Member.performDelete when delete was requested.
        Parameters:
        contextMap - the contexts Map that was specified in Member.performDelete when delete was requested.
      • getContextMap

        public java.util.Map<java.lang.String,​?> getContextMap()
        Returns the contexts Map that was specified in Member.performDelete when delete was requested.
        Returns:
        the internal Map used by this delete request
      • getContextMapStr

        public java.lang.String getContextMapStr()
        Returns a JSON representation of the context map of this delete request.
        Returns:
        a JSON representation of the context map
      • setContextMapStr

        public void setContextMapStr​(java.lang.String json)
        Set the context map of this delete request, from the specified JSON representation.
        Parameters:
        json - a JSON representation of the context map