com.elasticpath.domain.catalog
Interface ProductSkuLoadTuner

All Superinterfaces:
EpDomain, java.io.Serializable, Transient
All Known Implementing Classes:
ProductSkuLoadTunerImpl

public interface ProductSkuLoadTuner
extends Transient

Represents a tuner to control productsku load. A product load tuner can be used in some services to fine control what data to be loaded for a productsku. The main purpose is to achieve maximum performance for some specific performance-critical pages.


Method Summary
 boolean contains(ProductSkuLoadTuner productSkuLoadTuner)
          Returns true if this load tuner is super set of the given load tuner, otherwise, false.
 boolean isLoadingAttributeValue()
          Return true if attribute value is requested.
 boolean isLoadingDigitalAsset()
          Return true if digital asset is requested.
 boolean isLoadingInventory()
          Return true if inventory is requested.
 boolean isLoadingOptionValue()
          Return true if option value is requested.
 boolean isLoadingPrice()
          Return true if price is requested.
 boolean isLoadingProduct()
          Return true if product is requested.
 boolean isLoadingSpec()
          Return true if spec is requested.
 ProductSkuLoadTuner merge(ProductSkuLoadTuner productSkuLoadTuner)
          Merges the given load tuner with this one and returns the merged load tuner.
 void setLoadingAttributeValue(boolean flag)
          Sets the flag of loading attribute values.
 void setLoadingDigitalAsset(boolean flag)
          Sets the flag of loading digital asset.
 void setLoadingInventory(boolean flag)
          Sets the flag of loading inventory.
 void setLoadingOptionValue(boolean flag)
          Sets the flag of loading option values.
 void setLoadingPrice(boolean flag)
          Sets the flag of loading price.
 void setLoadingProduct(boolean flag)
          Sets the flag of loading product.
 void setLoadingSpec(boolean flag)
          Sets the flag of loading productsku spec.
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

contains

boolean contains(ProductSkuLoadTuner productSkuLoadTuner)
Returns true if this load tuner is super set of the given load tuner, otherwise, false.

Parameters:
productSkuLoadTuner - the sku load tuner
Returns:
true if this load tuner is super set of the given load tuner, otherwise, false

isLoadingAttributeValue

boolean isLoadingAttributeValue()
Return true if attribute value is requested.

Returns:
true if attribute value is requested.

isLoadingDigitalAsset

boolean isLoadingDigitalAsset()
Return true if digital asset is requested.

Returns:
true if digital asset is requested.

isLoadingInventory

boolean isLoadingInventory()
Return true if inventory is requested.

Returns:
true if inventory is requested.

isLoadingOptionValue

boolean isLoadingOptionValue()
Return true if option value is requested.

Returns:
true if option value is requested.

isLoadingPrice

boolean isLoadingPrice()
Return true if price is requested.

Returns:
true if price is requested.

isLoadingProduct

boolean isLoadingProduct()
Return true if product is requested.

Returns:
true if product is requested.

isLoadingSpec

boolean isLoadingSpec()
Return true if spec is requested.

Returns:
true if spec is requested.

merge

ProductSkuLoadTuner merge(ProductSkuLoadTuner productSkuLoadTuner)
Merges the given load tuner with this one and returns the merged load tuner.

Parameters:
productSkuLoadTuner - the product sku load tuner
Returns:
the merged load tuner

setLoadingAttributeValue

void setLoadingAttributeValue(boolean flag)
Sets the flag of loading attribute values.

Parameters:
flag - sets it to true to request loading attribute values.

setLoadingDigitalAsset

void setLoadingDigitalAsset(boolean flag)
Sets the flag of loading digital asset.

Parameters:
flag - sets it to true to request loading digital asset.

setLoadingInventory

void setLoadingInventory(boolean flag)
Sets the flag of loading inventory.

Parameters:
flag - sets it to true to request loading inventory.

setLoadingOptionValue

void setLoadingOptionValue(boolean flag)
Sets the flag of loading option values.

Parameters:
flag - sets it to true to request loading option values.

setLoadingPrice

void setLoadingPrice(boolean flag)
Sets the flag of loading price.

Parameters:
flag - sets it to true to request loading price.

setLoadingProduct

void setLoadingProduct(boolean flag)
Sets the flag of loading product.

Parameters:
flag - sets it to true to request loading product.

setLoadingSpec

void setLoadingSpec(boolean flag)
Sets the flag of loading productsku spec.

Parameters:
flag - sets it to true to request loading productsku spec.