Class WcmInit

java.lang.Object
io.wcm.wcm.commons.controller.WcmInit

@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) @ProviderType public final class WcmInit extends Object
Controller for wcmInit component.
  • Constructor Details

    • WcmInit

      @Inject public WcmInit(com.day.cq.wcm.api.AuthoringUIMode authoringUIMode, com.day.cq.wcm.api.components.ComponentContext componentContext, com.day.cq.wcm.undo.UndoConfigService undoConfigService) throws IOException
      Parameters:
      authoringUIMode - Authoring UI mode
      componentContext - Component context
      undoConfigService - Undo Config Service
      Throws:
      IOException - I/O exception
  • Method Details

    • isTouchUI

      public boolean isTouchUI()
      Returns:
      true if Touch UI authoring mode is active
    • isClassicUI

      public boolean isClassicUI()
      Returns:
      true if Classic UI authoring mode is active
    • getPagePropertiesDialogPath

      public String getPagePropertiesDialogPath()
      Returns:
      Page properties dialog path
    • getUndoConfig

      public String getUndoConfig()
      Returns:
      Undo configuration JSON string