Examples of SbiUser


Examples of it.eng.spagobi.profiling.bean.SbiUser

                    rolesIt.remove();
                    aSession.delete(temp);
                    aSession.flush();
                }
            }
            SbiUser userToDelete =(SbiUser)aSession.load(SbiUser.class, id);

            aSession.delete(userToDelete);
            aSession.flush();
            tx.commit();
        } catch (HibernateException he) {
View Full Code Here

Examples of it.eng.spagobi.profiling.bean.SbiUser

    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      boolean save = true;
     
      SbiUser userToUpdate = user;
      id = userToUpdate.getId();
      Set<SbiExtUserRoles> extUserRoles = new HashSet<SbiExtUserRoles>();
      Set<SbiUserAttributes> userAttrList = new HashSet<SbiUserAttributes>();
     
      if(id!=0){
        save = false;
        userToUpdate =(SbiUser)aSession.load(SbiUser.class, id);
        if(user.getPassword() != null && user.getPassword().length() > 0){
          userToUpdate.setPassword(user.getPassword());
        }
        userToUpdate.setFullName(user.getFullName());
        userToUpdate.setUserId(user.getUserId());
        userToUpdate.setId(id);
        updateSbiCommonInfo4Update(userToUpdate);

     
     
      if(save){
        updateSbiCommonInfo4Insert(userToUpdate);
        id = (Integer)aSession.save(userToUpdate)
        userToUpdate.setId(id);
      }
     
      //sets roles
      if(roles != null){
        //remove existing roles
View Full Code Here

Examples of it.eng.spagobi.profiling.bean.SbiUser

     
      if(toTransform!=null && !toTransform.isEmpty()){
        toReturn = new ArrayList<UserBO>();
        Iterator it = toTransform.iterator();
        while(it.hasNext()){
          SbiUser sbiUser = (SbiUser)it.next();
          UserBO us = toUserBO(sbiUser);
          toReturn.add(us);
        }
      }
     
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.