Package com.agiletec.aps.system.exception

Examples of com.agiletec.aps.system.exception.ApsSystemException


  protected void closeTransport(Transport transport) throws ApsSystemException {
    if (transport != null) {
      try {
        transport.close();
      } catch (MessagingException e) {
        throw new ApsSystemException("Errore in chiusura connessione", e);
      }
    }
  }
View Full Code Here


        }
        ApsSystemUtils.getLogger().info("CasClientTicketValidationUtil - Assertion: " + responseAssertion + " user: " + responseUser);
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "validateTicket");
      throw new ApsSystemException("Errore in CasClientTicketValidationUtil - validateTicket", t);
    }
    if (null != responseAssertion && null != responseUser && responseAssertion.equalsIgnoreCase(_positiveResponse) && responseUser.length() > 0 ) {
      assertion = new AssertionImpl(responseUser);
    }
    return assertion;
View Full Code Here

  public List<Long> getVersions(String contentId) throws ApsSystemException {
    try {
      return this.getVersioningDAO().getVersions(contentId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getVersions");
      throw new ApsSystemException("Error loading version identifiers");
    }
  }
View Full Code Here

  public List<Long> getLastVersions(String contentType, String descr) throws ApsSystemException {
    try {
      return this.getVersioningDAO().getLastVersions(contentType, descr);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getLastVersions");
      throw new ApsSystemException("Error loading last version identifiers");
    }
  }
View Full Code Here

  public ContentVersion getVersion(long id) throws ApsSystemException {
    try {
      return this.getVersioningDAO().getVersion(id);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getVersion");
      throw new ApsSystemException("Error loading version of id " + id);
    }
  }
View Full Code Here

  public ContentVersion getLastVersion(String contentId) throws ApsSystemException {
    try {
      return this.getVersioningDAO().getLastVersion(contentId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getLastVersion");
      throw new ApsSystemException("Error loading last version for content" + contentId);
    }
  }
View Full Code Here

          this.getVersioningDAO().addContentVersion(versionRecord);
        }
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "saveContentVersion");
      throw new ApsSystemException("Error saving version for content" + contentId);
    }
  }
View Full Code Here

      if (this.isDeleteMidVersions()) {
        this.getVersioningDAO().deleteWorkVersions(contentId, onlineVersion);
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "deleteWorkVersions");
      throw new ApsSystemException("Errore in delete Work Versions", t);
    }
  }
View Full Code Here

  public Content getContent(ContentVersion contentVersion) throws ApsSystemException {
    try {
      return this.createContentFromXml(contentVersion.getContentType(), contentVersion.getXml());
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getContent");
      throw new ApsSystemException("Error loading Content from version xml", t);
    }
  }
View Full Code Here

      handler.initHandler(entityPrototype, this.getXmlAttributeRootElementName(), this.getCategoryManager());
      parser.parse(is, handler);
      return entityPrototype;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "createEntityFromXml");
      throw new ApsSystemException("Error on creation entity", t);
    }
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.exception.ApsSystemException

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.