Package com.google.enterprise.connector.dctm.dfcwrap

Examples of com.google.enterprise.connector.dctm.dfcwrap.ISessionManager.release()


    ISessionManager sessionManagerUser = getSessionManagerUser(username);
    ISession sessionUser = sessionManagerUser.getSession(docbase);
    try {
      authorized = getAuthorizedDocids(docids, query, sessionUser);
    } finally {
      sessionManagerUser.release(sessionUser);
      logger.finest("user session released");
    }
    return authorized;
  }
View Full Code Here


      IId id = dctmClientX.getId(DmInitialize.DM_ID1);
      ISysObject object = (ISysObject) session.getObject(id);
      dctmForm = (DmFormat) object.getFormat();
    } finally {
      if (session != null) {
        sessionManager.release(session);
      }
    }
  }

  public void testCanIndex() throws DfException, RepositoryException {
View Full Code Here

          // authenticated user name.
          ISession session = sessionManagerUser.getSession(docbase);
          try {
            userName = session.getLoginUserName();
          } finally {
            sessionManagerUser.release(session);
          }
          authenticate = true;
        }
      } catch (RepositoryLoginException e) {
        LOGGER.finer(e.getMessage());
View Full Code Here

      query.setDQL(DmInitialize.DM_QUERY_STRING_ENABLE);
      ICollection collec = query.execute(session, IQuery.READ_QUERY);
      Assert.assertNotNull(collec);
    } finally {
      if (session != null)
        sessionManager.release(session);
    }
  }
}
View Full Code Here

        // Return the config form with an error message.
        return createErrorResponse(configData, e, resource, cl, sess,
            ErrorStyle.VALIDATE_CONFIG);
      } finally {
        if (sess != null) {
          sessMag.release(sess);
          logger.fine("Release sessionConfig");
        }
      }

      // There's no need to persist action_update.
View Full Code Here

      // Return the config form with an error message.
      return createErrorResponse(configMap, e, resource, cl, sess,
          ErrorStyle.GET_CONFIG_FORM);
    } finally {
      if (sess != null) {
        sessMag.release(sess);
        logger.fine("Release sessionConfig");
      }
    }

    return result;
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.