Package stroom.query.audit.rest
Class AuditedQueryResourceImpl<T extends DocRefEntity>
- java.lang.Object
-
- stroom.query.audit.rest.AuditedQueryResourceImpl<T>
-
- All Implemented Interfaces:
QueryResource
public class AuditedQueryResourceImpl<T extends DocRefEntity> extends java.lang.Object implements QueryResource
A standard implementation ofQueryResource
which logs all activity to theeventLoggingService
It passes all calls onto an inner implementation of QueryResource, which will be supplied by the specific application.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GET_DATA_SOURCE
static java.lang.String
QUERY_DESTROY
static java.lang.String
QUERY_SEARCH
-
Constructor Summary
Constructors Constructor Description AuditedQueryResourceImpl(event.logging.EventLoggingService eventLoggingService, QueryService service, AuthorisationService authorisationService, DocRefService docRefService)
-
Method Summary
Modifier and Type Method Description javax.ws.rs.core.Response
destroy(ServiceUser user, QueryKey queryKey)
javax.ws.rs.core.Response
getDataSource(ServiceUser user, DocRef docRef)
javax.ws.rs.core.Response
search(ServiceUser user, SearchRequest request)
-
-
-
Field Detail
-
GET_DATA_SOURCE
public static final java.lang.String GET_DATA_SOURCE
- See Also:
- Constant Field Values
-
QUERY_SEARCH
public static final java.lang.String QUERY_SEARCH
- See Also:
- Constant Field Values
-
QUERY_DESTROY
public static final java.lang.String QUERY_DESTROY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuditedQueryResourceImpl
@Inject public AuditedQueryResourceImpl(event.logging.EventLoggingService eventLoggingService, QueryService service, AuthorisationService authorisationService, DocRefService docRefService)
-
-
Method Detail
-
getDataSource
public javax.ws.rs.core.Response getDataSource(ServiceUser user, DocRef docRef)
- Specified by:
getDataSource
in interfaceQueryResource
-
search
public javax.ws.rs.core.Response search(ServiceUser user, SearchRequest request)
- Specified by:
search
in interfaceQueryResource
-
destroy
public javax.ws.rs.core.Response destroy(ServiceUser user, QueryKey queryKey)
- Specified by:
destroy
in interfaceQueryResource
-
-