Class RepoManager

java.lang.Object
org.basex.query.util.pkg.RepoManager

public final class RepoManager extends Object
Repository manager.
Author:
BaseX Team 2005-21, BSD License, Rositsa Shadura
  • Constructor Details

    • RepoManager

      public RepoManager(Context context)
      Constructor.
      Parameters:
      context - database context
    • RepoManager

      public RepoManager(Context context, InputInfo info)
      Constructor.
      Parameters:
      context - database context
      info - input info
  • Method Details

    • install

      public boolean install(String path) throws QueryException
      Installs a package.
      Parameters:
      path - package path
      Returns:
      true if existing package was replaced
      Throws:
      QueryException - query exception
    • table

      public Table table()
      Returns all installed packages in a table.
      Returns:
      table
    • ids

      public StringList ids()
      Returns a list of all package ids.
      Returns:
      packages
    • delete

      public void delete(String name) throws QueryException
      Removes a package from the repository.
      Parameters:
      name - name or id of the package
      Throws:
      QueryException - query exception
    • packages

      public ArrayList<Pkg> packages()
      Returns a sorted list of all currently available packages.
      Returns:
      packages