Class Condition.RunmodePermission

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.RunmodePermission
    extends Object
    implements Condition
    check the avaiability of a servlet registered fo a given resource type
    • Field Detail

      • alternatives

        protected final List<String> alternatives
    • Constructor Detail

      • RunmodePermission

        public RunmodePermission​(@NotNull
                                 @NotNull String pattern)
    • Method Detail

      • accept

        public boolean accept​(@NotNull
                              @NotNull com.composum.sling.core.BeanContext context,
                              @NotNull
                              @NotNull org.apache.sling.api.resource.Resource resource)
        Description copied from interface: Condition
        check the configured condition for the given resource
        Specified by:
        accept in interface Condition