Class SmartTagEnhancementConfiguration

java.lang.Object
com.day.cq.dam.commons.util.SmartTagEnhancementConfiguration

public class SmartTagEnhancementConfiguration extends Object
  • Constructor Details

    • SmartTagEnhancementConfiguration

      public SmartTagEnhancementConfiguration()
  • Method Details

    • determineTitle

      public String determineTitle(String autogenTitle, String dcTitle)
      Determines the title of an asset based on the autogen title and DC title.
      Parameters:
      autogenTitle - The automatically generated title.
      dcTitle - The Dublin Core title.
      Returns:
      The determined title based on the configured source option.
    • deactivate

      @Deactivate public void deactivate()
    • isSmartTagEnhancementEnabled

      public boolean isSmartTagEnhancementEnabled()
      Checks if Smart Tag Enhancement is enabled for this environment.
      Returns:
      true if Smart Tag Enhancement is enabled, false otherwise
    • getTitle

      public String getTitle(@NotNull @NotNull Resource resource)