Package com.adito.core

Examples of com.adito.core.LicenseAgreement


                    throws Exception {
        List l = (List)request.getSession().getAttribute(Constants.LICENSE_AGREEMENTS);
        if(l == null || l.size() == 0) {
            throw new Exception("No license agreements to show.");
        }
        LicenseAgreement agreement = (LicenseAgreement)l.get(0);
        ((LicenseAgreementForm)form).setAgreement(agreement);
        return mapping.findForward("display");
    }
View Full Code Here


                    throws Exception {
        List l = (List)request.getSession().getAttribute(Constants.LICENSE_AGREEMENTS);
        if(l == null || l.size() == 0) {
            throw new Exception("No license agreements to agree to.");
        }
        LicenseAgreement agreement = (LicenseAgreement)l.get(0);
        agreement.getCallback().licenseAccepted(request);
        removeAgreement(request.getSession(), l);
        ActionForward fwd = agreement.getReturnTo();
        return fwd;
    }
View Full Code Here

                    throws Exception {
        List l = (List)request.getSession().getAttribute(Constants.LICENSE_AGREEMENTS);
        if(l == null || l.size() == 0) {
            throw new Exception("No license agreements to reject.");
        }
        LicenseAgreement agreement = (LicenseAgreement)l.get(0);
        agreement.getCallback().licenseRejected(request);
        removeAgreement(request.getSession(), l);
        return agreement.getReturnTo();
    }
View Full Code Here

    final RepositoryStore repStore = RepositoryFactory.getRepository().getStore(ARCHIVE_STORE);
    // If installing, there may be a license agreement to handle
    File licenseFile = newBundle.getLicenseFile();
    if (licenseFile != null && licenseFile.exists()) {
      LicenseAgreement licenseAgreement = getLicenseAgreement(newBundle, repStore, licenseFile, installedForward);
      CoreUtil.requestLicenseAgreement(request.getSession(), licenseAgreement);
    }
  }
View Full Code Here

    ExtensionStore.currentEdition = currentEdition;
  }

  private LicenseAgreement getLicenseAgreement(final ExtensionBundle newBundle, final RepositoryStore repStore,
                          final File licenseFile, final ActionForward installedForward) {
    return new LicenseAgreement(newBundle.getName(), licenseFile, new LicenseAgreementCallback() {
      public void licenseAccepted(HttpServletRequest request) {
        // Dont care
      }

      public void licenseRejected(HttpServletRequest request) {
View Full Code Here

          // If installing, there may be a license agreement to handle
          File licenseFile = bundle.getLicenseFile();
          if (licenseFile != null && licenseFile.exists()) {
            final boolean fNewPluginsFound = newPluginsFound;
            CoreUtil.requestLicenseAgreement(request.getSession(), new LicenseAgreement(bundle.getName(),
                    licenseFile,
                    new LicenseAgreementCallback() {
                      public void licenseAccepted(HttpServletRequest request) {
                        // Dont care
                      }
View Full Code Here

TOP

Related Classes of com.adito.core.LicenseAgreement

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.