Class CMSCollectionTranslation

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

@Entity public class CMSCollectionTranslation extends Translation implements Serializable
A persistence object holding a translated String value.
Author:
Florian Alpers
See Also:
  • Constructor Details

    • CMSCollectionTranslation

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

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

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

    • getOwner

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

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