Package es.ipsa.atril.sec.authentication

Examples of es.ipsa.atril.sec.authentication.AtrilSession


  // --------------------------------------------------------------------------
 
  public static AtrilSession getSession(String sContext, String sUsr, String sPwd)
    throws AuthenticationException, SecuritySystemException, IllegalStateException,PersistenceManagerException {
    if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
      AtrilSession oSess = AuthenticationManagerFactory.getAuthenticationManager(oAtrilProperties).authenticateUser(sUsr, sPwd);
    oSess.open(sContext);
      oSess.connect();
    oSess.autoCommit(false);
      return oSess;
  }
View Full Code Here


  // --------------------------------------------------------------------------
 
  public static void reindexAll() throws AuthenticationException, SecuritySystemException, SQLException {
    if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
   
    AtrilSession oSess = getSession("reindexAll", oAtrilProperties.getProperty("atril.user"), oAtrilProperties.getProperty("atril.password"));
    Dms oDms = oSess.getDms();
    Document oRoot = oDms.getRootDocument();
    NodeList<Document> oChilds = oRoot.children();
    for (Document c : oChilds) {
      if (c.type().name().equals("Zesped")) {
        reindexDocument(oSess, c);
        break;
      }
    }
    oSess.commit();
    oSess.disconnect();
    oSess.close();   
  }
View Full Code Here

TOP

Related Classes of es.ipsa.atril.sec.authentication.AtrilSession

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.