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 interfaceSimpleAuditWrapper.AuthorisationSupplierstatic interfaceSimpleAuditWrapper.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.Responseaudit(event.logging.EventLoggingService eventLoggingService)protected voidcheckArgs()protected SimpleAuditWrapperself()SimpleAuditWrapperwithAuthSupplier(SimpleAuditWrapper.AuthorisationSupplier authorisationSupplier)SimpleAuditWrapperwithDefaultAuthSupplier()SimpleAuditWrapperwithResponse(SimpleAuditWrapper.ResponseSupplier responseSupplier)static SimpleAuditWrapperwithUser(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:
checkArgsin classBaseAuditWrapper<SimpleAuditWrapper>
-
audit
protected javax.ws.rs.core.Response audit(event.logging.EventLoggingService eventLoggingService)
- Specified by:
auditin classBaseAuditWrapper<SimpleAuditWrapper>
-
self
protected SimpleAuditWrapper self()
- Specified by:
selfin classBaseAuditWrapper<SimpleAuditWrapper>
-
-