Package jetbrains.buildServer.serverSide
Interface BuildTypeIdentity
-
- All Superinterfaces:
SPersistentEntity
- All Known Subinterfaces:
BuildTypeEx,BuildTypeIdentityEx,BuildTypeTemplate,BuildTypeTemplateEx,RemoteBuildType,RemoteBuildTypeEx,SBuildType
- All Known Implementing Classes:
BaseBuildTypeIdentity,BuildTypeImpl,BuildTypeTemplateImpl,DummyBuildType,EditableBuildTypeCopy,EditableTemplateCopy,InaccessibleTemplate,MockBuildType,RemoteBuildTypeImpl,SecuredBuildType,SecuredBuildTypeTemplate
public interface BuildTypeIdentity extends SPersistentEntity
Base interface for build template and build configurations, containing only identifiers and related things. Doesn't contain build settings.- Since:
- 8.0
- Author:
- Leonid Bushuev from JetBrains
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbelongsTo(SProject project)Checks whether this build type or template belongs to the specified project or one of its subprojects, transitively.FilegetConfigurationFile()Returns the configuration file where this build type or template is persisted (or will be persisted to).StringgetExternalId()Returns the external identifier.StringgetFullName()Name of the project and name of the identity.StringgetInternalId()Returns the internal identifier.StringgetName()The name of the identity.SProjectgetProject()Returns the project this build type entity belongs to.voidsetExternalId(String newExternalId)Changes the external id of this build template or build configuration.voidsetExternalId(ConfigAction cause, String newExternalId)Changes the external id of this build template or build configuration.voidsetName(String name)Sets name of this build type or template-
Methods inherited from interface jetbrains.buildServer.serverSide.SPersistentEntity
createConfigAction, getConfigId, getConfigurationFile, getParent, getReadOnlyReason, getVersion, isReadOnly, isVirtual, markPersisted, persist, persist, remove, schedulePersisting, schedulePersisting, scheduleRemove
-
-
-
-
Method Detail
-
getProject
@NotNull SProject getProject()
Returns the project this build type entity belongs to.- Returns:
- the project this build type entity belongs to.
-
belongsTo
boolean belongsTo(@NotNull SProject project)Checks whether this build type or template belongs to the specified project or one of its subprojects, transitively.- Parameters:
project- the project to check this configuration to belongs to.- Returns:
- true if belongs.
- Since:
- 8.1
-
getInternalId
@NotNull String getInternalId()
Returns the internal identifier.- Returns:
- the internal identifier.
-
getExternalId
@NotNull String getExternalId()
Returns the external identifier.- Specified by:
getExternalIdin interfaceSPersistentEntity- Returns:
- the external identifier.
-
setExternalId
void setExternalId(@NotNull String newExternalId) throws InvalidIdentifierException, DuplicateExternalIdException, ObsoleteEntityException, ReadOnlyEntityExceptionChanges the external id of this build template or build configuration.This method persists the current entity, and can persist also dependent entities.
- Parameters:
newExternalId- new external identifier. Must be unique (case insensitively) in the scope of all build templates and build configurations (in other words, two projects with build configurations with same external id are not allowed).- Throws:
InvalidIdentifierException- wrong identifierDuplicateExternalIdException- a build template or a build configurationObsoleteEntityException- when build type/template is not the same as the one in the project model (since 9.1.2)ReadOnlyEntityException
-
setExternalId
void setExternalId(@NotNull ConfigAction cause, @NotNull String newExternalId) throws InvalidIdentifierException, DuplicateExternalIdException, ObsoleteEntityException, ReadOnlyEntityExceptionChanges the external id of this build template or build configuration.This method persists the current entity, and can persist also dependent entities.
- Parameters:
cause- configuration action caused the changenewExternalId- new external identifier. Must be unique (case insensitively) in the scope of all build templates and build configurations (in other words, two projects with build configurations with same external id are not allowed).- Throws:
InvalidIdentifierException- wrong identifierDuplicateExternalIdException- a build template or a build configurationObsoleteEntityException- when build type/template is not the same as the one in the project model (since 9.1.2)ReadOnlyEntityException- Since:
- 9.0
-
getName
@NotNull String getName()
The name of the identity.- Specified by:
getNamein interfaceSPersistentEntity- Returns:
- see above.
- See Also:
getFullName(),setName(String)
-
setName
void setName(@NotNull String name) throws ReadOnlyEntityExceptionSets name of this build type or template- Parameters:
name- the new name- Throws:
ReadOnlyEntityException- See Also:
getName(),getFullName()
-
getFullName
@NotNull String getFullName()
Name of the project and name of the identity.- See Also:
getName()
-
getConfigurationFile
@NotNull File getConfigurationFile()
Returns the configuration file where this build type or template is persisted (or will be persisted to).- Specified by:
getConfigurationFilein interfaceSPersistentEntity- Returns:
- see above.
- Since:
- 8.0
-
-