Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGBackendException


                    deleteOldStruct((WGStructEntry) roots.next());
                }

                if (!area.remove()) {
                    _log.error("Cannot delete area. See application log for error details");
                    throw new WGBackendException("Canceled import because of failed deletion: " + area.getDocumentKey());
                }

                incTargetDocCounter();
            }
View Full Code Here


           
            WGContent content = (WGContent) contents.next();
            _log.info("Deleting old content '" + content.getContentKey().toString() + "'");
            if (!content.remove()) {
                _log.error("Cannot delete content. See application log for error details");
                throw new WGBackendException("Canceled import because of failed deletion: " + content.getDocumentKey());
            }


            incTargetDocCounter();
        }

        // Finally delete the struct
        _log.info("Deleting old struct entry '" + String.valueOf(entry.getStructKey()) + "'");
        if (!entry.remove()) {
            _log.error("Cannot delete struct entry. See application log for error details");
            throw new WGBackendException("Canceled import because of failed deletion: " + entry.getDocumentKey());
        }

        incTargetDocCounter();

    }
View Full Code Here

                lang = (WGLanguage) langs.next();
                _log.info("Deleting old language '" + lang.getName() + "'");

                if (!lang.remove()) {
                    _log.error("Cannot delete language. See application log for error details");
                    throw new WGBackendException("Canceled import because of failed deletion: " + lang.getDocumentKey());
                }

                incTargetDocCounter();
            }
View Full Code Here

                ct = (WGContentType) cts.next();
                _log.info("Deleting old content type '" + ct.getName() + "'");

                if (!ct.remove()) {
                    _log.error("Cannot delete content type. See application log for error details");
                    throw new WGBackendException("Canceled import because of failed deletion: " + ct.getDocumentKey());
                }

                incTargetDocCounter();
            }
View Full Code Here

            try {
                _to.getACL().remove(entry);               
            }
            catch (WGAPIException e) {
                _log.error("Cannot delete aclentry. See application log for error details");
                throw new WGBackendException("Canceled because of failed deletion: '" + entry.getName() + "' (ACL-Entry)");
            }

        }
        _log.info("Finished deleting old acl entries");
   }
View Full Code Here

  public void dispose() {
  }


  public boolean save(java.util.Date lastModified) throws WGBackendException {
        throw new WGBackendException("Saving not supported by fake document");
  }
View Full Code Here

    return false;
  }


  public boolean remove() throws WGBackendException {
        throw new WGBackendException("Removing not supported by fake document");
  }
View Full Code Here

            if (label != null) {
                return label;
            }
        }
        catch (IOException e) {
            throw new WGBackendException("Exception retrieving label", e);
        }
       
        return null;
       
     }
View Full Code Here

            if (label != null) {
                return label;
            }
        }
        catch (IOException e) {
            throw new WGBackendException("Exception retrieving label", e);
        }
       
        return null;
    }
View Full Code Here

            if (label != null) {
                return label;
            }
        }
        catch (IOException e) {
            throw new WGBackendException("Exception retrieving label", e);
        }
       
       
        return null;
       
View Full Code Here

TOP

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

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.