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 ofQueryResourcewhich logs all activity to theeventLoggingServiceIt 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.StringGET_DATA_SOURCEstatic java.lang.StringQUERY_DESTROYstatic java.lang.StringQUERY_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.Responsedestroy(ServiceUser user, QueryKey queryKey)javax.ws.rs.core.ResponsegetDataSource(ServiceUser user, DocRef docRef)javax.ws.rs.core.Responsesearch(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:
getDataSourcein interfaceQueryResource
-
search
public javax.ws.rs.core.Response search(ServiceUser user, SearchRequest request)
- Specified by:
searchin interfaceQueryResource
-
destroy
public javax.ws.rs.core.Response destroy(ServiceUser user, QueryKey queryKey)
- Specified by:
destroyin interfaceQueryResource
-
-