Class CCUsageVariantTextMgmt

java.lang.Object
org.eclnt.ccaddons.pbc.usagevariants.util.CCUsageVariantTextMgmt

public class CCUsageVariantTextMgmt extends Object
Creation of texts for usage variants.
  • Constructor Details

    • CCUsageVariantTextMgmt

      public CCUsageVariantTextMgmt()
  • Method Details

    • instance

      public static CCUsageVariantTextMgmt instance()
    • initialize

      public static void initialize(CCUsageVariantTextMgmt instance)
    • calculateVariantText

      public String calculateVariantText(String variantId)
      Text that is displayed for the given variant ID. In the default implementation, this simply returns the variant ID itself. You may override - e.g. to adapt the output of texts that are inherited from "admin" users - where the id is "userId/variantId". In some cases the userId is rather technical (e.g. a UUID) which then is not really user-friendly...