ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / project.policy / Policy

Policy

data class Policy

Data class defining policy of how to handle documents / annotations, especially how and when to finalize an annotation for a document and project.

Constructors

Name Summary
<init> Data class defining policy of how to handle documents / annotations, especially how and when to finalize an annotation for a document and project.Policy(numberOfAnnotatorsPerDocument: Int = 1, allowManualEscalationToCurator: Boolean = false, finalizeAnnotationPolicy: FinalizeAnnotationPolicy = FinalizeAnnotationPolicy.MAJORITY_VOTE_WHOLE_DOCUMENT_OR_CURATOR)

Properties

Name Summary
allowManualEscalationToCurator val allowManualEscalationToCurator: Boolean
finalizeAnnotationPolicy val finalizeAnnotationPolicy: FinalizeAnnotationPolicy
numberOfAnnotatorsPerDocument val numberOfAnnotatorsPerDocument: Int

Extension Functions

Name Summary
applyPolicy suspend fun Policy.applyPolicy(project: Project, document: Document, overwriteFinalizedAnnotations: Boolean = false, curationRequest: String? = null, annotationSchema: DenormalizedAnnotationSchema? = null): PolicyAction