Class EditableTemplate

java.lang.Object
io.wcm.wcm.commons.util.EditableTemplate

public final class EditableTemplate extends Object
Helper methods for editable AEM templates.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isEditRestricted(@NotNull com.day.cq.wcm.api.components.ComponentContext wcmComponentContext)
    Checks if editing of the given component in edit mode is forbidden due to a lock in the template editor for this component.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isEditRestricted

      public static boolean isEditRestricted(@NotNull @NotNull com.day.cq.wcm.api.components.ComponentContext wcmComponentContext)
      Checks if editing of the given component in edit mode is forbidden due to a lock in the template editor for this component.
      Parameters:
      wcmComponentContext - WCM component context
      Returns:
      true if editing the component is forbidden