Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for createItem (0.25 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

                itemList.add(createItem(entry.getKey(), entry.getValue()));
            }
            return itemList;
        }
    
        public static List<Map<String, String>> getPropItems() {
            final List<Map<String, String>> itemList = new ArrayList<>();
            for (final Map.Entry<Object, Object> entry : System.getProperties().entrySet()) {
                itemList.add(createItem(entry.getKey(), entry.getValue()));
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/webauth/AdminWebauthAction.java

            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_basic"), Constants.BASIC));
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_digest"), Constants.DIGEST));
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_ntlm"), Constants.NTLM));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/fileauth/AdminFileauthAction.java

            final Locale locale = ComponentUtil.getRequestManager().getUserLocale();
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.file_auth_scheme_samba"), Constants.SAMBA));
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.file_auth_scheme_ftp"), Constants.FTP));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/reqheader/AdminReqheaderAction.java

            for (final WebConfig webConfig : webConfigList) {
                itemList.add(createItem(webConfig.getName(), webConfig.getId().toString()));
            }
            RenderDataUtil.register(data, "webConfigItems", itemList);
        }
    
        protected Map<String, String> createItem(final String label, final String value) {
            final Map<String, String> map = new HashMap<>(2);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

                    entity.setOriginalPassword(form.password);
                    entity.setPassword(encodedPassword);
                }
                return entity;
            });
        }
    
        protected Map<String, String> createItem(final String label, final String value) {
            final Map<String, String> map = new HashMap<>(2);
            map.put(Constants.ITEM_LABEL, label);
            map.put(Constants.ITEM_VALUE, value);
            return map;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. internal/disk/stat_test.go

    			expectedIOStats: IOStats{},
    			expectErr:       true,
    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp("", "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.stat)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			iostats, err := readDriveStats(tmpfile.Name())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. docs_src/path_operation_advanced_configuration/tutorial007.py

    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {"application/x-yaml": {"schema": Item.model_json_schema()}},
                "required": True,
            },
        },
    )
    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 822 bytes
    - Viewed (0)
  8. internal/ioutil/ioutil_test.go

    	}
    }
    
    // Test for AppendFile.
    func TestAppendFile(t *testing.T) {
    	f, err := os.CreateTemp("", "")
    	if err != nil {
    		t.Fatal(err)
    	}
    	name1 := f.Name()
    	defer os.Remove(name1)
    	f.WriteString("aaaaaaaaaa")
    	f.Close()
    
    	f, err = os.CreateTemp("", "")
    	if err != nil {
    		t.Fatal(err)
    	}
    	name2 := f.Name()
    	defer os.Remove(name2)
    	f.WriteString("bbbbbbbbbb")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. docs_src/app_testing/app_b_an/main.py

        if item_id not in fake_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return fake_db[item_id]
    
    
    @app.post("/items/", response_model=Item)
    async def create_item(item: Item, x_token: Annotated[str, Header()]):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
        if item.id in fake_db:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. docs_src/app_testing/app_b_py310/main.py

        if item_id not in fake_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return fake_db[item_id]
    
    
    @app.post("/items/", response_model=Item)
    async def create_item(item: Item, x_token: str = Header()):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
        if item.id in fake_db:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 09 14:44:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top