Class ClientLoggingImpl

java.lang.Object
com.commercetools.api.models.common.ClientLoggingImpl
All Implemented Interfaces:
ClientLogging, io.vrap.rmf.base.client.ModelBase

public class ClientLoggingImpl extends Object implements ClientLogging, io.vrap.rmf.base.client.ModelBase

These objects represent information about which API Client created or modified a resource. For more information, see Client Logging.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Indicates that the resource was modified during an anonymous session with the logged ID.
    Indicates the Customer who created or modified the resource in the context of a Business Unit.
    id of the API Client which created the resource.
    Indicates the Customer who modified the resource using a token from the password flow.
    External user ID provided by X-External-User-ID HTTP Header.
    int
     
    void
    setAnonymousId(String anonymousId)
    Indicates that the resource was modified during an anonymous session with the logged ID.
    void
    Indicates the Customer who created or modified the resource in the context of a Business Unit.
    void
    setClientId(String clientId)
    id of the API Client which created the resource.
    void
    Indicates the Customer who modified the resource using a token from the password flow.
    void
    setExternalUserId(String externalUserId)
    External user ID provided by X-External-User-ID HTTP Header.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.common.ClientLogging

    withClientLogging

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • ClientLoggingImpl

      public ClientLoggingImpl()
      create empty instance
  • Method Details

    • getClientId

      public String getClientId()

      id of the API Client which created the resource.

      Specified by:
      getClientId in interface ClientLogging
      Returns:
      clientId
    • getExternalUserId

      public String getExternalUserId()

      External user ID provided by X-External-User-ID HTTP Header.

      Specified by:
      getExternalUserId in interface ClientLogging
      Returns:
      externalUserId
    • getCustomer

      public CustomerReference getCustomer()

      Indicates the Customer who modified the resource using a token from the password flow.

      Specified by:
      getCustomer in interface ClientLogging
      Returns:
      customer
    • getAnonymousId

      public String getAnonymousId()

      Indicates that the resource was modified during an anonymous session with the logged ID.

      Specified by:
      getAnonymousId in interface ClientLogging
      Returns:
      anonymousId
    • getAssociate

      public CustomerReference getAssociate()

      Indicates the Customer who created or modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

      Specified by:
      getAssociate in interface ClientLogging
      Returns:
      associate
    • setClientId

      public void setClientId(String clientId)
      Description copied from interface: ClientLogging

      id of the API Client which created the resource.

      Specified by:
      setClientId in interface ClientLogging
      Parameters:
      clientId - value to be set
    • setExternalUserId

      public void setExternalUserId(String externalUserId)
      Description copied from interface: ClientLogging

      External user ID provided by X-External-User-ID HTTP Header.

      Specified by:
      setExternalUserId in interface ClientLogging
      Parameters:
      externalUserId - value to be set
    • setCustomer

      public void setCustomer(CustomerReference customer)
      Description copied from interface: ClientLogging

      Indicates the Customer who modified the resource using a token from the password flow.

      Specified by:
      setCustomer in interface ClientLogging
      Parameters:
      customer - value to be set
    • setAnonymousId

      public void setAnonymousId(String anonymousId)
      Description copied from interface: ClientLogging

      Indicates that the resource was modified during an anonymous session with the logged ID.

      Specified by:
      setAnonymousId in interface ClientLogging
      Parameters:
      anonymousId - value to be set
    • setAssociate

      public void setAssociate(CustomerReference associate)
      Description copied from interface: ClientLogging

      Indicates the Customer who created or modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

      Specified by:
      setAssociate in interface ClientLogging
      Parameters:
      associate - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object