jetbrains.buildServer.artifacts
Class ArtifactDependencyInfo

java.lang.Object
  extended by jetbrains.buildServer.artifacts.BaseArtifactDependency
      extended by jetbrains.buildServer.artifacts.ArtifactDependencyInfo
All Implemented Interfaces:
ArtifactDependency

public class ArtifactDependencyInfo
extends BaseArtifactDependency

Represents artifact dependency on an agent. Contains additional information that is required on an agent, for example, source build configuration name.


Constructor Summary
ArtifactDependencyInfo(ArtifactDependency dependency)
          Constructs dependency info from the specified ArtifactDependency
ArtifactDependencyInfo(java.lang.String sourceInternalId, java.lang.String sourcePaths, RevisionRule revisionRule)
          Represents dependency on one or more artifacts of some build.
 
Method Summary
 java.lang.String getSourceBuildTypeId()
          Returns internal id of build configuration this artifact belongs to
 java.lang.String getSourceExternalId()
          Returns external id of source build configuration
 java.lang.String getSourceName()
          Returns full name of the source build configuration.
 void setSourceBuildTypeId(java.lang.String sourceBuildTypeInternalId)
          Sets new source build configuration id
 void setSourceExternalId(java.lang.String sourceExternalId)
           
 void setSourceName(java.lang.String sourceName)
          Set fullname of the source build configuration
 
Methods inherited from class jetbrains.buildServer.artifacts.BaseArtifactDependency
equals, getReferences, getRevisionRule, getSourcePaths, hashCode, isCleanDestinationFolder, replaceReferences, setCleanDestinationFolder, setRevisionRule, setSourcePaths, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactDependencyInfo

public ArtifactDependencyInfo(@NotNull
                              java.lang.String sourceInternalId,
                              @NotNull
                              java.lang.String sourcePaths,
                              @NotNull
                              RevisionRule revisionRule)
Represents dependency on one or more artifacts of some build.

Parameters:
sourceInternalId - internal id of build configuration where artifacts reside
sourceExternalId - external id of build configuration where artifacts reside
sourcePaths - paths to artifacts in source build configuration
revisionRule - rule by which to select build with artifacts

ArtifactDependencyInfo

public ArtifactDependencyInfo(@NotNull
                              ArtifactDependency dependency)
Constructs dependency info from the specified ArtifactDependency

Parameters:
dependency - dependency
Method Detail

getSourceBuildTypeId

@NotNull
public java.lang.String getSourceBuildTypeId()
Description copied from class: BaseArtifactDependency
Returns internal id of build configuration this artifact belongs to

Specified by:
getSourceBuildTypeId in interface ArtifactDependency
Specified by:
getSourceBuildTypeId in class BaseArtifactDependency
Returns:
internal id of build configuration containing this artifact

setSourceBuildTypeId

public void setSourceBuildTypeId(@NotNull
                                 java.lang.String sourceBuildTypeInternalId)
Description copied from class: BaseArtifactDependency
Sets new source build configuration id

Specified by:
setSourceBuildTypeId in interface ArtifactDependency
Specified by:
setSourceBuildTypeId in class BaseArtifactDependency
Parameters:
sourceBuildTypeInternalId - new source build configuration id

getSourceName

@NotNull
public java.lang.String getSourceName()
Returns full name of the source build configuration.

Returns:
full name of the source build configuration.

setSourceName

public void setSourceName(java.lang.String sourceName)
Set fullname of the source build configuration

Parameters:
sourceName - the source name.

setSourceExternalId

public void setSourceExternalId(@NotNull
                                java.lang.String sourceExternalId)

getSourceExternalId

@NotNull
public java.lang.String getSourceExternalId()
Description copied from interface: ArtifactDependency
Returns external id of source build configuration

Specified by:
getSourceExternalId in interface ArtifactDependency
Specified by:
getSourceExternalId in class BaseArtifactDependency
Returns:
build configuration external id