Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-193

Add utility class to help checking installation requirements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Packaging
    • None

    Description

      see JCRVLT-188:

      I would appreciate a high level API like boolean JcrPackageManager.exists(Archive) which works on those properties to determine whether an archive (local or remote) is uploaded already in the remote repository.

      To achieve that it should work as follows:

      • extract the PID and the created date from the given archive
      • try to find a package in the package manager with the same pid
      • if there is a package compare its created date with the created date from the archive and only return true if both are equal. This method should not consider at all if the package in the repository is installed or not (i.e. shouldn't care about JcrPackage.isInstalled(), because this is mainly used to determine whether the upload should be triggered.

      maybe an utility class instead?

      public final class PackageUtils {
      
      public boolean exists(JcrPackageManager, Archive)
      
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: