Class ModifiedByImpl

java.lang.Object
com.commercetools.history.models.change_history.ModifiedByImpl
All Implemented Interfaces:
ModifiedBy, io.vrap.rmf.base.client.ModelBase

public class ModifiedByImpl extends Object implements ModifiedBy, io.vrap.rmf.base.client.ModelBase

Information about the user or API Client who performed the change. This is a variant of LastModifiedBy.

  • 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
     
    Present only if the change was made using a token from an anonymous session.
    ID of the API Client that made the change.
    Reference to the Customer who made the change.
    ID of the Merchant Center user who made the change.
    true if the change was made using the Merchant Center or ImpEx.
    Indicates who performed the change.
    int
     
    void
    setAnonymousId(String anonymousId)
    Present only if the change was made using a token from an anonymous session.
    void
    setClientId(String clientId)
    ID of the API Client that made the change.
    void
    Reference to the Customer who made the change.
    void
    ID of the Merchant Center user who made the change.
    void
    setIsPlatformClient(Boolean isPlatformClient)
    true if the change was made using the Merchant Center or ImpEx.
    void
    Indicates who performed the change.

    Methods inherited from class java.lang.Object

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

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

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.history.models.change_history.ModifiedBy

    withModifiedBy
  • Constructor Details

  • Method Details

    • getId

      public String getId()

      ID of the Merchant Center user who made the change.

      Present only if the change was made in the Merchant Center.

      Specified by:
      getId in interface ModifiedBy
      Returns:
      id
    • getType

      public String getType()

      Indicates who performed the change.

      • If the change was made by a user, the value is "user".
      • If the change was made by an API Client with or without an external user ID, the value is "external-user".
      Specified by:
      getType in interface ModifiedBy
      Returns:
      type
    • getCustomer

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

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

      Present only if the change was made using a token from an anonymous session.

      Specified by:
      getAnonymousId in interface ModifiedBy
      Returns:
      anonymousId
    • getClientId

      public String getClientId()

      ID of the API Client that made the change.

      Present only if the change was made using an API Client.

      Specified by:
      getClientId in interface ModifiedBy
      Returns:
      clientId
    • getIsPlatformClient

      true if the change was made using the Merchant Center or ImpEx.

      Specified by:
      getIsPlatformClient in interface ModifiedBy
      Returns:
      isPlatformClient
    • setId

      public void setId(String id)
      Description copied from interface: ModifiedBy

      ID of the Merchant Center user who made the change.

      Present only if the change was made in the Merchant Center.

      Specified by:
      setId in interface ModifiedBy
      Parameters:
      id - value to be set
    • setType

      public void setType(String type)
      Description copied from interface: ModifiedBy

      Indicates who performed the change.

      • If the change was made by a user, the value is "user".
      • If the change was made by an API Client with or without an external user ID, the value is "external-user".
      Specified by:
      setType in interface ModifiedBy
      Parameters:
      type - value to be set
    • setCustomer

      public void setCustomer(Reference customer)
      Description copied from interface: ModifiedBy

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

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

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

      Present only if the change was made using a token from an anonymous session.

      Specified by:
      setAnonymousId in interface ModifiedBy
      Parameters:
      anonymousId - value to be set
    • setClientId

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

      ID of the API Client that made the change.

      Present only if the change was made using an API Client.

      Specified by:
      setClientId in interface ModifiedBy
      Parameters:
      clientId - value to be set
    • setIsPlatformClient

      public void setIsPlatformClient(Boolean isPlatformClient)
      Description copied from interface: ModifiedBy

      true if the change was made using the Merchant Center or ImpEx.

      Specified by:
      setIsPlatformClient in interface ModifiedBy
      Parameters:
      isPlatformClient - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object