Class ProjectPortalTag

    • Constructor Detail

      • ProjectPortalTag

        public ProjectPortalTag()
    • Method Detail

      • getUUID

        public String getUUID()
        Description copied from interface: IUUIDEntity
        Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for example client scopes or project scope.
        Specified by:
        getUUID in interface IUUIDEntity
        Returns:
        The UUID of the entity.
      • setUUID

        public void setUUID​(String uuid)
        Description copied from interface: IUUIDEntity
        Sets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for example client scopes or project scope.
        Specified by:
        setUUID in interface IUUIDEntity
        Parameters:
        uuid - The UUID of the entity.
      • getUUIDObject

        public UUID getUUIDObject()
        Description copied from interface: IUUIDEntity
        Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for example client scopes or project scope.
        Specified by:
        getUUIDObject in interface IUUIDEntity
        Returns:
        The UUID of the entity.
      • setUUIDObject

        public void setUUIDObject​(UUID uuid)
      • 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.
      • getDefaultLocale

        public Locale getDefaultLocale()
      • setDefaultLocale

        public void setDefaultLocale​(Locale defaultLocale)
      • 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<ProjectPortalTagLocalization> 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.
        Parameters:
        localizations - All localization associated with this tag.
      • getProjectConfigs

        @NotEmpty
        public @NotEmpty Set<ProjectPortalConfig> getProjectConfigs()
        Gets the portalConfigs this tag is associated with.
        Returns:
        The portalConfigs this tag is associated with.
      • setProjectConfigs

        public void setProjectConfigs​(@NotEmpty
                                      @NotEmpty Set<ProjectPortalConfig> projectConfigs)
        Sets the projects this tag is associated with.
        Parameters:
        projectConfigs - The projects this tag is associated with.
      • getDescription

        public String getDescription​(Locale locale)
        Gets the description 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 description for.
        Returns:
        The description of this tag in the given locale.
      • 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.