Class DefaultSortQueryDataRegistry
- java.lang.Object
-
- de.hybris.platform.cms2.services.impl.DefaultSortQueryDataRegistry
-
- All Implemented Interfaces:
SortQueryDataRegistry,org.springframework.beans.factory.InitializingBean
public class DefaultSortQueryDataRegistry extends java.lang.Object implements SortQueryDataRegistry, org.springframework.beans.factory.InitializingBean
Default implementation of theSortQueryDataRegistry. This implementation uses autowire-by-type to inject all beans implementingSortQueryData.
-
-
Constructor Summary
Constructors Constructor Description DefaultSortQueryDataRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected java.util.Set<SortQueryData>getAllSortQueries()java.util.Collection<SortQueryData>getAllSortQueryData()Get all elements in the registry.java.util.Optional<SortQueryData>getDefaultSortQueryData(java.lang.Class<? extends Dao> typeClass)Get a defaultSortQueryDatafor a given type class.java.util.Optional<SortQueryData>getSortQueryData(java.lang.Class<? extends Dao> typeClass, java.lang.String sortCode)Get a specificSortQueryDataby type class.voidsetAllSortQueries(java.util.Set<SortQueryData> allSortQueries)
-
-
-
Method Detail
-
getSortQueryData
public java.util.Optional<SortQueryData> getSortQueryData(java.lang.Class<? extends Dao> typeClass, java.lang.String sortCode)
Description copied from interface:SortQueryDataRegistryGet a specificSortQueryDataby type class.- Specified by:
getSortQueryDatain interfaceSortQueryDataRegistry
-
getDefaultSortQueryData
public java.util.Optional<SortQueryData> getDefaultSortQueryData(java.lang.Class<? extends Dao> typeClass)
Description copied from interface:SortQueryDataRegistryGet a defaultSortQueryDatafor a given type class.- Specified by:
getDefaultSortQueryDatain interfaceSortQueryDataRegistry
-
getAllSortQueryData
public java.util.Collection<SortQueryData> getAllSortQueryData()
Description copied from interface:SortQueryDataRegistryGet all elements in the registry.- Specified by:
getAllSortQueryDatain interfaceSortQueryDataRegistry
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
getAllSortQueries
protected java.util.Set<SortQueryData> getAllSortQueries()
-
setAllSortQueries
public void setAllSortQueries(java.util.Set<SortQueryData> allSortQueries)
-
-