Interface AuditInstanceBuilder

    • Method Detail

      • auditDefinitionId

        AuditInstanceBuilder auditDefinitionId​(String auditDefinitionId)
        Set the audit definition of this audit instance.
      • scopeId

        AuditInstanceBuilder scopeId​(String scopeId)
        Set the optional scope instance for which the audit instance was created.
      • subScopeId

        AuditInstanceBuilder subScopeId​(String subScopeId)
        Set the optional subScope instance for which the audit instance was created.
      • scopeDefinitionId

        AuditInstanceBuilder scopeDefinitionId​(String scopeDefinitionId)
        Set the scope instance definition for which the audit instance was created.
      • externalId

        AuditInstanceBuilder externalId​(String externalId)
        If this audit instance was created from an external system, set this optional external id to map to that external data object id, if necessary.
      • type

        AuditInstanceBuilder type​(String type)
        Set the main type of this audit instance. The type and sub type might later be used for easy querying and filtering of the audit stream.
      • subType

        AuditInstanceBuilder subType​(String subType)
        Set the sub type of this audit instance. The type and sub type might later be used for easy querying and filtering of the audit stream.
      • creatorId

        AuditInstanceBuilder creatorId​(String creatorId)
        Set the optional creator id. If no creator id is set, currently authenticated user is used.
      • create

        AuditInstance create()
        Creates and persists the AuditInstance according the data provided to this builder.
        Returns:
        the newly created and persisted audit instance