public class GetQueriesAction extends ServiceableAction
Modifier and Type | Class and Description |
---|---|
private static class |
GetQueriesAction.AdditionalInfoOnContainer |
Modifier and Type | Field and Description |
---|---|
private GroupManager |
_groupManager |
private QueryDAO |
_queryDAO |
private AmetysObjectResolver |
_resolver |
private CurrentUserProvider |
_userProvider |
manager
EMPTY_MAP
Constructor and Description |
---|
GetQueriesAction() |
Modifier and Type | Method and Description |
---|---|
private Stream<Query> |
_getChildQueries(QueryContainer parentContainer,
boolean onlyDirectChildren,
Optional<String> queryType,
Query.QueryProfile profile,
UserIdentity user,
Set<GroupIdentity> userGroups) |
private Stream<Pair<QueryContainer,GetQueriesAction.AdditionalInfoOnContainer>> |
_getChildQueryContainers(QueryContainer parentContainer,
boolean testIfEmptyContainer,
Optional<String> queryType,
Query.QueryProfile profile,
UserIdentity user,
Set<GroupIdentity> userGroups) |
private QueryContainer |
_getParentContainer(Map jsParameters) |
private Boolean |
_hasNoDescendant(QueryContainer queryContainer,
Optional<String> queryType,
Query.QueryProfile profile,
UserIdentity user,
Set<GroupIdentity> userGroups) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private CurrentUserProvider _userProvider
private AmetysObjectResolver _resolver
private GroupManager _groupManager
public GetQueriesAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private QueryContainer _getParentContainer(Map jsParameters)
private Stream<Pair<QueryContainer,GetQueriesAction.AdditionalInfoOnContainer>> _getChildQueryContainers(QueryContainer parentContainer, boolean testIfEmptyContainer, Optional<String> queryType, Query.QueryProfile profile, UserIdentity user, Set<GroupIdentity> userGroups)
private Boolean _hasNoDescendant(QueryContainer queryContainer, Optional<String> queryType, Query.QueryProfile profile, UserIdentity user, Set<GroupIdentity> userGroups)
private Stream<Query> _getChildQueries(QueryContainer parentContainer, boolean onlyDirectChildren, Optional<String> queryType, Query.QueryProfile profile, UserIdentity user, Set<GroupIdentity> userGroups)