Package stroom.query.audit
Class DocRefAuditWrapper<DOC_REF_ENTITY extends DocRefEntity>
- java.lang.Object
-
- stroom.query.audit.BaseAuditWrapper<DocRefAuditWrapper<DOC_REF_ENTITY>>
-
- stroom.query.audit.DocRefAuditWrapper<DOC_REF_ENTITY>
-
public class DocRefAuditWrapper<DOC_REF_ENTITY extends DocRefEntity> extends BaseAuditWrapper<DocRefAuditWrapper<DOC_REF_ENTITY>>
This form of Audit will check that the given doc ref can be found. This should be used for functions that rely on the existence of a doc ref, but they do not directly manipulate the doc ref itself.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DocRefAuditWrapper.DocRefAuthorisationSupplier
static interface
DocRefAuditWrapper.DocRefEntitySupplier<T extends DocRefEntity>
static interface
DocRefAuditWrapper.DocRefSupplier
static interface
DocRefAuditWrapper.ResponseSupplier<T extends DocRefEntity>
-
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 DocRefAuditWrapper<DOC_REF_ENTITY>
self()
DocRefAuditWrapper<DOC_REF_ENTITY>
withAuthSupplier(DocRefAuditWrapper.DocRefAuthorisationSupplier docRefAuthorisationSupplier)
DocRefAuditWrapper<DOC_REF_ENTITY>
withDocRef(DocRef docRef)
DocRefAuditWrapper<DOC_REF_ENTITY>
withDocRefEntity(DocRefAuditWrapper.DocRefEntitySupplier<DOC_REF_ENTITY> docRefEntitySupplier)
DocRefAuditWrapper<DOC_REF_ENTITY>
withDocRefSupplier(DocRefAuditWrapper.DocRefSupplier docRefSupplier)
DocRefAuditWrapper<DOC_REF_ENTITY>
withResponse(DocRefAuditWrapper.ResponseSupplier<DOC_REF_ENTITY> responseSupplier)
static <D extends DocRefEntity>
DocRefAuditWrapper<D>withUser(ServiceUser user)
-
Methods inherited from class stroom.query.audit.BaseAuditWrapper
callAndAudit, populateEventDetail, user, withPopulateAudit
-
-
-
-
Method Detail
-
withUser
public static <D extends DocRefEntity> DocRefAuditWrapper<D> withUser(ServiceUser user)
-
self
protected DocRefAuditWrapper<DOC_REF_ENTITY> self()
- Specified by:
self
in classBaseAuditWrapper<DocRefAuditWrapper<DOC_REF_ENTITY extends DocRefEntity>>
-
withDocRefSupplier
public DocRefAuditWrapper<DOC_REF_ENTITY> withDocRefSupplier(DocRefAuditWrapper.DocRefSupplier docRefSupplier)
-
withDocRef
public DocRefAuditWrapper<DOC_REF_ENTITY> withDocRef(DocRef docRef)
-
withDocRefEntity
public DocRefAuditWrapper<DOC_REF_ENTITY> withDocRefEntity(DocRefAuditWrapper.DocRefEntitySupplier<DOC_REF_ENTITY> docRefEntitySupplier)
-
withAuthSupplier
public DocRefAuditWrapper<DOC_REF_ENTITY> withAuthSupplier(DocRefAuditWrapper.DocRefAuthorisationSupplier docRefAuthorisationSupplier)
-
withResponse
public DocRefAuditWrapper<DOC_REF_ENTITY> withResponse(DocRefAuditWrapper.ResponseSupplier<DOC_REF_ENTITY> responseSupplier)
-
checkArgs
protected void checkArgs()
- Specified by:
checkArgs
in classBaseAuditWrapper<DocRefAuditWrapper<DOC_REF_ENTITY extends DocRefEntity>>
-
audit
protected javax.ws.rs.core.Response audit(event.logging.EventLoggingService eventLoggingService)
- Specified by:
audit
in classBaseAuditWrapper<DocRefAuditWrapper<DOC_REF_ENTITY extends DocRefEntity>>
-
-