jetbrains.buildServer.serverSide.dependency
Interface Dependency

All Superinterfaces:
DependencyOptions, OptionSupport, XmlExternalizable

public interface Dependency
extends DependencyOptions, OptionSupport, XmlExternalizable

This class describes a dependency from one build configuration to another build configuration. It contains and manages attributes of such a dependency.

Author:
kir
See Also:
Dependent, SBuildType

Field Summary
 
Fields inherited from interface jetbrains.buildServer.serverSide.dependency.DependencyOptions
RUN_BUILD_IF_DEPENDENCY_FAILED, RUN_BUILD_ON_THE_SAME_AGENT, TAKE_STARTED_BUILD_WITH_SAME_REVISIONS, TAKE_SUCCESSFUL_BUILDS_ONLY
 
Method Summary
 Dependency createCopy()
          Creates copy of this dependency
 SBuildType getDependOn()
          Returns the build configuration we're depend on.
 java.lang.String getDependOnExternalId()
           
 java.lang.String getDependOnId()
           
 
Methods inherited from interface jetbrains.buildServer.util.OptionSupport
getChangedOptions, getOption, setOption
 
Methods inherited from interface jetbrains.buildServer.XmlExternalizable
writeTo
 

Method Detail

getDependOnId

@NotNull
java.lang.String getDependOnId()
Returns:
internal id of build configuration we depend on

getDependOnExternalId

@NotNull
java.lang.String getDependOnExternalId()
Returns:
external id of build configuration we depend on

getDependOn

@Nullable
SBuildType getDependOn()
                       throws AccessDeniedException
Returns the build configuration we're depend on. May return null if this dependency references non-existing configuration

Returns:
see above
Throws:
AccessDeniedException - when requestor doesn't have permission to the original build configuration

createCopy

Dependency createCopy()
Creates copy of this dependency

Returns:
see above