Package com.esri.gpt.catalog.management

Examples of com.esri.gpt.catalog.management.CollectionDao


    logExpression(sSql);
    st = con.prepareStatement(sSql);
    st.setString(1,uuid);
    st.executeUpdate();
   
    CollectionDao colDao = new CollectionDao(this.getRequestContext());
    if (colDao.getUseCollections()) {
      closeStatement(st);
      sSql = "DELETE FROM "+colDao.getCollectionMemberTableName()+" WHERE DOCUUID=?";
      logExpression(sSql);
      st = con.prepareStatement(sSql);
      st.setString(1,uuid);
      st.executeUpdate();
    }
View Full Code Here


* Determine if collections are in use.
* @return <code>true</code> if collections are in use
*/
public boolean getUseCollections() {
  RequestContext context = this.getContextBroker().extractRequestContext();
  CollectionDao colDao = new CollectionDao(context);
  return colDao.getUseCollections();
}
View Full Code Here

  MmdQueryRequest request;
  request = new MmdQueryRequest(context, publisher, getCriteria(), getResult());
  request.execute();
 
  // determine if collections are in use
  CollectionDao colDao = new CollectionDao(context);
  boolean useCollections = colDao.getUseCollections();

  // set the resource messages for the results
  String sMsg;
  String sValue;
  for (MmdRecord record : request.getQueryResult().getRecords()) {
View Full Code Here

* @throws Exception if an exception occurs
*/
@Override
protected void onPrepareView(final RequestContext context) throws Exception {

  CollectionDao colDao = new CollectionDao(context);
  this._useCollections = colDao.getUseCollections();
  if (this._useCollections) {
    this.prepareCollections(context);
  }
 
  // build the selectable list of publishers
View Full Code Here

   * Builds the list of collections.
   * @param context the active request context
   */
  public void buildAll(RequestContext context) throws Exception {
    _list.clear();
    CollectionDao colDao = new CollectionDao(context);
    List<String[]> collections = colDao.queryCollections();
    for (String[] col: collections) {
      _list.add(new SelectItem(col[0],col[1]));
    }
  }
View Full Code Here

      MetadataAcl acl = new MetadataAcl(this.context);
      boolean bCheckAcl = !acl.isPolicyUnrestricted();
     
      // determine if collections are being used
      List<String[]> collections = null;
      CollectionDao colDao = new CollectionDao(this.context);
      boolean hasCollections = false;
      boolean useCollections = colDao.getUseCollections();
      String sColMemberTable = colDao.getCollectionMemberTableName();
      String sqlCol = "SELECT COLUUID FROM "+sColMemberTable+" WHERE DOCUUID=?";
      if (useCollections) {
        collections = colDao.queryCollections();
        hasCollections = (collections.size() > 0);
      }
     
      // initialize index related variables
      boolean bCheckIndex = (info.numOriginallyIndexed > 0);
View Full Code Here

      String s = Val.chkStr(params.getValue("lucene.alwaysStoreXmlInIndex"));
      boolean alwaysStoreXmlInIndex = !s.equalsIgnoreCase("false");
     
      // determine if collections are being used
      List<String[]> collections = null;
      CollectionDao colDao = new CollectionDao(this.getRequestContext());
      boolean hasCollections = false;
      boolean useCollections = colDao.getUseCollections();
      String sColMemberTable = colDao.getCollectionMemberTableName();
      String sqlCol = "SELECT COLUUID FROM "+sColMemberTable+" WHERE DOCUUID=?";
      if (useCollections) {
        collections = colDao.queryCollections();
        hasCollections = (collections.size() > 0);
      }
     
      // determine the storeables
      Document document = new Document();   
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.management.CollectionDao

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.