Class VitamContext


  • public final class VitamContext
    extends java.lang.Object
    Defines commons client parameters for vitam external rest API
    • Constructor Detail

      • VitamContext

        public VitamContext​(java.lang.Integer tenantId)
        Parameters:
        tenantId - the tenant id
    • Method Detail

      • getTenantId

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

        public VitamContext setTenantId​(java.lang.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 java.lang.String getAccessContract()
        Gets the access contract
        Returns:
        the access contract
      • setAccessContract

        public VitamContext setAccessContract​(java.lang.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 java.lang.String getApplicationSessionId()
        Gets the application session id
        Returns:
        the application session id
      • setApplicationSessionId

        public VitamContext setApplicationSessionId​(java.lang.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 java.lang.String getPersonalCertificate()
        Gets the personnal certificate.
        Returns:
      • setPersonalCertificate

        public VitamContext setPersonalCertificate​(java.lang.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<java.lang.String,​java.lang.Object> getHeaders()
        Returns a vitam context parameters as headers
        Returns:
        header-name/value map of vitam context parameters
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object