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 int
NAME_MAX_LENGTH
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BambooEntityType
getEntityType()
Entity type of this object, used inBambooEntityOid
.@Nullable RepositoryDataEntity
getParent()
@Nullable Long
getProjectId()
@NotNull String
getXmlData()
Combined data in xml format.boolean
isGlobal()
void
setGlobal(boolean isGlobal)
void
setParent(@Nullable RepositoryDataEntity parent)
void
setPluginKey(@NotNull String pluginKey)
void
setProjectId(@Nullable Long projectId)
void
setXmlData(@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:ImmutableEntityWithOid
Entity type of this object, used inBambooEntityOid
.- Specified by:
getEntityType
in interfaceImmutableEntityWithOid
-
getProjectId
@Nullable @Nullable Long getProjectId()
- Specified by:
getProjectId
in interfaceProjectIdProvider
- Returns:
- id of the associated
Project
or null if the repository is global
-
setProjectId
void setProjectId(@Nullable @Nullable Long projectId)
-
-