Class SubtypesSearchFacade
- java.lang.Object
-
- com.hybris.backoffice.cockpitng.dataaccess.facades.search.SubtypesSearchFacade
-
- All Implemented Interfaces:
com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorSearchFacade<ComposedTypeModel>
public class SubtypesSearchFacade extends java.lang.Object implements com.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorSearchFacade<ComposedTypeModel>
Search provider which returns the subtypes of given class.To make it work the referenceSearchCondition with "code" has to be used, e.g.:
<wz:editor-parameter> <wz:name>referenceSearchCondition_code</wz:name> <wz:value>User</wz:value> </wz:editor-parameter>It returns empty Pageable and warning when code is not passed.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCODE
-
Constructor Summary
Constructors Constructor Description SubtypesSearchFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ComposedTypeModel>filterTypesByNames(java.util.List<ComposedTypeModel> composedTypes, java.lang.String searchText)TypeServicegetTypeService()protected booleanhasCodeAttribute(com.hybris.cockpitng.search.data.SearchQueryCondition condition)com.hybris.cockpitng.search.data.pageable.Pageable<ComposedTypeModel>search(com.hybris.cockpitng.search.data.SearchQueryData searchQueryData)voidsetTypeService(TypeService typeService)
-
-
-
Field Detail
-
CODE
protected static final java.lang.String CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
search
public com.hybris.cockpitng.search.data.pageable.Pageable<ComposedTypeModel> search(com.hybris.cockpitng.search.data.SearchQueryData searchQueryData)
- Specified by:
searchin interfacecom.hybris.cockpitng.editor.commonreferenceeditor.ReferenceEditorSearchFacade<ComposedTypeModel>
-
filterTypesByNames
protected java.util.List<ComposedTypeModel> filterTypesByNames(java.util.List<ComposedTypeModel> composedTypes, java.lang.String searchText)
-
hasCodeAttribute
protected boolean hasCodeAttribute(com.hybris.cockpitng.search.data.SearchQueryCondition condition)
-
getTypeService
public TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-