Package org.openqreg.bean

Examples of org.openqreg.bean.UserKey


      try {
        con = DbHandler.getConnection();
        Collection<CentreBean> col = UserRelation.retrieveCentreList(
            con, Dispatcher.getInstance().getUser(userId),
            (UserBean) UserFinderBase.findByPrimaryKey(con,
                new UserKey(userToEdit)), centreStatus,
            ucrStatus, allPossible);
        BeanSorter.sort(BeanSorter.getLocale(Dispatcher.getInstance()
            .getUser(userId)), col, "centrename");
        return col;
      } finally {
View Full Code Here


        .indexOf("</id>"));

   
    try {
      userBean = (UserBean) UserFinder
          .findByPrimaryKey(new UserKey(userId));
      userBean.setPassword(null);
      userBean.setChangepassword(null);
      userBean.setTspassword(null);
     
    res.getWriter().write("<user>\n");
View Full Code Here

      // loop remaining services and create them
      for (String uId : fileShareUsers) {
        FileshareuserBean fsuBean = new FileshareuserBean();
        fsuBean.setFileid(fileBean.getId());
        fsuBean.setUserid(uId);
        fileUser = (User) UserFinderBase.findByPrimaryKey(new UserKey(
            uId));
        if (null != fileUser) {
          // set correct label ending up on switch
          fsuBean.setUserdescription(fileUser.getFirstname() + " "
              + fileUser.getLastname());
View Full Code Here

*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
UserBean valueObject = null;
UserKey primaryKey = (UserKey) key;
try{
pStmt = con.prepareStatement(UserBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getId());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
View Full Code Here

TOP

Related Classes of org.openqreg.bean.UserKey

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.