Class RequireSiteStateAnnotationHandler

java.lang.Object
org.craftercms.studio.api.v2.annotation.RequireSiteStateAnnotationHandler

@Order(10) public class RequireSiteStateAnnotationHandler extends Object
Handles the RequireSiteState annotation. Checks if the site state is supported for the requested operation before executing the annotated method.
  • Constructor Details

    • RequireSiteStateAnnotationHandler

      public RequireSiteStateAnnotationHandler(SitesService sitesService)
  • Method Details

    • checkSiteState

      public Object checkSiteState(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
      Throws:
      Throwable