Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for hasRule (0.29 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java

            assertFalse(ruleManager.hasRule(rule2));
            assertFalse(ruleManager.hasRule(rule3));
    
            ruleManager.addRule(rule2);
    
            assertTrue(ruleManager.hasRule(rule2));
            assertFalse(ruleManager.hasRule(rule3));
    
            ruleManager.addRule(rule3);
    
            assertTrue(ruleManager.hasRule(rule2));
            assertTrue(ruleManager.hasRule(rule3));
    
            ruleManager.removeRule(rule2);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImpl.java

            ruleList.add(index, rule);
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
         * org.codelibs.fess.crawler.rule.RuleManager#hasRule(org.codelibs.fess.crawler.rule.Rule)
         */
        @Override
        public boolean hasRule(final Rule rule) {
            return ruleList.contains(rule);
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/RuleManager.java

     */
    public interface RuleManager {
    
        Rule getRule(ResponseData responseData);
    
        void addRule(Rule rule);
    
        void addRule(int index, Rule rule);
    
        boolean removeRule(Rule rule);
    
        boolean hasRule(Rule rule);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 967 bytes
    - Viewed (0)
  4. cmd/site-replication.go

    			if err != nil {
    				return err
    			}
    		}
    		var (
    			ruleID  = fmt.Sprintf("site-repl-%s", d)
    			hasRule bool
    		)
    		var ruleARN string
    		for _, r := range replicationConfig.Rules {
    			if r.ID == ruleID {
    				hasRule = true
    				ruleARN = r.Destination.Bucket
    			}
    		}
    
    		ep, _ := url.Parse(peer.Endpoint)
    		var targets []madmin.BucketTarget
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  5. src/archive/tar/strconv.go

    // license that can be found in the LICENSE file.
    
    package tar
    
    import (
    	"bytes"
    	"fmt"
    	"strconv"
    	"strings"
    	"time"
    )
    
    // hasNUL reports whether the NUL character exists within s.
    func hasNUL(s string) bool {
    	return strings.Contains(s, "\x00")
    }
    
    // isASCII reports whether the input is an ASCII C-style string.
    func isASCII(s string) bool {
    	for _, c := range s {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

            if (cached != null
                    // if the POM has no file, we cached a missing artifact, only return the cached data if no update forced
                    && (!request.isForceUpdate() || hasFile(cached.getPomArtifact()))) {
                return cached;
            }
    
            List<Dependency> dependencies;
    
            List<Dependency> managedDependencies = null;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    	tests := []struct {
    		lc       Lifecycle
    		opts     ObjectOpts
    		hasRules bool
    	}{
    		{ // Delete marker shouldn't match filter without tags
    			lc: Lifecycle{
    				Rules: []Rule{
    					rules[0],
    				},
    			},
    			opts: ObjectOpts{
    				DeleteMarker: true,
    				IsLatest:     true,
    				Name:         "obj-1",
    			},
    			hasRules: false,
    		},
    		{ // PUT version with no matching tags
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public String[] getGroups() {
            return user.getGroupNames();
        }
    
        public boolean isEditable() {
            return user.isEditable();
        }
    
        public boolean hasRole(final String role) {
            return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role)));
        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

            systemHelper.setupAdminHtmlData(this, runtime);
    
            final Boolean editable = getUserBean()
                    .map(user -> user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray()) || user.hasRole(getActionRole())).orElse(false);
            runtime.registerData("editable", editable);
            runtime.registerData("editableClass", editable ? StringUtil.EMPTY : "disabled");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2.go

    // If data is not xlv2, it is returned in full.
    func readXLMetaNoData(r io.Reader, size int64) ([]byte, error) {
    	initial := size
    	hasFull := true
    	if initial > metaDataReadDefault {
    		initial = metaDataReadDefault
    		hasFull = false
    	}
    
    	buf := metaDataPoolGet()[:initial]
    	_, err := io.ReadFull(r, buf)
    	if err != nil {
    		return nil, fmt.Errorf("readXLMetaNoData(io.ReadFull): %w", err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top