|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeService
Provide attribute related business service.
Method Summary | |
---|---|
Attribute |
add(Attribute attribute)
Adds the given attribute. |
Attribute |
findByKey(java.lang.String key)
Find the attribute with the given key. |
Attribute |
get(long attributeUid)
Get the attribute with the given UID. |
java.util.List |
getAttributeInUseUidList()
Return a list of uids for all attributes in use. |
java.util.List |
getAttributesExcludeCustomerProfile()
Returns a list of attributes exclude customer profile attribute. |
java.util.Map |
getAttributeTypeMap()
Return the map for attribute type value-description. |
java.util.Map |
getAttributeUsageMap()
Return the map for attribute usage value-description. |
java.util.List |
getCategoryAttributes()
Return a list of attributes used for categories. |
java.util.List |
getCustomerProfileAttributeInUseUidList()
Return a list of uids for all customer profile attributes in use. |
java.util.List |
getCustomerProfileAttributes()
Returns a list of all system attributes. |
java.util.Map |
getCustomerProfileAttributesMap()
Returns a map of all system attributes. |
java.util.List |
getDistinctAttributeValueList(Attribute attribute,
java.lang.String languageCode)
For a given attribute, the set of distinct values currently existing for that attribute is returned. |
java.util.List |
getProductAttributes()
Return a list of attributes used for products. |
java.util.List |
getSkuAttributes()
Return a list of attributes used for skus. |
boolean |
keyExists(Attribute attribute)
Check whether the given attribute's key exists or not. |
boolean |
keyExists(java.lang.String key)
Checks whether the given attribute key exists or not. |
java.util.List |
list()
Lists all attribute stored in the database. |
Attribute |
load(long attributeUid)
Load the attribute with the given UID. |
void |
remove(Attribute attribute)
Delete the attribute. |
void |
setDistinctAttributeValueCriterion(DistinctAttributeValueCriterion distinctAttributeValueCriterion)
Sets the generator for criteria used to query the persistence layer for distinct lists of attribute values. |
void |
update(Attribute attribute)
Updates the given attribute. |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
Attribute add(Attribute attribute) throws DuplicateKeyException
attribute
- the attribute to add
DuplicateKeyException
- - if the speicifed attribute key is already in use.Attribute findByKey(java.lang.String key) throws EpServiceException
key
- the attribute key.
EpServiceException
- - in case of any errorsAttribute get(long attributeUid) throws EpServiceException
attributeUid
- the attribute UID
EpServiceException
- - in case of any errorsjava.util.List getAttributeInUseUidList()
java.util.List getAttributesExcludeCustomerProfile()
java.util.Map getAttributeTypeMap()
java.util.Map getAttributeUsageMap()
java.util.List getCategoryAttributes()
java.util.List getCustomerProfileAttributeInUseUidList()
java.util.List getCustomerProfileAttributes()
java.util.Map getCustomerProfileAttributesMap()
java.util.List getDistinctAttributeValueList(Attribute attribute, java.lang.String languageCode)
attribute
- the attribute for which the distinct attribute values are to be returnedlanguageCode
- the lower case code of the language for which attributes are to be returned.
AttributeValue
sjava.util.List getProductAttributes()
java.util.List getSkuAttributes()
boolean keyExists(Attribute attribute) throws EpServiceException
attribute
- the attribute to check
EpServiceException
- - in case of any errorsboolean keyExists(java.lang.String key) throws EpServiceException
key
- the attribute key.
EpServiceException
- -
in case of any errorsjava.util.List list() throws EpServiceException
EpServiceException
- -
in case of any errorsAttribute load(long attributeUid) throws EpServiceException
attributeUid
- the attribute UID
EpServiceException
- - in case of any errorsvoid remove(Attribute attribute) throws EpServiceException
attribute
- the attribute to remove
EpServiceException
- - in case of any errorsvoid setDistinctAttributeValueCriterion(DistinctAttributeValueCriterion distinctAttributeValueCriterion)
distinctAttributeValueCriterion
- the DistinctAttributeValueCriterion
void update(Attribute attribute) throws DuplicateKeyException
attribute
- the attribute to update
DuplicateKeyException
- - if the speicifed attribute key is already in use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |