Class Condition.ResourcePermission

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.ResourcePermission
    extends Object
    implements Condition
    check the avaiability of a resource (readable)
    • Field Detail

      • path

        protected final String path
    • Constructor Detail

      • ResourcePermission

        public ResourcePermission​(@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