com.atlassian.bamboo.plugin
Class ArtifactDownloaderTaskConfigurationHelper

java.lang.Object
  extended by com.atlassian.bamboo.plugin.ArtifactDownloaderTaskConfigurationHelper

public class ArtifactDownloaderTaskConfigurationHelper
extends java.lang.Object


Field Summary
static java.lang.String ARTIFACT_ID
           
static java.lang.String ARTIFACT_NAME
           
static java.lang.String ARTIFACT_PATTERN
           
static java.lang.String LOCAL_PATH
           
static java.lang.String RUNTIME_ARTIFACT_IDS
           
static java.lang.String SOURCE_PLAN_KEY
           
static java.lang.String TRANSFER_ID
           
 
Method Summary
static long getArtifactId(java.util.Map<java.lang.String,java.lang.String> map, int i)
           
static java.lang.String getArtifactIdKey(int i)
           
static java.lang.Iterable<java.lang.String> getArtifactKeys(java.util.Map<java.lang.String,?> config)
           
static java.lang.String getArtifactName(java.util.Map<java.lang.String,java.lang.String> map, int i)
           
static java.lang.String getArtifactNameKey(int i)
           
static java.lang.String getCopyPattern(java.util.Map<java.lang.String,java.lang.String> map, int i)
           
static int getIndexFromKey(java.lang.String key)
          Retrieves an index from a key.
static java.lang.String getLocalPath(java.util.Map<java.lang.String,java.lang.String> map, int i)
           
static java.lang.Iterable<java.lang.String> getPathKeys(java.util.Map<java.lang.String,?> config)
           
static java.util.Collection<java.lang.Integer> getRuntimeArtifactIds(java.util.Map<java.lang.String,java.lang.String> map, int i)
          Retrieves the runtime artifact ids calculated by artifact downloader task for a given transfer id.
static
<T> T
getSourcePlanKey(java.util.Map<java.lang.String,T> configuration)
           
static java.lang.Iterable<java.lang.String> getTransferKeys(java.util.Map<java.lang.String,?> config)
           
static
<T> void
setArtifactName(java.util.Map<java.lang.String,T> map, int i, T value)
           
static void setCopyPattern(java.util.Map<java.lang.String,java.lang.String> map, int i, java.lang.String copyPattern)
           
static void setLocalPath(java.util.Map<java.lang.String,java.lang.String> map, int i, java.lang.String localPath)
           
static void setRuntimeArtifactIds(java.util.Map<java.lang.String,java.lang.String> map, int i, java.util.Collection<? extends java.lang.Number> value)
           
static
<T> void
setSourcePlanKey(java.util.Map<java.lang.String,T> map, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_PLAN_KEY

public static final java.lang.String SOURCE_PLAN_KEY
See Also:
Constant Field Values

ARTIFACT_ID

public static final java.lang.String ARTIFACT_ID
See Also:
Constant Field Values

RUNTIME_ARTIFACT_IDS

public static final java.lang.String RUNTIME_ARTIFACT_IDS
See Also:
Constant Field Values

TRANSFER_ID

public static final java.lang.String TRANSFER_ID
See Also:
Constant Field Values

ARTIFACT_NAME

public static final java.lang.String ARTIFACT_NAME
See Also:
Constant Field Values

LOCAL_PATH

public static final java.lang.String LOCAL_PATH
See Also:
Constant Field Values

ARTIFACT_PATTERN

public static final java.lang.String ARTIFACT_PATTERN
See Also:
Constant Field Values
Method Detail

getCopyPattern

public static java.lang.String getCopyPattern(@NotNull
                                              java.util.Map<java.lang.String,java.lang.String> map,
                                              int i)

getLocalPath

public static java.lang.String getLocalPath(@NotNull
                                            java.util.Map<java.lang.String,java.lang.String> map,
                                            int i)

setLocalPath

public static void setLocalPath(@NotNull
                                java.util.Map<java.lang.String,java.lang.String> map,
                                int i,
                                java.lang.String localPath)

setCopyPattern

public static void setCopyPattern(@NotNull
                                  java.util.Map<java.lang.String,java.lang.String> map,
                                  int i,
                                  java.lang.String copyPattern)

setRuntimeArtifactIds

public static void setRuntimeArtifactIds(@NotNull
                                         java.util.Map<java.lang.String,java.lang.String> map,
                                         int i,
                                         @NotNull
                                         java.util.Collection<? extends java.lang.Number> value)

getRuntimeArtifactIds

public static java.util.Collection<java.lang.Integer> getRuntimeArtifactIds(@NotNull
                                                                            java.util.Map<java.lang.String,java.lang.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
                                              java.util.Map<java.lang.String,T> configuration)

setSourcePlanKey

public static <T> void setSourcePlanKey(@NotNull
                                        java.util.Map<java.lang.String,T> map,
                                        @NotNull
                                        T value)

setArtifactName

public static <T> void setArtifactName(@NotNull
                                       java.util.Map<java.lang.String,T> map,
                                       int i,
                                       @NotNull
                                       T value)

getArtifactId

public static long getArtifactId(@NotNull
                                 java.util.Map<java.lang.String,java.lang.String> map,
                                 int i)

getArtifactName

public static java.lang.String getArtifactName(@NotNull
                                               java.util.Map<java.lang.String,java.lang.String> map,
                                               int i)

getArtifactIdKey

public static java.lang.String getArtifactIdKey(int i)

getArtifactNameKey

public static java.lang.String getArtifactNameKey(int i)

getTransferKeys

public static java.lang.Iterable<java.lang.String> getTransferKeys(@NotNull
                                                                   java.util.Map<java.lang.String,?> config)

getArtifactKeys

public static java.lang.Iterable<java.lang.String> getArtifactKeys(@NotNull
                                                                   java.util.Map<java.lang.String,?> config)

getPathKeys

public static java.lang.Iterable<java.lang.String> getPathKeys(@NotNull
                                                               java.util.Map<java.lang.String,?> config)

getIndexFromKey

public static int getIndexFromKey(@NotNull
                                  java.lang.String key)
Retrieves an index from a key. For Some_Key_44 returns 44.



Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.