Examples of SbiRememberMe


Examples of it.eng.spagobi.hotlink.rememberme.metadata.SbiRememberMe

     
      /*
       * The following code does not check if an equivalent Remember Me already exists,
       * it simply inserts it.
       */
      SbiRememberMe temp = new SbiRememberMe();
      temp.setName(name);
      temp.setDescription(description);
      temp.setUserName(userId);
      SbiObjects obj = (SbiObjects) aSession.load(SbiObjects.class, docId);
      temp.setSbiObject(obj);
      SbiSubObjects subObj = null;
      if (subObjId != null) {
        subObj = (SbiSubObjects) aSession.load(SbiSubObjects.class, subObjId);
      }
      temp.setSbiSubObject(subObj);
      temp.setParameters(parameters);
      updateSbiCommonInfo4Insert(temp);
      aSession.save(temp);
      tx.commit();
      return true;
     
View Full Code Here

Examples of it.eng.spagobi.hotlink.rememberme.metadata.SbiRememberMe

      criteria.add(userIdCriterion);
      //criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
      List list = criteria.list();
      Iterator it = list.iterator();
      while (it.hasNext()) {
        SbiRememberMe hibObj = (SbiRememberMe) it.next();
        toReturn = toRememberMe(hibObj);
      }
      return toReturn;
    } catch (HibernateException he) {
      logException(he);
View Full Code Here

Examples of it.eng.spagobi.hotlink.rememberme.metadata.SbiRememberMe

      tx = aSession.beginTransaction();
      //String hql = "from SbiRememberMe srm where srm.id=" + rememberMeId;
      String hql = "from SbiRememberMe srm where srm.id=?" ;
      Query query = aSession.createQuery(hql);
      query.setInteger(0, rememberMeId.intValue());
      SbiRememberMe hibObj = (SbiRememberMe) query.uniqueResult();
      if (hibObj == null) {
        logger.warn("SbiRememberMe with id = " + rememberMeId + " not found!");
        return;
      }
      aSession.delete(hibObj);
View Full Code Here

Examples of it.eng.spagobi.hotlink.rememberme.metadata.SbiRememberMe

      criteria.add(userIdCriterion);
      //criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
      List list = criteria.list();
      Iterator it = list.iterator();
      while (it.hasNext()) {
        SbiRememberMe hibObj = (SbiRememberMe) it.next();
        toReturn.add(toRememberMe(hibObj));
      }
      return toReturn;
    } catch (HibernateException he) {
      logException(he);
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.