java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping.BackendMessage

public class BackendMessage extends Object
Represents a message raised in the SAP back end which was transmitted via RFC
  • Field Details

    • LOC

      protected static final Log4JWrapper LOC
      The logging instance
    • beSeverity

      protected String beSeverity
      Severity (I, E, W)
    • beClass

      protected String beClass
      Message class
    • beNumber

      protected String beNumber
      Message number
    • vars

      protected final String[] vars
      Message parameters
    • messageText

      protected String messageText
      Message text
    • refTechKey

      protected TechKey refTechKey
      Message reference key
  • Constructor Details

    • BackendMessage

      public BackendMessage()
    • BackendMessage

      public BackendMessage(com.sap.conn.jco.JCoRecord struct)
      Constructs a message from a JCO structure
      Parameters:
      struct - Structure the message is based on
    • BackendMessage

      public BackendMessage(String msgType, String msgId, String msgNo, String msgV1, String msgV2, String msgV3, String msgV4)
      Constructs a message based on its attributes
      Parameters:
      msgType - Type (I, W, E)
      msgId - ID (application area)
      msgNo - Number
      msgV1 - Parameter1
      msgV2 - Parameter2
      msgV3 - Parameter3
      msgV4 - Parameter4
    • BackendMessage

      public BackendMessage(String msgType, String msgId, String msgNo)
  • Method Details

    • getBeSeverity

      public String getBeSeverity()
      Returns:
      Severity (I, W, E)
    • getBeClass

      public String getBeClass()
      Returns:
      Application area
    • getBeNumber

      public String getBeNumber()
      Returns:
      Message number
    • getRefTechKey

      public TechKey getRefTechKey()
      Returns:
      Object reference
    • getVars

      public String[] getVars()
      Returns:
      Parameters
    • getMessageText

      public String getMessageText()
      Returns:
      Message text
    • isEmpty

      public boolean isEmpty()
      Returns:
      Empty message?
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • isEqual

      protected boolean isEqual(BackendMessage message)
      Parameters:
      message -
      Returns:
    • equalsInfo

      public boolean equalsInfo(Object object)
    • isInfoEqual

      protected boolean isInfoEqual(BackendMessage message)