Interface ReferenceResolver


public interface ReferenceResolver
Used to resolve references to other entities when updating repository data from XML.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getReferencedEntity(Class<T> entityClass, String entityKey)
    Should return a reference by uuid.
  • Method Details

    • getReferencedEntity

      <T> T getReferencedEntity(Class<T> entityClass, String entityKey)
      Should return a reference by uuid. If null is returned, the referenced entity is assumed to not exist in the current repository.
      Parameters:
      entityClass - The class of the entity being searched for, e.g. MTModel.class.
      entityKey - The key of the entity being searched for, in general the UUID except for users where the username is used.