Class SitePolicyAspect

java.lang.Object
org.craftercms.studio.api.v2.annotation.policy.SitePolicyAspect

public class SitePolicyAspect extends Object
Interceptor that validates content actions before executing the actual changes.

In order to intercept a method it needs to:

  1. Have a ValidateAction annotation
  2. Have one String parameter with a SiteId annotation
  3. Have one String parameter with a ActionTargetPath annotation
All other annotations are optional.
Since:
4.0.0
Author:
joseross