public class BackofficeSavedQueriesServiceImpl extends java.lang.Object implements BackofficeSavedQueriesService
NOT_CONVERTED_ATTRIBUTE_VALUES| Constructor and Description |
|---|
BackofficeSavedQueriesServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected SearchConditionData |
convertCondition(BackofficeSearchConditionModel condition,
DataType dataType,
java.util.List<java.lang.String> notConvertedAttributesValues) |
protected BackofficeSearchConditionModel |
convertCondition(SearchConditionData scd,
DataType dataType) |
protected SavedQueryValue |
convertValue(java.lang.Object value,
DataAttribute dataAttribute) |
protected java.lang.Object |
convertValue(SavedQueryValue savedQueryValue,
DataAttribute dataAttribute) |
BackofficeSavedQueryModel |
createSavedQuery(java.util.Map<java.util.Locale,java.lang.String> queryName,
AdvancedSearchData asd,
UserModel userModel,
java.util.List<UserGroupModel> groups)
Creates saved query from
AdvancedSearchInitContext |
protected java.util.List<BackofficeSearchConditionModel> |
extractAndConvertConditions(AdvancedSearchData asd) |
protected java.util.List<SearchConditionData> |
extractAndConvertConditions(BackofficeSavedQueryModel savedQueryModel,
java.util.List<java.lang.String> notConvertedAttributesValues) |
AdvancedSearchInitContext |
getAdvancedSearchInitContext(BackofficeSavedQueryModel sqm)
Converts saved query model to advanced search context which can be passes to advancedSearchWidget.
|
protected ValueComparisonOperator |
getGlobalOperatorByCode(java.lang.String operatorCode) |
java.util.List<BackofficeSavedQueryModel> |
getSavedQueries(UserModel userModel)
Searches saved queries for specified user.
|
void |
setBackofficeSavedQueryDAO(BackofficeSavedQueryDAO backofficeSavedQueryDAO) |
void |
setModelService(ModelService modelService) |
void |
setSavedQueryValueConverters(java.util.List<BackofficeSavedQueryValueConverter> savedQueryValueConverters) |
void |
setTypeFacade(TypeFacade typeFacade) |
public java.util.List<BackofficeSavedQueryModel> getSavedQueries(UserModel userModel)
BackofficeSavedQueriesServiceBackofficeSavedQueryModel.getQueryOwner() and all which have at least one of user's groups is in query's
groups BackofficeSavedQueryModel.getUserGroups().getSavedQueries in interface BackofficeSavedQueriesServiceuserModel - owner of a querypublic BackofficeSavedQueryModel createSavedQuery(java.util.Map<java.util.Locale,java.lang.String> queryName, AdvancedSearchData asd, UserModel userModel, java.util.List<UserGroupModel> groups)
BackofficeSavedQueriesServiceAdvancedSearchInitContextcreateSavedQuery in interface BackofficeSavedQueriesServicequeryName - query nameasd - advanced search data.userModel - saved query owner BackofficeSavedQueryModel.setQueryOwner(UserModel)groups - user groups which should see saved query.public AdvancedSearchInitContext getAdvancedSearchInitContext(BackofficeSavedQueryModel sqm)
BackofficeSavedQueriesServiceBackofficeSavedQueriesService.NOT_CONVERTED_ATTRIBUTE_VALUESgetAdvancedSearchInitContext in interface BackofficeSavedQueriesServicesqm - saved query.protected java.util.List<SearchConditionData> extractAndConvertConditions(BackofficeSavedQueryModel savedQueryModel, java.util.List<java.lang.String> notConvertedAttributesValues)
protected SearchConditionData convertCondition(BackofficeSearchConditionModel condition, DataType dataType, java.util.List<java.lang.String> notConvertedAttributesValues)
protected java.util.List<BackofficeSearchConditionModel> extractAndConvertConditions(AdvancedSearchData asd)
protected BackofficeSearchConditionModel convertCondition(SearchConditionData scd, DataType dataType)
protected java.lang.Object convertValue(SavedQueryValue savedQueryValue, DataAttribute dataAttribute)
protected SavedQueryValue convertValue(java.lang.Object value, DataAttribute dataAttribute)
protected ValueComparisonOperator getGlobalOperatorByCode(java.lang.String operatorCode)
public void setBackofficeSavedQueryDAO(BackofficeSavedQueryDAO backofficeSavedQueryDAO)
public void setTypeFacade(TypeFacade typeFacade)
public void setModelService(ModelService modelService)
public void setSavedQueryValueConverters(java.util.List<BackofficeSavedQueryValueConverter> savedQueryValueConverters)
Copyright © 2018 SAP SE. All Rights Reserved.