Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGSessionContext


    WGDatabase database = helper.openDatabase(dbKey);   
   
    if(database == null) return "<option>Database with dbKey " + dbKey + " not found</option>";
   
    String domain = (String)database.getAttribute(de.innovationgate.wgpublisher.WGACore.DBATTRIB_DOMAIN);
    WGSessionContext sc = database.getSessionContext();
    String username = sc.getUser();
    String password = sc.getPassword();
   
    Iterator dbs = null;
    WGACore wgaCore = helper.getCore();
    List allDBs = new ArrayList(wgaCore.getContentdbs().values());
       
View Full Code Here


   */
  public boolean remove() throws WGAPIException {
    _db.removeContent(_key.getFolder(), _key.getKey());
    if(_doc != null) {
      // Struct entry must also be deleted bc. it would remain cached otherwise
      WGSessionContext sessionContext = _doc.getDatabase().getSessionContext();
      boolean cascadeDeletions = sessionContext.isCascadeDeletions();
      sessionContext.setCascadeDeletions(false);
      _doc.getStructEntry().remove();
      sessionContext.setCascadeDeletions(true);     
    }
    _deleted = true;
    return true;
  }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGSessionContext

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.