Exemplo n.º 1
0
  @Override
  public Package findPackageById(String id) throws ProviderException, ObjectNotFoundException {

    LoggingUtil.debug(logger, "finding package by id:" + id);

    Package _package = packageRepository.findPackageById(id);

    LoggingUtil.debug(logger, "package found" + _package.toString());

    return _package;
  }
Exemplo n.º 2
0
  @Override
  public void updatePackage(Package _package) throws ProviderException, ObjectNotFoundException {

    LoggingUtil.debug(logger, "updating package.." + _package.getName());

    packageRepository.updatePackage(_package);

    LoggingUtil.debug(logger, "package updated:");
  }
Exemplo n.º 3
0
  @Override
  public String createPackage(Package _package) throws ProviderException, ObjectExistsException {

    LoggingUtil.debug(logger, "creating package.." + _package.getName());

    String packageId = packageRepository.createPackage(_package);

    LoggingUtil.debug(logger, "package created with Id:" + packageId);

    return packageId;
  }