Class EditableTemplate


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

      All Methods Static Methods Concrete Methods 
      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 Detail

      • 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