Tracked Entity Instance Service
class TrackedEntityInstanceService(trackedEntityAttributeRepository: TrackedEntityAttributeCollectionRepository, trackedEntityAttributeValueRepository: TrackedEntityAttributeValueCollectionRepository, programTrackedEntityAttributeRepository: ProgramTrackedEntityAttributeCollectionRepository, fileResourceCollectionRepository: FileResourceCollectionRepository)
Constructors
Link copied to clipboard
constructor(trackedEntityAttributeRepository: TrackedEntityAttributeCollectionRepository, trackedEntityAttributeValueRepository: TrackedEntityAttributeValueCollectionRepository, programTrackedEntityAttributeRepository: ProgramTrackedEntityAttributeCollectionRepository, fileResourceCollectionRepository: FileResourceCollectionRepository)
Functions
Link copied to clipboard
Inherit the tracked entity attribute values from one TEI to another. It only inherits attributes that are marked as "inherited=true" and that belong to program passed as parameter. This method is useful when creating new relationships. Inherited values are persisted in database. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version inheritAttributes.
Link copied to clipboard
Inherit the tracked entity attribute values from one TEI to another. It only inherits attributes that are marked as "inherited=true" and that belong to program passed as parameter. This method is useful when creating new relationships. Inherited values are persisted in database.