Uploaded image for project: 'PhenoTips'
  1. PT-3529

New API for providing metadata about entities

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 1.4-milestone-3
    • Components: entities
    • Labels:
    • Sprint:

      Description

      This is for decoupling modules, and can be used, for example, to specify which family does a patient belong to, without the patients module knowing about the families module.

      New API:

      public interface PrimaryEntityMetadataManager
      {
          Map<String, Object> getMetadata(PrimaryEntity entity);
      }
      

      New SPI:

      public interface PrimaryEntityMetadataProvider
      {
          Map<String, Object> provideMetadata(PrimaryEntity entity);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: