Examples of DuplicateLoginException


Examples of org.jayasoft.woj.common.services.security.DuplicateLoginException

     * @param uak
     */
    protected void checkAuthorization(UAK uak, Map params) {
        if (SecurityHelper.isAlreadyLogged(uak)) {
            LOGGER.warn("user " + uak.getUserId() + " is already connected, we refuse to serve the secured command");
            throw new DuplicateLoginException(uak);
        }
    }
View Full Code Here

Examples of org.jayasoft.woj.common.services.security.DuplicateLoginException

    private Random RANDOM = new Random(System.currentTimeMillis());
   
    public ContentReference getContentReference(UAK uak, String visibility, String org, String mod, String rev, String path, boolean redirected) {
        if (SecurityHelper.isAlreadyLogged(uak)) {
            LOGGER.info("user " + uak.getUserId() + " is already logged, unauthorized access");
            throw new DuplicateLoginException(uak);
        }
        if (redirected) {
            LOGGER.info("the request comes from a redirection from another server: balancing the load");
            return dispatch(uak, visibility, org, mod, rev, path);
        } else {
View Full Code Here

Examples of org.jayasoft.woj.common.services.security.DuplicateLoginException

    }
   
    protected ContentReference dispatch(UAK uak, String visibility, String org, String mod, String rev, String path) {
        if (SecurityHelper.isAlreadyLogged(uak)) {
            LOGGER.info("user " + uak.getUserId() + " is already logged, unauthorized access");
            throw new DuplicateLoginException(uak);
        }

        String request = getRequest(uak, visibility, org, mod, rev, path);
        LOGGER.debug("looking for servers able to handle "+request);
        List servers = getServersUpToHandle(uak, visibility, org, mod, rev, path);
View Full Code Here

Examples of org.jayasoft.woj.common.services.security.DuplicateLoginException

    }

    public ContentReference doGetContentReference(UAK uak, String visibility, String org, String mod, String rev, String path) {
        if (SecurityHelper.isAlreadyLogged(uak)) {
            LOGGER.info("user " + uak.getUserId() + " is already logged, unauthorized access");
            throw new DuplicateLoginException(uak);
        }
        ModuleDescriptor md = null;
        Visibility v = null;
        if (Parameters.SERVLET_NAME.DISPATCH.equals(visibility)) {
            LOGGER.info("no visibility found in url");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.