Class Condition.NodesRestrictions

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.NodesRestrictions
    extends Object
    implements Condition
    check the permissions of a given service key (feature)
    • Field Detail

      • key

        protected final com.composum.sling.core.service.ServiceRestrictions.Key key
      • permission

        protected final com.composum.sling.core.service.ServiceRestrictions.Permission permission
    • Constructor Detail

      • NodesRestrictions

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