package com.perforce.spark.artifact; import java.util.ArrayList; import java.util.List; import com.perforce.p4java.core.IDepot.DepotType; public enum ArtifactType { // Specialisation MAVEN("Maven Artifact"), LOCAL("Generic Artifact"), GEM("RubyGem Artifact"), // undefined/unknown UNKNOWN("Unknown Artifact"); private final String title; ArtifactType(String title) { this.title = title; } public static ArtifactType parse(String value) { for (ArtifactType type : ArtifactType.values()) { if (type.name().equalsIgnoreCase(value)) { return type; } } return UNKNOWN; } public static ArtifactType parse(DepotType type) { return parse(type.name()); } public static List<ArtifactType> list() { List<ArtifactType> list = new ArrayList<>(); for (ArtifactType type : ArtifactType.values()) { if (!type.equals(UNKNOWN)) { list.add(type); } } return list; } public String getId() { return this.name().toLowerCase(); } public String getTitle() { return title; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15801 | Paul Allen | Experimental copy of PAM. | ||
//guest/paul_allen/p4am/src/main/java/com/perforce/spark/artifact/ArtifactType.java | |||||
#8 | 15215 | Paul Allen | Added RubyGem pages and tidy up. | ||
#7 | 15181 | Paul Allen | Maven/Generic search results. | ||
#6 | 15012 | Paul Allen | Proxy configuration. | ||
#5 | 14897 | Paul Allen | Added form validation and Perforce Artifacts | ||
#4 | 14866 | Paul Allen |
Create different Depot types. - Display site types |
||
#3 | 14864 | Paul Allen | Depot Configuration and Site type | ||
#2 | 14725 | Paul Allen | Generic deploy/upload | ||
#1 | 14723 | Paul Allen | Tidy up deploy/upload | ||
//guest/paul_allen/p4am/src/main/java/com/perforce/spark/AssetType.java | |||||
#2 | 14181 | Paul Allen | Lots of updates and refactoring. | ||
#1 | 13969 | Paul Allen | Depot list/create for Assets |