Class MemberDeleteRequest

java.lang.Object
com.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.member.MemberDeleteRequest
All Implemented Interfaces:
DBData, JcmsConstants, ImportConstants, MashupConstants, Storable, JaliosConstants, LangPropertyArgument, Serializable, Cloneable, Comparable<BasicStorable>

public class MemberDeleteRequest extends Data implements DBData
See Also:
  • Field Details

    • URID_FIELD

      public static final String URID_FIELD
      See Also:
    • MEMBER_TO_DELETE_ID_FIELD

      public static final String MEMBER_TO_DELETE_ID_FIELD
      See Also:
    • urid

      protected transient String urid
    • memberToDelete

      protected transient Member memberToDelete
    • memberToDeleteId

      protected transient String memberToDeleteId
    • contextMap

      protected transient Map<String,?> contextMap
  • Constructor Details

    • MemberDeleteRequest

      public MemberDeleteRequest()
  • Method Details

    • getUrid

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

      public void setUrid(String urid)
      URID of the replica on which member delete is requested
      Parameters:
      urid - a replica URID
      See Also:
    • 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 String getMemberToDeleteId()
      Retrieve the id of the Member requested for deletion
      Returns:
      a Member id
    • setMemberToDeleteId

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

      public void setContextMap(Map<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 Map<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 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(String json)
      Set the context map of this delete request, from the specified JSON representation.
      Parameters:
      json - a JSON representation of the context map