Package org.saiku.database.dto

Examples of org.saiku.database.dto.SaikuUser


  public void removeRole(SaikuUser u) {
    uDAO.deleteRole(u);
  }

  public void removeUser(String username) {
    SaikuUser u = getUser(Integer.parseInt(username));

    uDAO.deleteUser(username);

    iDatasourceManager.deleteFolder("homes/" + u.getUsername());

  }
View Full Code Here


    iDatasourceManager.deleteFolder("homes/" + u.getUsername());

  }

  public SaikuUser updateUser(SaikuUser u) {
    SaikuUser user = uDAO.updateUser(u);
    uDAO.updateRoles(u);

    return user;

  }
View Full Code Here

  private static final class UserMapper
      implements RowMapper {
    @NotNull
    public Object mapRow(@NotNull ResultSet rs, int rowNum)
        throws SQLException {
      SaikuUser user = new SaikuUser();
      user.setId(rs.getInt("user_id"));
      user.setUsername(rs.getString("username"));
      user.setEmail(rs.getString("email"));
      user.setPassword(rs.getString("password"));
      if (rs.getString("ROLES") != null) {
        List<String> list = new ArrayList(Arrays.asList(rs.getString("ROLES").split(",")));
        String[] stockArr = new String[list.size()];
        stockArr = (String[]) list.toArray(stockArr);
        user.setRoles(stockArr);
      }
      return user;
    }
View Full Code Here

TOP

Related Classes of org.saiku.database.dto.SaikuUser

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.