Interface SavedQueryUserRightsService
-
- All Superinterfaces:
SavedQueryService
- All Known Implementing Classes:
DummySavedQueryUserRightsServiceImpl
,SavedQueryUserRightsServiceImpl
public interface SavedQueryUserRightsService extends SavedQueryService
The interface delivers additional user rights services.
-
-
Method Summary
All Methods Instance Methods Abstract 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>
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 interface de.hybris.platform.cockpit.services.query.SavedQueryService
createSavedQuery, deleteQuery, getQuery, getSavedQueries, publishSavedQuery, renameQuery, storeUpdates
-
-
-
-
Method Detail
-
addReadUser
void addReadUser(PrincipalModel user, CockpitSavedQueryModel model)
Allows given user to read given collection.- Parameters:
user
- to add read accesscollection
- to add read access
-
removeReadUser
void removeReadUser(PrincipalModel user, CockpitSavedQueryModel model)
Disallow given user to read given collection.- Parameters:
user
- to remove read accesscollection
- to remove read access
-
getReadUsersForSavedQuery
java.util.List<PrincipalModel> getReadUsersForSavedQuery(CockpitSavedQueryModel model)
Returns list of all users who are allowed to read given saved query.- Parameters:
collection
- the collection to check read access- Returns:
- user list of the users that are allowed to read given saved query
-
getSharedQueries
java.util.Collection<CockpitSavedQueryModel> getSharedQueries(SearchProvider provider, UserModel user)
Returns collection of saved queries that user shares with and he received from other users.
-
getNotSharedQueries
java.util.Collection<CockpitSavedQueryModel> getNotSharedQueries(SearchProvider provider, UserModel user)
Returns collection of saved queries that only user has.
-
-