Package stroom.query.audit
Class SimpleAuditWrapper
- java.lang.Object
-
- stroom.query.audit.BaseAuditWrapper<SimpleAuditWrapper>
-
- stroom.query.audit.SimpleAuditWrapper
-
public class SimpleAuditWrapper extends BaseAuditWrapper<SimpleAuditWrapper>
Common form of functions that want to do the following: 1) Check authorisation for data 2) Compose some response 3) Audit the event, including any exceptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SimpleAuditWrapper.AuthorisationSupplier
static interface
SimpleAuditWrapper.ResponseSupplier
-
Nested classes/interfaces inherited from class stroom.query.audit.BaseAuditWrapper
BaseAuditWrapper.PopulateEventDetail
-
-
Method Summary
Modifier and Type Method Description protected javax.ws.rs.core.Response
audit(event.logging.EventLoggingService eventLoggingService)
protected void
checkArgs()
protected SimpleAuditWrapper
self()
SimpleAuditWrapper
withAuthSupplier(SimpleAuditWrapper.AuthorisationSupplier authorisationSupplier)
SimpleAuditWrapper
withDefaultAuthSupplier()
SimpleAuditWrapper
withResponse(SimpleAuditWrapper.ResponseSupplier responseSupplier)
static SimpleAuditWrapper
withUser(ServiceUser user)
-
Methods inherited from class stroom.query.audit.BaseAuditWrapper
callAndAudit, populateEventDetail, user, withPopulateAudit
-
-
-
-
Method Detail
-
withUser
public static SimpleAuditWrapper withUser(ServiceUser user)
-
withDefaultAuthSupplier
public SimpleAuditWrapper withDefaultAuthSupplier()
-
withAuthSupplier
public SimpleAuditWrapper withAuthSupplier(SimpleAuditWrapper.AuthorisationSupplier authorisationSupplier)
-
withResponse
public SimpleAuditWrapper withResponse(SimpleAuditWrapper.ResponseSupplier responseSupplier)
-
checkArgs
protected void checkArgs()
- Specified by:
checkArgs
in classBaseAuditWrapper<SimpleAuditWrapper>
-
audit
protected javax.ws.rs.core.Response audit(event.logging.EventLoggingService eventLoggingService)
- Specified by:
audit
in classBaseAuditWrapper<SimpleAuditWrapper>
-
self
protected SimpleAuditWrapper self()
- Specified by:
self
in classBaseAuditWrapper<SimpleAuditWrapper>
-
-