Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for setAttributes (0.07 sec)

  1. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange
                doReturn(SmbConstants.ATTR_NORMAL).when(smbFile).getAttributes();
                doNothing().when(smbFile).setAttributes(anyInt());
    
                // Act
                smbFile.setReadOnly();
    
                // Assert
                verify(smbFile).setAttributes(SmbConstants.ATTR_NORMAL | SmbConstants.ATTR_READONLY);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("getAttributes should return file attributes")
            void testGetAttributes() throws CIFSException {
                // Given
                int expectedAttributes = 0x20; // FILE_ATTRIBUTE_ARCHIVE
                when(mockResource.getAttributes()).thenReturn(expectedAttributes);
    
                // When
                int attributes = mockResource.getAttributes();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/user/exbhv/UserBhv.java

                result.setPassword(DfTypeUtil.toString(source.get(PASSWORD)));
                result.setGroups(toStringArray(source.get(GROUPS)));
                result.setRoles(toStringArray(source.get(ROLES)));
                result.setAttributes(source.entrySet()
                        .stream()
                        .filter(e -> isAttribute(e.getKey()))
                        .map(e -> new Pair<>(e.getKey(), (String) e.getValue()))
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/opensearch/user/exbhv/RoleBhv.java

            try {
                final RESULT result = entityType.newInstance();
                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setAttributes(source.entrySet()
                        .stream()
                        .filter(e -> !"name".equals(e.getKey()))
                        .map(e -> new Pair<>(e.getKey(), (String) e.getValue()))
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/user/exbhv/GroupBhv.java

            try {
                final RESULT result = entityType.newInstance();
                result.setName(DfTypeUtil.toString(source.get("name")));
                result.setAttributes(source.entrySet()
                        .stream()
                        .filter(e -> !"name".equals(e.getKey()))
                        .map(e -> new Pair<>(e.getKey(), (String) e.getValue()))
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/jcifs/SmbResource.java

         * <code>setAttributes( getAttributes() &amp; ~ATTR_READONLY )</code>.
         *
         * @throws CIFSException if an error occurs modifying the resource
         */
        void setReadWrite() throws CIFSException;
    
        /**
         * Make this file read-only. This is shorthand for <code>setAttributes(
         * getAttributes() | ATTR_READ_ONLY )</code>.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  8. 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)
  9. 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)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

                factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, StringUtil.EMPTY);
                factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, StringUtil.EMPTY);
    
                for (final Map.Entry<String, Object> entry : attributeMap.entrySet()) {
                    factory.setAttribute(entry.getKey(), entry.getValue());
                }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top