public interface BuildTypeIdentity extends SPersistentEntity
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(SProject project)
Checks whether this build type or template belongs to
the specified project or one of its subprojects, transitively.
|
java.io.File |
getConfigurationFile()
Returns the configuration file where this build type or template is persisted (or will be persisted to).
|
java.lang.String |
getExternalId()
Returns the external identifier.
|
java.lang.String |
getFullName()
Name of the project and name of the identity.
|
java.lang.String |
getInternalId()
Returns the internal identifier.
|
java.lang.String |
getName()
The name of the identity.
|
SProject |
getProject()
Returns the project this build type entity belongs to.
|
void |
setExternalId(ConfigAction cause,
java.lang.String newExternalId)
Changes the external id of this build template or build configuration.
|
void |
setExternalId(java.lang.String newExternalId)
Changes the external id of this build template or build configuration.
|
void |
setName(java.lang.String name)
Sets name of this build type or template
|
getConfigId, getConfigurationFile, getParent, getVersion, markPersisted, persist, persist, remove, schedulePersisting, schedulePersisting
@NotNull SProject getProject()
boolean belongsTo(@NotNull SProject project)
project
- the project to check this configuration to belongs to.@NotNull java.lang.String getInternalId()
@NotNull java.lang.String getExternalId()
getExternalId
in interface SPersistentEntity
void setExternalId(@NotNull java.lang.String newExternalId) throws InvalidIdentifierException, DuplicateExternalIdException, ObsoleteEntityException
This method persists the current entity, and can persist also dependent entities.
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).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)void setExternalId(@NotNull ConfigAction cause, @NotNull java.lang.String newExternalId) throws InvalidIdentifierException, DuplicateExternalIdException, ObsoleteEntityException
This method persists the current entity, and can persist also dependent entities.
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).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)@NotNull java.lang.String getName()
getName
in interface SPersistentEntity
getFullName()
,
setName(String)
void setName(@NotNull java.lang.String name)
name
- the new namegetName()
,
getFullName()
@NotNull java.lang.String getFullName()
getName()
@NotNull java.io.File getConfigurationFile()
getConfigurationFile
in interface SPersistentEntity