Package org.jboss.seam.wiki.core.model

Examples of org.jboss.seam.wiki.core.model.User


            getLog().debug("removing menu item of directory: " + menuItem);
            getEntityManager().remove(menuItem);
        }

        // User.homeDirectory
        User user = getWikiNodeDAO().findWikiDirectoryMemberHome(dir.getId());
        if (user != null) {
            getLog().debug("setting member home to null: " + user);
            user.setMemberHome(null);
        }

    }
View Full Code Here


            response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Invalid request path, use: /wikiUserPortrait/[0-9]+/(l|s)");
            return;
        }

        UserDAO userDAO = (UserDAO) Component.getInstance(UserDAO.class);
        User user = userDAO.findUser(Long.valueOf(userId));
        if (user == null || user.getProfile().getImageContentType() == null) {
            response.sendError(HttpServletResponse.SC_NOT_FOUND, "User id not found or no portrait for user");
            return;
        }

        byte[] image = imageSize.equals("l") ? user.getProfile().getImage() : user.getProfile().getSmallImage();
        response.setContentType(user.getProfile().getImageContentType());
        response.setContentLength(image.length);
        response.getOutputStream().write(image);
        response.getOutputStream().flush();
    }
View Full Code Here

    @Create
    public void initialize() {
        pageSize = 15;
        maxPageSize = 1000;
        exampleUser = new User();
        orderByProperty = "username";
        orderDescending = false;
        ignoreProperties = new String[]{"passwordHash", "activated", "createdOn", "lastLoginOn", "ratingScore" };
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.model.User

Copyright © 2018 www.massapicom. 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.