Class SavedQueryServiceImpl
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.cockpit.services.query.impl.SavedQueryServiceImpl
- All Implemented Interfaces:
SavedQueryService
- Direct Known Subclasses:
ProductSavedQueryServiceImpl
Default implementation of
SavedQueryService-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final intprotected static final intprotected static final intprotected static final Stringprotected static final Stringprotected static final intprotected static final Stringprotected SearchServiceFields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSpecialParameters(CockpitSavedQuery cockpitSavedQuery, Query query) Deprecated.protected voidaddSpecialParameters(CockpitSavedQueryModel cockpitSavedQueryModel, Query query) Override this to add special parameters from context to search querycreateSavedQuery(String label, Query query, UserModel user) Creates the saved query.protected StringvoidDelete query.getDecodedValues(Object paramValue) protected StringgetPKsString(Collection<? extends ItemModel> items) getQuery(CockpitSavedQueryModel savedQuery) Gets the query.getSavedQueries(SearchProvider provider, UserModel user) Gets the saved queries for given parameters.protected SavedQueryDaovoidPublish saved query.voidrenameQuery(CockpitSavedQueryModel query, String label) Rename query.voidsetEnumerationService(EnumerationService enumerationService) voidsetSavedQueryDao(SavedQueryDao savedQueryDao) voidsetSearchService(SearchService searchService) voidStore updates.unwrapCollectionValues(String value) protected FeatureValueunwrapFeatureValue(String wrappedValue) protected NumberunwrapNumber(String wrappedValue) protected ObjectunwrapSingleValue(String value) protected ConditionValueprotected StringwrapCollectionValues(List<String> values) protected StringwrapFeatureValue(FeatureValue featureValue) protected StringwrapNumber(Number value) protected StringwrapSingleValue(Object value) Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
Field Details
-
PK_MARK
- See Also:
-
DATE_MARK
- See Also:
-
ENUM_MARK
- See Also:
-
NUMBER_MARK
- See Also:
-
FEATURE_VALUE_MARK
- See Also:
-
ENUM_DELIM
- See Also:
-
COLLECTION_DELIM
- See Also:
-
FEATURE_VALUE_DELIM
- See Also:
-
NUMBER_VALUE_DELIM
- See Also:
-
NUMBER_CLASS_NAME_POS
protected static final int NUMBER_CLASS_NAME_POS- See Also:
-
NUMBER_VALUE_POS
protected static final int NUMBER_VALUE_POS- See Also:
-
FEATURE_VALUE_STRING_VALUE_POS
protected static final int FEATURE_VALUE_STRING_VALUE_POS- See Also:
-
FEATURE_VALUE_UNIT_POS
protected static final int FEATURE_VALUE_UNIT_POS- See Also:
-
searchService
-
-
Constructor Details
-
SavedQueryServiceImpl
public SavedQueryServiceImpl()
-
-
Method Details
-
getPKsString
-
addSpecialParameters
Deprecated.since 6.3, useaddSpecialParameters(CockpitSavedQueryModel, Query)insteadOverride this to add special parameters from context to search query -
addSpecialParameters
Override this to add special parameters from context to search query -
createSavedQuery
Description copied from interface:SavedQueryServiceCreates the saved query.- Specified by:
createSavedQueryin interfaceSavedQueryService- Parameters:
label- the labelquery- the queryuser- the user- Returns:
- the cockpit saved query model
-
getDecodedValues
-
getSavedQueries
Description copied from interface:SavedQueryServiceGets the saved queries for given parameters.- Specified by:
getSavedQueriesin interfaceSavedQueryService- Parameters:
provider- the provideruser- the user- Returns:
- the saved queries
-
storeUpdates
Description copied from interface:SavedQueryServiceStore updates.- Specified by:
storeUpdatesin interfaceSavedQueryService- Parameters:
query- the query
-
getQuery
Description copied from interface:SavedQueryServiceGets the query.- Specified by:
getQueryin interfaceSavedQueryService- Parameters:
savedQuery- the saved query- Returns:
- the query
-
deleteQuery
Description copied from interface:SavedQueryServiceDelete query.- Specified by:
deleteQueryin interfaceSavedQueryService- Parameters:
query- the query
-
publishSavedQuery
Description copied from interface:SavedQueryServicePublish saved query.- Specified by:
publishSavedQueryin interfaceSavedQueryService- Parameters:
query- the query
-
renameQuery
Description copied from interface:SavedQueryServiceRename query.- Specified by:
renameQueryin interfaceSavedQueryService- Parameters:
query- the querylabel- the label
-
setSearchService
-
setEnumerationService
-
unwrapSingleValue
-
wrapSingleValue
-
wrapCollectionValues
-
wrapFeatureValue
-
unwrapFeatureValue
-
wrapNumber
-
unwrapNumber
-
decode
-
unwrapCollectionValues
-
wrap
-
getSavedQueryDao
-
setSavedQueryDao
-
addSpecialParameters(CockpitSavedQueryModel, Query)instead