Package es.ipsa.atril.sec.authentication

Examples of es.ipsa.atril.sec.authentication.AtrilSession.disconnect()


      oSes.disconnect();
      oSes.close();
      throw new ElementNotFoundException("No user found with UUID "+sUuid);
    } else {
      String sUsrId = oLst.get(0).id();     
      oSes.disconnect();
      oSes.close();
      return sUsrId;     
    }
  }
View Full Code Here


        for (User oUsr : oAcc.getGuests(oSes))
          if (id().equals(oUsr.id()))
            eRetVal = Role.guest;
    } finally {
      if (oSes!=null) {
        if (oSes.isConnected()) oSes.disconnect();
        if (oSes.isOpen()) oSes.close();       
      }     
    }
    Log.out.debug("End User.getRole() : "+eRetVal);
    return eRetVal;
View Full Code Here

  public User convert(String sDocId, Class<? extends User> userClass,
               Collection<ValidationError> conversionErrors) {
    try {     
      AtrilSession oSes = DAO.getAdminSession("User");
      User oUsr = new User(oSes, sDocId);
      oSes.disconnect();
      oSes.close();
      oSes = null;
      return oUsr;
    } catch (Exception exc) {
      Log.out.error(exc.getClass().getName()+" User.convert("+sDocId+") "+exc.getMessage());
View Full Code Here

          oVol.save();
          oSess.commit();       
      }
    }
   
    oSess.disconnect();
    oSess.close();
   
  } // createDataModel

  // ---------------------------------------------------------------------------
View Full Code Here

      Document oVatPcts = createDocumentOfType(oIdx, oDms, "VatPercents", oZespedDoc);
      oUsrsGrp.grantReadOnly(oVatPcts);
    }
     
      oSess.commit();
      oSess.disconnect();
      oSess.close();
  }
 
  // ---------------------------------------------------------------------------
View Full Code Here

  public static void log(Class oCls, String sCategory, AtrilEvent.Level eLevel, String sDetails) throws AuthenticationException, SecuritySystemException,PersistenceManagerException {
    AtrilSession oSes = getAdminSession("log");
    oSes.getEventLogger().registerEvent(new AtrilEvent.Builder(oCls.getName(), sCategory, eLevel).setDetails(sDetails).build());
    oSes.commit();
    oSes.disconnect();
    oSes.close();
  }
 
  // --------------------------------------------------------------------------
View Full Code Here

        reindexDocument(oSess, c);
        break;
      }
    }
    oSess.commit();
    oSess.disconnect();
    oSess.close();   
  }
 
}
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.