Package edu.uga.galileo.voci.bo

Examples of edu.uga.galileo.voci.bo.User


   *            The url command.
   */
  private void processAddRequest( HttpServletRequest request, HttpServletResponse response, Command command )
  {

    User user = new User();
    RoleManager roleManager = new RoleManager();

    try
    {
      // attach full list of roles and user-specific roles if they exist
      user = roleManager.setFullListRoleNames(new ProjectManager().getProjectID(command.getProject()), user);

    }
    catch( NoSuchProjectException ex )
    {
      Logger.debug("\n\n Could not retrieve projectId - UserServlet.processUpdateRequest \n\n");
    }

    user.setActive(true);
    user.setUserId(-1);
    request.setAttribute("user", user);

    sendRequestToUserJSP(request, response, command);

  }// end processAddRequest()
View Full Code Here


   */
  @SuppressWarnings("unchecked")
  @Override
  protected void handleRequest(HttpServletRequest request,
      HttpServletResponse response) {
    User user = (User) request.getSession().getAttribute("user");
    ArrayList<String> errors = new ArrayList<String>();
    HashMap<String, String> fieldMessages = new HashMap<String, String>();
    Command command = (Command) request.getAttribute("command");
    WorkflowManager workflowManager = new WorkflowManager();

View Full Code Here

  /**
   * @see edu.uga.galileo.voci.db.dao.UserDAO#getUserByUserName(String
   *      userName)
   */
  public User getUserByUserName(String userName) throws NoSuchUserException {
    User user = new User();
    StringBuffer sql = new StringBuffer();
    sql.append(" select * ");
    sql.append(" from users ");
    sql.append(" where upper(user_name)=upper(?) ");

View Full Code Here

  /**
   * @see edu.uga.galileo.voci.db.dao.UserDAO#getUserByUserId(int userId)
   */
  public User getUserByUserId(int userId) throws NoSuchUserException {
    User user = new User();
    StringBuffer sql = new StringBuffer();
    sql.append(" select * ");
    sql.append(" from users ");
    sql.append(" where user_id=? ");

View Full Code Here

        Logger.error("Your code's not requesting the right datatype.",
            e);
        return null;
      }
    } else {
      User user = createObjectFromQueryParser(User.class, qp);
      if (!user.isActive()) {
        throw new InactiveUserException(
            "User account is inactive.  Please contact the System Administrator.");
      }
      return user;
    }
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  @Override
  protected void handleRequest(HttpServletRequest request,
      HttpServletResponse response) {
    User user = (User) request.getSession().getAttribute("user");
    ArrayList<String> errors = new ArrayList<String>();
    HashMap<String, String> fieldMessages = new HashMap<String, String>();
    Command command = (Command) request.getAttribute("command");
    WorkflowManager workflowManager = new WorkflowManager();

View Full Code Here

   */
  @SuppressWarnings("unchecked")
  @Override
  protected void handleRequest(HttpServletRequest request,
      HttpServletResponse response) {
    User user = (User) request.getSession().getAttribute("user");
    ArrayList<String> errors = new ArrayList<String>();
    HashMap<String, String> fieldMessages = new HashMap<String, String>();
    Command command = (Command) request.getAttribute("command");
    WorkflowManager workflowManager = new WorkflowManager();

View Full Code Here

  protected void handleRequest(HttpServletRequest request,
      HttpServletResponse response) {
    Command command = (Command) request.getAttribute("command");
    ItemManager itemManager = new ItemManager();
    WorkflowManager workflowManager = new WorkflowManager();
    User user = (User) request.getSession().getAttribute("user");
    ArrayList<String> errors = new ArrayList<String>();
    HashMap<String, String> fieldMessages = new HashMap<String, String>();
    Item item = null;
    boolean updated = false;
View Full Code Here

            if (project.toString().equals(oldVersion)) {
              errors.add("No changes detected.");
            }

            if ((errors.size() == 0) && (fieldMessages.size() == 0)) {
              User user = (User) request.getSession()
                  .getAttribute("user");
              manager.updateProject(project, user, oldVersion);
              request.setAttribute("successMessage",
                  "Project successfully updated <span class=\"tinyformtext\">("
                      + Calendar.getInstance().getTime()
View Full Code Here

    }

    // if errors occurred, we will not delete
    if (errors.isEmpty()) {
      try {
        User sessionUser = (User) request.getSession().getAttribute(
            "user");
        roleManager.deleteRole(new ProjectManager().getProject(command
            .getProject()), sessionUser, role, role.toString());
        // if delete successful send messages....
        request.setAttribute("successMessage",
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.bo.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.