Package com.atlassian.bamboo.repository
Interface RepositoryDataEntity
-
- All Superinterfaces:
BambooIdProvider,BambooObject,BambooObjectWithOid,Deletable,Describable,DescriptionProvider,EntityWithOid,ImmutableDeletable,ImmutableEntityWithOid,NameProvider,PluginKeyProvider,ProjectIdProvider,Versionable
- All Known Implementing Classes:
RepositoryDataEntityImpl
public interface RepositoryDataEntity extends Describable, BambooObjectWithOid, Deletable, PluginKeyProvider, ProjectIdProvider, Versionable
Represents repository as persisted in the db.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static intNAME_MAX_LENGTH
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BambooEntityTypegetEntityType()Entity type of this object, used inBambooEntityOid.@Nullable RepositoryDataEntitygetParent()@Nullable LonggetProjectId()@NotNull StringgetXmlData()Combined data in xml format.booleanisGlobal()voidsetGlobal(boolean isGlobal)voidsetParent(@Nullable RepositoryDataEntity parent)voidsetPluginKey(@NotNull String pluginKey)voidsetProjectId(@Nullable Long projectId)voidsetXmlData(@NotNull String xmlData)-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription, setName
-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription, getName
-
Methods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOid
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.plugin.PluginKeyProvider
getPluginKey
-
Methods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
-
-
-
Field Detail
-
NAME_MAX_LENGTH
static final int NAME_MAX_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPluginKey
void setPluginKey(@NotNull @NotNull String pluginKey)
-
getXmlData
@NotNull @NotNull String getXmlData()
Combined data in xml format. Can contain: - old format data - new format data divided into sections: server, branch, cd config,... Stored in one blob to reduce table size.
-
setXmlData
void setXmlData(@NotNull @NotNull String xmlData)
-
isGlobal
boolean isGlobal()
- Returns:
- true if repository is a Global Repository (that is: can be shared among multiple plans)
-
setGlobal
void setGlobal(boolean isGlobal)
-
getParent
@Nullable @Nullable RepositoryDataEntity getParent()
-
setParent
void setParent(@Nullable @Nullable RepositoryDataEntity parent)
-
getEntityType
default BambooEntityType getEntityType()
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
getProjectId
@Nullable @Nullable Long getProjectId()
- Specified by:
getProjectIdin interfaceProjectIdProvider- Returns:
- id of the associated
Projector null if the repository is global
-
setProjectId
void setProjectId(@Nullable @Nullable Long projectId)
-
-