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, userService
-
Fields 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, searchService
-
Fields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeService
-
-
Constructor Summary
Constructors Constructor Description SavedQueryUserRightsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReadUser(PrincipalModel user, CockpitSavedQueryModel model)
Allows given user to read given collection.java.util.Collection<CockpitSavedQueryModel>
getNotSharedQueries(SearchProvider provider, UserModel user)
Returns collection of saved queries that only user has.java.util.List<PrincipalModel>
getReadUsersForSavedQuery(CockpitSavedQueryModel model)
Returns list of all users who are allowed to read given saved query.java.util.Collection<CockpitSavedQueryModel>
getSavedQueries(SearchProvider provider, UserModel user)
Gets the saved queries for given parameters.protected SavedQueryUserRightsDao
getSavedQueryDao()
java.util.Collection<CockpitSavedQueryModel>
getSharedQueries(SearchProvider provider, UserModel user)
Returns collection of saved queries that user shares with and he received from other users.void
removeReadUser(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, setUserService
-
Methods 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, wrapSingleValue
-
Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.services.query.SavedQueryService
createSavedQuery, deleteQuery, getQuery, publishSavedQuery, renameQuery, storeUpdates
-
-
-
-
Method Detail
-
getSavedQueries
public java.util.Collection<CockpitSavedQueryModel> getSavedQueries(SearchProvider provider, UserModel user)
Description copied from interface:SavedQueryService
Gets the saved queries for given parameters.- Specified by:
getSavedQueries
in interfaceSavedQueryService
- Overrides:
getSavedQueries
in classSavedQueryServiceImpl
- Parameters:
provider
- the provideruser
- the user- Returns:
- the saved queries
-
addReadUser
public void addReadUser(PrincipalModel user, CockpitSavedQueryModel model)
Description copied from interface:SavedQueryUserRightsService
Allows given user to read given collection.- Specified by:
addReadUser
in interfaceSavedQueryUserRightsService
- Parameters:
user
- to add read access
-
removeReadUser
public void removeReadUser(PrincipalModel user, CockpitSavedQueryModel model)
Description copied from interface:SavedQueryUserRightsService
Disallow given user to read given collection.- Specified by:
removeReadUser
in interfaceSavedQueryUserRightsService
- Parameters:
user
- to remove read access
-
getReadUsersForSavedQuery
public java.util.List<PrincipalModel> getReadUsersForSavedQuery(CockpitSavedQueryModel model)
Description copied from interface:SavedQueryUserRightsService
Returns list of all users who are allowed to read given saved query.- Specified by:
getReadUsersForSavedQuery
in interfaceSavedQueryUserRightsService
- Returns:
- user list of the users that are allowed to read given saved query
-
getSavedQueryDao
protected SavedQueryUserRightsDao getSavedQueryDao()
- Overrides:
getSavedQueryDao
in classSavedQueryServiceImpl
-
getSharedQueries
public java.util.Collection<CockpitSavedQueryModel> getSharedQueries(SearchProvider provider, UserModel user)
Description copied from interface:SavedQueryUserRightsService
Returns collection of saved queries that user shares with and he received from other users.- Specified by:
getSharedQueries
in interfaceSavedQueryUserRightsService
-
getNotSharedQueries
public java.util.Collection<CockpitSavedQueryModel> getNotSharedQueries(SearchProvider provider, UserModel user)
Description copied from interface:SavedQueryUserRightsService
Returns collection of saved queries that only user has.- Specified by:
getNotSharedQueries
in interfaceSavedQueryUserRightsService
-
-