com.atlassian.bamboo.fileserver
Class ArtifactPaths

java.lang.Object
  extended by com.atlassian.bamboo.fileserver.ArtifactPaths

public class ArtifactPaths
extends Object


Field Summary
static String GLOBAL_STORAGE_DIR
           
static String SHARED_ARTIFACTS_DIR
           
 
Constructor Summary
ArtifactPaths(File rootStorageDirectory)
           
ArtifactPaths(String rootStorageDirectory, char separatorChar)
           
 
Method Summary
 String getArtifactDestinationDirectory(Artifact artifact)
           
 String getArtifactDestinationDirectory(PlanKey planKey, String version, ImmutableArtifactDefinitionBase artifact)
           
 String getArtifactDestinationDirectory(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifact)
           
 String getArtifactDirectory(PlanKey planKey)
           
 String getArtifactDirectory(PlanKey planKey, int buildNumber)
           
 String getArtifactDirectory(PlanResultKey planResultKey)
           
static String getArtifactPathSuffix(Artifact artifact)
           
static String getArtifactPathSuffix(Artifact artifact, char separatorChar)
           
static String getArtifactPathSuffix(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifact)
          _CHAIN_KEY_ / _JOB_KEY_|"shared" / _BUILD_NUMBER_ (/ artifact-name)
static String getArtifactPathSuffix(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifact, char separatorChar)
          _CHAIN_KEY_ / _JOB_KEY_|"shared" / _BUILD_NUMBER_ (/ artifact-name)
 String getArtifactRootDirectory(PlanKey planKey)
           
 String getRootStorageDirectory()
           
 String getTmpStorageDirectory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHARED_ARTIFACTS_DIR

public static final String SHARED_ARTIFACTS_DIR
See Also:
Constant Field Values

GLOBAL_STORAGE_DIR

public static final String GLOBAL_STORAGE_DIR
See Also:
Constant Field Values
Constructor Detail

ArtifactPaths

public ArtifactPaths(@NotNull
                     File rootStorageDirectory)

ArtifactPaths

public ArtifactPaths(@Nullable
                     String rootStorageDirectory,
                     char separatorChar)
Method Detail

getRootStorageDirectory

public String getRootStorageDirectory()

getTmpStorageDirectory

public String getTmpStorageDirectory()

getArtifactDestinationDirectory

@NotNull
public String getArtifactDestinationDirectory(PlanResultKey planResultKey,
                                                      ImmutableArtifactDefinitionBase artifact)

getArtifactDestinationDirectory

@NotNull
public String getArtifactDestinationDirectory(PlanKey planKey,
                                                      String version,
                                                      @Nullable
                                                      ImmutableArtifactDefinitionBase artifact)

getArtifactDestinationDirectory

public String getArtifactDestinationDirectory(Artifact artifact)

getArtifactPathSuffix

public static String getArtifactPathSuffix(Artifact artifact)

getArtifactPathSuffix

public static String getArtifactPathSuffix(Artifact artifact,
                                           char separatorChar)

getArtifactPathSuffix

public static String getArtifactPathSuffix(PlanResultKey planResultKey,
                                           @Nullable
                                           ImmutableArtifactDefinitionBase artifact)
_CHAIN_KEY_ / _JOB_KEY_|"shared" / _BUILD_NUMBER_ (/ artifact-name)


getArtifactPathSuffix

public static String getArtifactPathSuffix(PlanResultKey planResultKey,
                                           @Nullable
                                           ImmutableArtifactDefinitionBase artifact,
                                           char separatorChar)
_CHAIN_KEY_ / _JOB_KEY_|"shared" / _BUILD_NUMBER_ (/ artifact-name)


getArtifactRootDirectory

public String getArtifactRootDirectory(PlanKey planKey)

getArtifactDirectory

public String getArtifactDirectory(PlanKey planKey)

getArtifactDirectory

public String getArtifactDirectory(PlanKey planKey,
                                   int buildNumber)

getArtifactDirectory

public String getArtifactDirectory(PlanResultKey planResultKey)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.