Class CampaignTranslation

java.lang.Object
io.goobi.viewer.model.translations.Translation
io.goobi.viewer.model.crowdsourcing.campaigns.CampaignTranslation
All Implemented Interfaces:
Serializable

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

    • CampaignTranslation

      public CampaignTranslation()

      Constructor for CampaignTranslation.

    • CampaignTranslation

      public CampaignTranslation(String language, String tag, String value, Campaign owner)

      Constructor for CampaignTranslation.

      Parameters:
      language - a String object.
      tag - a String object.
      value - a String object.
      owner - a Campaign object.
    • CampaignTranslation

      public CampaignTranslation(CampaignTranslation orig)
    • CampaignTranslation

      public CampaignTranslation(CampaignTranslation orig, Campaign owner)
  • Method Details

    • setTranslation

      public static void setTranslation(List<CampaignTranslation> translations, String lang, String value, String tag, Campaign owner)

      setTranslation.

      Parameters:
      translations - a List object.
      lang - a String object.
      value - a String object.
      tag - a String object.
      owner - a Campaign object.
    • getOwner

      public Campaign getOwner()

      Getter for the field owner.

      Returns:
      the owner
    • setOwner

      public void setOwner(Campaign owner)

      Setter for the field owner.

      Parameters:
      owner - the owner to set