// --------------------------------------------------------------------------
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();
}