Class VitamContext

java.lang.Object
fr.gouv.vitam.common.client.VitamContext

public final class VitamContext extends Object
Defines commons client parameters for vitam external rest API
  • Constructor Details

    • VitamContext

      public VitamContext(Integer tenantId)
      Parameters:
      tenantId - the tenant id
  • Method Details

    • getTenantId

      public Integer getTenantId()
      Gets the tenant id
      Returns:
      the tenant id
    • setTenantId

      public VitamContext setTenantId(Integer tenantId)
      Sets the tenant id
      Parameters:
      tenantId - the tenant id to set
      Returns:
      "this" instance. May be used for fluent instance creation.
    • getAccessContract

      public String getAccessContract()
      Gets the access contract
      Returns:
      the access contract
    • setAccessContract

      public VitamContext setAccessContract(String accessContract)
      Sets the access contract
      Parameters:
      accessContract - the access contract to set
      Returns:
      "this" instance. May be used for fluent instance creation.
    • getApplicationSessionId

      public String getApplicationSessionId()
      Gets the application session id
      Returns:
      the application session id
    • setApplicationSessionId

      public VitamContext setApplicationSessionId(String applicationSessionId)
      Sets the application session id
      Parameters:
      applicationSessionId - the application session id to set
      Returns:
      "this" instance. May be used for fluent instance creation.
    • getPersonalCertificate

      public String getPersonalCertificate()
      Gets the personnal certificate.
      Returns:
    • setPersonalCertificate

      public VitamContext setPersonalCertificate(String personalCertificate)
      Sets personalCertificate
      Parameters:
      personalCertificate - the personalCertificate to set
      Returns:
      "this" instance. May be used for fluent instance creation.
    • getHeaders

      public javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
      Returns a vitam context parameters as headers
      Returns:
      header-name/value map of vitam context parameters
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object