Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for setAttributes (0.64 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFile.java

        // file attribute encoding
        /**
         * A file with this bit on as returned by {@code getAttributes()} or set
         * with {@code setAttributes()} will be read-only
         */
        public static final int ATTR_READONLY = 0x01;
        /**
         * A file with this bit on as returned by {@code getAttributes()} or set
         * with {@code setAttributes()} will be hidden
         */
        public static final int ATTR_HIDDEN = 0x02;
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

            }
        }
    
        @Override
        public void setReadOnly() throws SmbException {
            setAttributes(getAttributes() | ATTR_READONLY);
        }
    
        @Override
        public void setReadWrite() throws SmbException {
            setAttributes(getAttributes() & ~ATTR_READONLY);
        }
    
        /**
         * Returns a {@link java.net.URL} for this <code>SmbFile</code>. The
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertTrue(file.exists(), "File should exist");
    
            // Set hidden attribute
            int attrs = file.getAttributes();
            file.setAttributes(attrs | SmbConstants.ATTR_HIDDEN);
    
            // Verify hidden attribute is set
            assertTrue((file.getAttributes() & SmbConstants.ATTR_HIDDEN) != 0, "File should be hidden");
    
            // File should still be accessible
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  4. docs/en/docs/js/termynal.js

                this.container.appendChild(line)
            }
            const restart = this.generateRestart()
            restart.style.visibility = 'hidden'
            this.container.appendChild(restart)
            this.container.setAttribute('data-termynal', '');
        }
    
        /**
         * Initialise the widget, get lines, clear container and start animation.
         */
        init() {
            /**
             * Calculates width and height of Termynal container.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:32:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/entity/QueryContextTest.java

            assertEquals("title", queryContext.getDefaultField());
        }
    
        // Test constructor with isQuery true (with request context)
        public void test_constructor_isQueryTrue() {
            getMockRequest().setAttribute(Constants.FIELD_LOGS, new HashMap<String, List<String>>());
            queryContext = new QueryContext("test", true);
            assertEquals("test", queryContext.getQueryString());
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmServletTest.java

                ntlmServlet.service(request, response);
    
                // Verify that user information is stored in the session
                verify(session).setAttribute("NtlmHttpAuth", ntlmAuth);
                verify(session).setAttribute("ntlmuser", "user");
                verify(session).setAttribute("ntlmdomain", "TEST_DOMAIN");
    
                // Verify that the chain continues
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            when(mockFile1.length()).thenReturn(2048L);
            when(mockFile1.lastModified()).thenReturn(System.currentTimeMillis() - 3600000);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20); // FILE_ATTRIBUTE_ARCHIVE
            when(mockFile1.createTime()).thenReturn(System.currentTimeMillis() - 7200000);
            when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            when(mockFile1.length()).thenReturn(1024L);
            when(mockFile1.lastModified()).thenReturn(1000L);
            when(mockFile1.isDirectory()).thenReturn(false);
            when(mockFile1.getAttributes()).thenReturn(0x20);
            when(mockFile1.createTime()).thenReturn(500L);
            when(mockFile1.lastAccess()).thenReturn(800L);
    
            when(mockFile2.getName()).thenReturn("dir1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

                        NtlmChallenge chal = (NtlmChallenge) ssn.getAttribute("NtlmHttpChal");
                        if (chal == null) {
                            chal = SmbSession.getChallengeForDomain();
                            ssn.setAttribute("NtlmHttpChal", chal);
                        }
                        dc = chal.dc;
                        challenge = chal.challenge;
                    } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/entity/QueryContext.java

                    highlightedQuerySet = new HashSet<>();
                    request.setAttribute(Constants.HIGHLIGHT_QUERIES, highlightedQuerySet);
                    fieldLogMap = (Map<String, List<String>>) request.getAttribute(Constants.FIELD_LOGS);
                    if (fieldLogMap == null) {
                        fieldLogMap = new HashMap<>();
                        request.setAttribute(Constants.FIELD_LOGS, fieldLogMap);
                    }
                });
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top