Class DynamicCollectionTranslation

java.lang.Object
io.goobi.viewer.model.translations.Translation
io.goobi.viewer.model.cms.collections.DynamicCollectionTranslation
All Implemented Interfaces:
Serializable

@Entity public class DynamicCollectionTranslation extends Translation implements Serializable
A persistence object holding a translated String value belonging to a DynamicCollection. Uses the shared "translations" table with its own owner foreign key column so it does not collide with other Translation subclasses.
See Also:
  • Constructor Details

    • DynamicCollectionTranslation

      public DynamicCollectionTranslation()
      Creates a new DynamicCollectionTranslation instance.
    • DynamicCollectionTranslation

      public DynamicCollectionTranslation(String language, String value)
      Creates a new DynamicCollectionTranslation instance.
      Parameters:
      language - BCP 47 language code for this translation
      value - translated text value
    • DynamicCollectionTranslation

      public DynamicCollectionTranslation(DynamicCollectionTranslation tr, DynamicCollection owner)
      Cloning constructor.
      Parameters:
      tr - translation to copy
      owner - collection that owns this translation
  • Method Details

    • getOwner

      public DynamicCollection getOwner()
      Getter for the field owner.
      Returns:
      the dynamic collection this translation belongs to
    • setOwner

      public void setOwner(DynamicCollection owner)
      Setter for the field owner.
      Parameters:
      owner - the dynamic collection this translation belongs to