Class SavedQueryUserRightsServiceImpl
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.cockpit.services.query.impl.SavedQueryServiceImpl
de.hybris.platform.productcockpit.services.query.impl.ProductSavedQueryServiceImpl
de.hybris.platform.productcockpit.services.query.impl.SavedQueryUserRightsServiceImpl
- All Implemented Interfaces:
SavedQueryService,SavedQueryUserRightsService
public class SavedQueryUserRightsServiceImpl
extends ProductSavedQueryServiceImpl
implements SavedQueryUserRightsService
-
Field Summary
Fields inherited from class de.hybris.platform.productcockpit.services.query.impl.ProductSavedQueryServiceImpl
cockpitConfigurationService, listViewConfigurationPersistingStrategy, loginService, mediaService, uiConfigurationService, userServiceFields inherited from class de.hybris.platform.cockpit.services.query.impl.SavedQueryServiceImpl
COLLECTION_DELIM, DATE_MARK, ENUM_DELIM, ENUM_MARK, FEATURE_VALUE_DELIM, FEATURE_VALUE_MARK, FEATURE_VALUE_STRING_VALUE_POS, FEATURE_VALUE_UNIT_POS, NUMBER_CLASS_NAME_POS, NUMBER_MARK, NUMBER_VALUE_DELIM, NUMBER_VALUE_POS, PK_MARK, searchServiceFields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReadUser(PrincipalModel user, CockpitSavedQueryModel model) Allows given user to read given collection.getNotSharedQueries(SearchProvider provider, UserModel user) Returns collection of saved queries that only user has.Returns list of all users who are allowed to read given saved query.getSavedQueries(SearchProvider provider, UserModel user) Gets the saved queries for given parameters.protected SavedQueryUserRightsDaogetSharedQueries(SearchProvider provider, UserModel user) Returns collection of saved queries that user shares with and he received from other users.voidremoveReadUser(PrincipalModel user, CockpitSavedQueryModel model) Disallow given user to read given collection.Methods inherited from class de.hybris.platform.productcockpit.services.query.impl.ProductSavedQueryServiceImpl
addCategoryItemSelectionParameters, addCategoryItemSelectionParameters, addSpecialParameters, createSavedQuery, getQuery, isEmptyRawValueValid, saveListViewConfiguration, setCockpitConfigurationService, setListViewConfigurationPersistingStrategy, setLoginService, setMediaService, setUiConfigurationService, setUserServiceMethods inherited from class de.hybris.platform.cockpit.services.query.impl.SavedQueryServiceImpl
addSpecialParameters, decode, deleteQuery, getDecodedValues, getPKsString, publishSavedQuery, renameQuery, setEnumerationService, setSavedQueryDao, setSearchService, storeUpdates, unwrapCollectionValues, unwrapFeatureValue, unwrapNumber, unwrapSingleValue, wrap, wrapCollectionValues, wrapFeatureValue, wrapNumber, wrapSingleValueMethods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.services.query.SavedQueryService
createSavedQuery, deleteQuery, getQuery, publishSavedQuery, renameQuery, storeUpdates
-
Constructor Details
-
SavedQueryUserRightsServiceImpl
public SavedQueryUserRightsServiceImpl()
-
-
Method Details
-
getSavedQueries
Description copied from interface:SavedQueryServiceGets the saved queries for given parameters.- Specified by:
getSavedQueriesin interfaceSavedQueryService- Overrides:
getSavedQueriesin classSavedQueryServiceImpl- Parameters:
provider- the provideruser- the user- Returns:
- the saved queries
-
addReadUser
Description copied from interface:SavedQueryUserRightsServiceAllows given user to read given collection.- Specified by:
addReadUserin interfaceSavedQueryUserRightsService- Parameters:
user- to add read access
-
removeReadUser
Description copied from interface:SavedQueryUserRightsServiceDisallow given user to read given collection.- Specified by:
removeReadUserin interfaceSavedQueryUserRightsService- Parameters:
user- to remove read access
-
getReadUsersForSavedQuery
Description copied from interface:SavedQueryUserRightsServiceReturns list of all users who are allowed to read given saved query.- Specified by:
getReadUsersForSavedQueryin interfaceSavedQueryUserRightsService- Returns:
- user list of the users that are allowed to read given saved query
-
getSavedQueryDao
- Overrides:
getSavedQueryDaoin classSavedQueryServiceImpl
-