Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 110 for getUsername (0.08 sec)

  1. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            systemHelper.addShutdownHook(() -> {});
            ComponentUtil.register(systemHelper, "systemHelper");
        }
    
        public void test_getUsername() {
            assertEquals("guest", systemHelper.getUsername());
        }
    
        public void test_getCurrentTimeAsLocalDateTime() {
            final long current =
                    1000 * systemHelper.getCurrentTimeAsLocalDateTime().atZone(ZoneId.systemDefault()).toInstant().getEpochSecond();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        }
    
    /**
     * Returns the domain.
     */
        public String getDomain() {
            return domain;
        }
    
    /**
     * Returns the username.
     */
        public String getUsername() {
            return username;
        }
    /**
     * Returns the password in plain text or <tt>null</tt> if the raw password
     * hashes were used to construct this <tt>NtlmPasswordAuthentication</tt>
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                    action.run();
                } catch (final Exception e) {
                    logger.warn("Failed to process shutdown task.", e);
                }
            });
        }
    
        public String getUsername() {
            final RequestManager requestManager = ComponentUtil.getRequestManager();
            return requestManager.findUserBean(FessUserBean.class).map(FessUserBean::getUserId).orElse(Constants.GUEST_USER);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/promotion/PublishGradleDistributionFullBuild.kt

                    buildStep(extraParameters, gitUserName, gitUserEmail, triggerName, prepTask, "uploadAll")
                    buildStep(extraParameters, gitUserName, gitUserEmail, triggerName, prepTask, promoteTask)
                } else {
                    buildStep(
                        listOf(extraParameters, "-PpromotedBranch=$promotedBranch").joinToString(separator = " "),
                        gitUserName,
                        gitUserEmail,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Feb 13 14:18:23 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. docs_src/dependencies/tutorial008d.py

    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("We don't swallow the internal error here, we raise again 😎")
            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 694 bytes
    - Viewed (0)
  6. docs_src/dependencies/tutorial008b.py

    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 735 bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial008d_an.py

    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("We don't swallow the internal error here, we raise again 😎")
            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 744 bytes
    - Viewed (0)
  8. docs_src/dependencies/tutorial008b_an.py

    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id not in data:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 785 bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/promotion/BasePublishGradleDistribution.kt

            }
        }
    }
    
    fun BuildSteps.buildStep(extraParameters: String, gitUserName: String, gitUserEmail: String, triggerName: String, prepTask: String, stepTask: String) {
        gradleWrapper {
            name = "Promote"
            tasks = "$prepTask $stepTask"
            gradleParams = promotionBuildParameters(RelativeId("Check_Stage_${triggerName}_Trigger"), extraParameters, gitUserName, gitUserEmail)
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Feb 07 17:05:02 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/promotion/PublishRelease.kt

    ) : PublishGradleDistributionFullBuild(
        promotedBranch = promotedBranch,
        prepTask = prepTask,
        promoteTask = promoteTask,
        triggerName = "ReadyforRelease",
        gitUserEmail = "%gitUserEmail%",
        gitUserName = "%gitUserName%",
        extraParameters = "-PconfirmationCode=%confirmationCode%"
    ) {
        init {
            params {
                text(
                    "gitUserEmail",
                    "",
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Dec 05 00:08:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top