com.atlassian.bamboo.fileserver
Class ArtifactPaths

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

public class ArtifactPaths
extends java.lang.Object


Field Summary
static java.lang.String GLOBAL_STORAGE_DIR
           
static java.lang.String SHARED_ARTIFACTS_DIR
           
 
Constructor Summary
ArtifactPaths(java.io.File rootStorageDirectory)
           
ArtifactPaths(java.lang.String rootStorageDirectory, char separatorChar)
           
 
Method Summary
 java.lang.String getArtifactDestinationDirectory(Artifact artifact)
           
 java.lang.String getArtifactDestinationDirectory(PlanKey planKey, java.lang.String version, ImmutableArtifactDefinitionBase artifact)
           
 java.lang.String getArtifactDestinationDirectory(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifact)
           
 java.lang.String getArtifactDirectory(PlanKey planKey)
           
 java.lang.String getArtifactDirectory(PlanKey planKey, int buildNumber)
           
 java.lang.String getArtifactDirectory(PlanResultKey planResultKey)
           
static java.lang.String getArtifactPathSuffix(Artifact artifact)
           
static java.lang.String getArtifactPathSuffix(Artifact artifact, char separatorChar)
           
static java.lang.String getArtifactPathSuffix(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifact)
          _CHAIN_KEY_ / _JOB_KEY_|"shared" / _BUILD_NUMBER_ (/ artifact-name)
static java.lang.String getArtifactPathSuffix(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifact, char separatorChar)
          _CHAIN_KEY_ / _JOB_KEY_|"shared" / _BUILD_NUMBER_ (/ artifact-name)
 java.lang.String getRootStorageDirectory()
           
 
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 java.lang.String SHARED_ARTIFACTS_DIR
See Also:
Constant Field Values

GLOBAL_STORAGE_DIR

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

ArtifactPaths

public ArtifactPaths(@NotNull
                     java.io.File rootStorageDirectory)

ArtifactPaths

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

getRootStorageDirectory

public java.lang.String getRootStorageDirectory()

getArtifactDestinationDirectory

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

getArtifactDestinationDirectory

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

getArtifactDestinationDirectory

public java.lang.String getArtifactDestinationDirectory(Artifact artifact)

getArtifactPathSuffix

public static java.lang.String getArtifactPathSuffix(Artifact artifact)

getArtifactPathSuffix

public static java.lang.String getArtifactPathSuffix(Artifact artifact,
                                                     char separatorChar)

getArtifactPathSuffix

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


getArtifactPathSuffix

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


getArtifactDirectory

public java.lang.String getArtifactDirectory(PlanKey planKey)

getArtifactDirectory

public java.lang.String getArtifactDirectory(PlanKey planKey,
                                             int buildNumber)

getArtifactDirectory

public java.lang.String getArtifactDirectory(PlanResultKey planResultKey)


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