Examples of UserContainer


Examples of org.vfny.geoserver.global.UserContainer

     */
    public static boolean isLoggedIn(HttpServletRequest request) {
        HttpSession session = request.getSession();

        synchronized (session) {
            UserContainer user = (UserContainer) session.getAttribute(UserContainer.SESSION_KEY);
            return user != null;
        }
    }
View Full Code Here

Examples of org.vfny.geoserver.global.UserContainer

    public void reset(ActionMapping arg0, HttpServletRequest request) {
      validationReport = null;
        super.reset(arg0, request);
        DataConfig config = ConfigRequests.getDataConfig( request );

        UserContainer user = Requests.getUserContainer( request );
        StyleConfig style = user.getStyle();
        fullyValidate = true; //default value
        fullyValidateChecked = false; //required by html:checkbox
        if (style == null) {
            // Should not happen (unless they bookmark)
            styleID = "";
View Full Code Here

Examples of org.vfny.geoserver.global.UserContainer

    public void reset(ActionMapping arg0, HttpServletRequest request) {
        super.reset(arg0, request);

        action = "";

        UserContainer user = Requests.getUserContainer( request );
        if( user == null){
            return; // User not logged in, probably the JSPCompiler
        }
        selectedNamespace=user.getPrefix();
       
        // populate and sort available namespaces
        //
        DataConfig config = ConfigRequests.getDataConfig(request);       
        namespaces = new TreeSet(config.getNameSpaces().keySet());
View Full Code Here

Examples of org.vfny.geoserver.global.UserContainer

        action = "";

        ServletContext context = getServlet().getServletContext();

        DataConfig config = ConfigRequests.getDataConfig(request);
        UserContainer user = Requests.getUserContainer(request);

        FeatureTypeConfig type = user.getFeatureTypeConfig();

        if (type == null) {
            System.out.println("Type is not there");

            // Not sure what to do, user must have bookmarked?
View Full Code Here

Examples of org.vfny.geoserver.global.UserContainer

      if(spot<pages.length){
        try{
          String base = Requests.getBaseUrl(request);
            ServletContext session = request.getSession().getServletContext();
            synchronized (session) {
                UserContainer u2 = new UserContainer();
                u2.setUsername("compiler");
                session.setAttribute(UserContainer.SESSION_KEY,u2);
            }
            doLoad(base + pages[spot],response);
            synchronized (session) {
                session.setAttribute(UserContainer.SESSION_KEY,null);
View Full Code Here

Examples of org.vfny.geoserver.global.UserContainer

        //                                       .getAttribute(GlobalConfig.CONFIG_KEY);
        GeoServer geoserver = getWFS(request).getGeoServer();

        if (username.equalsIgnoreCase(geoserver.getAdminUserName())
                && password.equalsIgnoreCase(geoserver.getAdminPassword())) {
            UserContainer user = new UserContainer();
            user.setUsername(username);
            request.getSession().setAttribute(UserContainer.SESSION_KEY, user);

            String forward = (String) request.getAttribute("forward");

            if (forward == null) {
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.