com.atlassian.bamboo.plugin
Class ArtifactDownloaderTaskConfigurationHelper
java.lang.Object
com.atlassian.bamboo.plugin.ArtifactDownloaderTaskConfigurationHelper
public class ArtifactDownloaderTaskConfigurationHelper
- extends Object
|
Method Summary |
static long |
getArtifactId(Map<String,String> map,
int i)
|
static String |
getArtifactIdKey(int i)
|
static Iterable<String> |
getArtifactKeys(Map<String,?> config)
|
static String |
getArtifactName(Map<String,String> map,
int i)
|
static String |
getArtifactNameKey(int i)
|
static String |
getCopyPattern(Map<String,String> map,
int i)
|
static int |
getIndexFromKey(String key)
Retrieves an index from a key. |
static String |
getLocalPath(Map<String,String> map,
int i)
|
static Iterable<String> |
getPathKeys(Map<String,?> config)
|
static Collection<Integer> |
getRuntimeArtifactIds(Map<String,String> map,
int i)
Retrieves the runtime artifact ids calculated by artifact downloader task for a given transfer id. |
static
|
getSourcePlanKey(Map<String,T> configuration)
|
static Iterable<String> |
getTransferKeys(Map<String,?> config)
|
static
|
setArtifactName(Map<String,T> map,
int i,
T value)
|
static void |
setCopyPattern(Map<String,String> map,
int i,
String copyPattern)
|
static void |
setLocalPath(Map<String,String> map,
int i,
String localPath)
|
static void |
setRuntimeArtifactIds(Map<String,String> map,
int i,
Collection<? extends Number> value)
|
static
|
setSourcePlanKey(Map<String,T> map,
T value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCE_PLAN_KEY
public static final String SOURCE_PLAN_KEY
- See Also:
- Constant Field Values
ARTIFACT_ID
public static final String ARTIFACT_ID
- See Also:
- Constant Field Values
RUNTIME_ARTIFACT_IDS
public static final String RUNTIME_ARTIFACT_IDS
- See Also:
- Constant Field Values
TRANSFER_ID
public static final String TRANSFER_ID
- See Also:
- Constant Field Values
ARTIFACT_NAME
public static final String ARTIFACT_NAME
- See Also:
- Constant Field Values
LOCAL_PATH
public static final String LOCAL_PATH
- See Also:
- Constant Field Values
ARTIFACT_PATTERN
public static final String ARTIFACT_PATTERN
- See Also:
- Constant Field Values
getCopyPattern
public static String getCopyPattern(@NotNull
Map<String,String> map,
int i)
getLocalPath
public static String getLocalPath(@NotNull
Map<String,String> map,
int i)
setLocalPath
public static void setLocalPath(@NotNull
Map<String,String> map,
int i,
String localPath)
setCopyPattern
public static void setCopyPattern(@NotNull
Map<String,String> map,
int i,
String copyPattern)
setRuntimeArtifactIds
public static void setRuntimeArtifactIds(@NotNull
Map<String,String> map,
int i,
@NotNull
Collection<? extends Number> value)
getRuntimeArtifactIds
public static Collection<Integer> getRuntimeArtifactIds(@NotNull
Map<String,String> map,
int i)
- Retrieves the runtime artifact ids calculated by artifact downloader task for a given transfer id. For example, when the user
selects "all artifacts", the actual artifact ids will be calculated and made available by this method.
getSourcePlanKey
@Nullable
public static <T> T getSourcePlanKey(@NotNull
Map<String,T> configuration)
setSourcePlanKey
public static <T> void setSourcePlanKey(@NotNull
Map<String,T> map,
@NotNull
T value)
setArtifactName
public static <T> void setArtifactName(@NotNull
Map<String,T> map,
int i,
@NotNull
T value)
getArtifactId
public static long getArtifactId(@NotNull
Map<String,String> map,
int i)
getArtifactName
public static String getArtifactName(@NotNull
Map<String,String> map,
int i)
getArtifactIdKey
public static String getArtifactIdKey(int i)
getArtifactNameKey
public static String getArtifactNameKey(int i)
getTransferKeys
public static Iterable<String> getTransferKeys(@NotNull
Map<String,?> config)
getArtifactKeys
public static Iterable<String> getArtifactKeys(@NotNull
Map<String,?> config)
getPathKeys
public static Iterable<String> getPathKeys(@NotNull
Map<String,?> config)
getIndexFromKey
public static int getIndexFromKey(@NotNull
String key)
- Retrieves an index from a key. For Some_Key_44 returns 44.
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.