Annotation Type SiteChannelRestriction
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface SiteChannelRestrictionAnnotation for setting allowed site channels for a specific methodSiteChannelRestriction is used to define the property which contains the list of allowed site channels and restrict access to methods based on the channel of the current base site.
AccessDeniedExceptionis thrown if the current base site channel is not included in allowed site channels.Leaving
allowedSiteChannelsPropertyblank means that the annotated method has no allowed site channels which will causeAccessDeniedExceptionbeing thrown from any base site channel.AccessDeniedExceptionwill be also thrown if there's no current base site for annotated methods
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringallowedSiteChannelsPropertyReturns the property which contains the list of allowed site channels (e.g.
-