All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mozu.api.ApiContext Maven / Gradle / Ivy

Go to download

Mozu Java is a SDK that enables you to create robust Java applications that integrate with the Mozu platform

There is a newer version: 2.6.1-RC1
Show newest version
package com.mozu.api;

import java.util.Map;

import com.mozu.api.contracts.tenant.Tenant;
import com.mozu.api.security.AuthTicket;

public interface ApiContext {
    /**
     * Get the current tenantID 
     * @return
     */
    Integer getTenantId ();
    
    /**
     * get the current Site ID
     * @return current site ID
     */
    Integer getSiteId();
    
    /**
     * Get the tenant URL
     * @return tenant URL
     */
    String getTenantUrl ();
    
    /**
     * get the URL for the Site
     * @return Site URL
     */
    String getSiteUrl ();
    
    /**
     * 
     * @return
     */
    String getCorrelationId ();
    
    /**
     * 
     * @return the current HMAC SHA 256 
     */
    String getHMACSha256 ();
    
    /**
     * The application authorization ticket
     * @return application authorization ticket
     */
    String getAppAuthTicket ();
    
    /**
     * 
     * @return
     */
    Integer getMasterCatalogId();
    
    /**
     * 
     * @return
     */
    Integer getCatalogId();
    
   
    /**
     * Get the current tenant
     * @return null if there is not a current tenant, otherwise return a tenant.
     */
    Tenant getTenant ();

    /**
     * Date header 
     * @return
     */
    String getHeaderDate();
    
    /**
     * 
     * @return
     */
    String getHmacSha256();

    /**
     * 
     * @param hmacSha256
     */
    void setHmacSha256(String hmacSha256);

    /**
     * 
     * @param tenantId
     */
    void setTenantId(Integer tenantId);

    /**
     * 
     * @param siteId
     */
    void setSiteId(Integer siteId);

    /**
     * 
     * @param tenantUrl
     */
    void setTenantUrl(String tenantUrl);

    /**
     * 
     * @param siteUrl
     */
    void setSiteUrl(String siteUrl);

    /**
     * 
     * @param correlationId
     */
    void setCorrelationId(String correlationId);

    /**
     * 
     * @param appAuthTicket
     */
    void setAppAuthTicket(String appAuthTicket);

    /**
     * 
     * @param masterCatalogId
     */
    void setMasterCatalogId(Integer masterCatalogId);

    /**
     * 
     * @param catalogId
     */
    void setCatalogId(Integer catalogId);
    
    /**
     * 
     * @param tenant
     */
    void setTenant(Tenant tenant);

    /**
     * 
     * @param headerDate
     */
    void setHeaderDate(String headerDate);
    
    /** 
     * Get the user authorization ticket
     * @return the user authorization ticket
     */
    AuthTicket getUserAuthTicket ();
 
    /**
     * Set the user auth ticket to be used for user authorization.
     * @param authTicket
     */
    void setUserAuthTicket (AuthTicket authTicket);
    
    /**
     *  Set the locale to be used by the call
     * @param locale ISO Locale string.
     */
    void setLocale (String locale);
    
    /** 
     * Get the locale to use
     * @return a string with the ISO Locale string
     */
    String getLocale ();
    
    /**
     * 
     * @param currency
     */
    void setCurrency (String currency);
    
    /**
     * get the ISO currency to use in Mozu
     */
    String getCurrency ();
    
    /**
     * Get the custom HTTP Header map. 
     */
    Map getCustomHeaders ();
    
    /**
     * Add a map of http headers 
     * @param headerMap
     */
    void setCustomHeaders(Map headerMap);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy