-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Universal Package Api - Change maven Enum to common PackagePromote, PackageOperation - Added exception handling updatePackageVersions - add comments, etc
- Loading branch information
Showing
18 changed files
with
810 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...va/org/azd/enums/MavenPackagePromote.java → ...in/java/org/azd/enums/PackagePromote.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.azd.enums; | ||
|
||
public enum MavenPackagePromote { | ||
public enum PackagePromote { | ||
RELEASE, | ||
PRERELEASE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.azd.interfaces; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import org.azd.enums.PackagePromote; | ||
import org.azd.enums.PackagesBatchOperation; | ||
import org.azd.exceptions.AzDException; | ||
import org.azd.upack.types.Package; | ||
import org.azd.upack.types.UPackPackageVersionDeletionState; | ||
|
||
public interface UpackDetails { | ||
Package getPackageVersion(String feedId, String packageName, String version) throws AzDException; | ||
|
||
Package getPackageVersion(String feedId, String packageName, String version, boolean showDeleted) | ||
throws AzDException; | ||
|
||
UPackPackageVersionDeletionState getPackageVersionFromRecycleBin(String feedId, String packageName, | ||
String version) throws AzDException; | ||
|
||
// String downloadPackage(String feedId, String packageName, | ||
// String version, String fileName) | ||
// throws AzDException; | ||
|
||
void updatePackageVersion(String feedId, String packageName, String version, PackagePromote promote) | ||
throws AzDException; | ||
|
||
void updatePackageVersion(String feedId, String packageName, String version, String promote) | ||
throws AzDException; | ||
|
||
void updatePackageVersions(String feedId, String viewId, PackagesBatchOperation operation, | ||
List<Map<String, Object>> packages) throws AzDException; | ||
|
||
void updateRecycleBinPackages(String feedId, PackagesBatchOperation operation, | ||
List<Map<String, Object>> packages) throws AzDException; | ||
|
||
void deletePackageVersion(String feedId, String packageName, String version) throws AzDException; | ||
|
||
void deletePackageVersionFromRecycleBin(String feedId, String packageName, String version) throws AzDException; | ||
|
||
void restorePackageVersionFromRecycleBin(String feedId, String packageName, String version) throws AzDException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
azd/src/main/java/org/azd/maven/types/JsonPatchOperation.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.