Class UserPortalTag

    • Constructor Detail

      • UserPortalTag

        public UserPortalTag()
    • Method Detail

      • getColorBackground

        public RgbaQuadruplet getColorBackground()
        Gets the background color of this tag, used when the tag is displayed in the UI.
        Returns:
        The color of this tag.
      • setColorBackground

        public void setColorBackground​(RgbaQuadruplet colorBackground)
        Sets the background color of this tag, used when the tag is displayed in the UI.
        Parameters:
        colorBackground - The color of this tag.
      • getColorText

        public RgbaQuadruplet getColorText()
        Gets the text color of this tag, used when the tag is displayed in the UI.
        Returns:
        The text color of this tag.
      • setColorText

        public void setColorText​(RgbaQuadruplet colorText)
        Sets the text color of this tag, used when the tag is displayed in the UI.
        Parameters:
        colorText - The text color of this tag.
      • getDisplayName

        public String getDisplayName​(Locale locale)
        Gets the display name of this tag in the given locale. Falls back to the default locale when no localization is available for the given locale.
        Parameters:
        locale - The locale to get the display name for.
        Returns:
        The display name of this tag in the given locale.
      • getId

        public Long getId()
        The unique database ID of this tag. Used internally, should not be made available to users.
        Specified by:
        getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
        Returns:
        The unique database ID of this tag.
      • setLocalizations

        public void setLocalizations​(List<UserPortalTagLocalization> localizations)
        Gets all localization associated with this tag. A tag may contain a localized message for each message key and locale. There are some pre-defined message keys that are used by the system, such as the display name of the tag, but custom message keys may be used as well.
        Specified by:
        setLocalizations in interface ILocalizationProviding<UserPortalTag,​UserPortalTagLocalization>
        Parameters:
        localizations - All localization associated with this tag.
      • getPortal

        public UserPortal getPortal()
        Gets the portal to which this tag belongs. Each tag belongs to exactly one portal, but a portal may have many tags. A portal's tags should be considered a tag pool. Each form may have multiple tags assigned to it, taken from this tag pool.
        Returns:
        The portal to which this tag belongs.
      • setPortal

        public void setPortal​(UserPortal portal)
        Sets the portal to which this tag belongs. Each tag belongs to exactly one portal, but a portal may have many tags. A portal's tags should be considered a tag pool. Each form may have multiple tags assigned to it, taken from this tag pool.
        Parameters:
        portal - The portal to which this tag belongs.
      • getProjectPortalConfigs

        public Set<ProjectPortalConfig> getProjectPortalConfigs()
        A list of forms that have this tag assigned to them. Each tag belongs to exactly one portal, but a portal may have many tags. A portal's tags should be considered a tag pool. Each form may have multiple tags assigned to it, taken from this tag pool.
        Returns:
        A list of forms that have this tag assigned to them.
      • setProjectPortalConfigs

        public void setProjectPortalConfigs​(Set<ProjectPortalConfig> projectPortalConfigs)
        A list of forms that have this tag assigned to them. Each tag belongs to exactly one portal, but a portal may have many tags. A portal's tags should be considered a tag pool. Each form may have multiple tags assigned to it, taken from this tag pool.
        Parameters:
        projectPortalConfigs - A list of forms that have this tag assigned to them.