示例#1
0
  /**
   * Create a new instance of the Browse engine, using the given DSpace Context object. This will
   * automatically assign a Data Access Object for the Browse Engine, based on the dspace.cfg
   * setting for db.name
   *
   * @param context the DSpace context
   * @throws BrowseException
   */
  public BrowseEngine(Context context) throws BrowseException {
    // set the context
    this.context = context;

    // prepare the data access object
    dao = BrowseDAOFactory.getInstance(context);
  }
  /**
   * Required constructor for use by BrowseDAOFactory
   *
   * @param context DSpace context
   */
  public BrowseDAOPostgres(Context context) throws BrowseException {
    this.context = context;

    // obtain the relevant Utils for this class
    utils = BrowseDAOFactory.getUtils(context);
  }