|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractTransientImpl com.elasticpath.domain.catalogview.impl.ProductNameSorterImpl
public class ProductNameSorterImpl
The default implementation of ProductNameSorter
.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Fields inherited from interface com.elasticpath.domain.catalogview.Sorter |
---|
ASC, DSC |
Constructor Summary | |
---|---|
ProductNameSorterImpl()
Default Constructer. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the id of the sorter. |
void |
initialize(java.lang.String sorterId)
Sets the sorter id and initialize the sorter. |
void |
setDisplayNameComparator(DisplayNameComparator displayNameComparator)
Sets the display name comparator. |
void |
setUtility(Utility utility)
Sets the utility. |
java.util.List |
sort(java.util.List products)
Sorts the given list of products and return the sorted list. |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ProductNameSorterImpl()
Method Detail |
---|
public java.lang.String getId()
getId
in interface Sorter
public void initialize(java.lang.String sorterId) throws EpCatalogViewRequestBindException
initialize
in interface Sorter
sorterId
- the id to set
EpCatalogViewRequestBindException
- when the given sorter id is invalidpublic void setDisplayNameComparator(DisplayNameComparator displayNameComparator)
displayNameComparator
- the display name comparatorpublic void setUtility(Utility utility)
utility
- the utilitypublic java.util.List sort(java.util.List products)
sort
in interface Sorter
products
- the list of products to sort
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |