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
-
Method Summary
Modifier and TypeMethodDescriptiondefault BambooEntityType
Entity type of this object, used inBambooEntityOid
.@Nullable RepositoryDataEntity
@Nullable Long
@NotNull String
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 Details
-
NAME_MAX_LENGTH
static final int NAME_MAX_LENGTH- See Also:
-
-
Method Details
-
setPluginKey
-
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
-
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
-
setParent
-
getEntityType
Description copied from interface:ImmutableEntityWithOid
Entity type of this object, used inBambooEntityOid
.- Specified by:
getEntityType
in interfaceImmutableEntityWithOid
-
getProjectId
- Specified by:
getProjectId
in interfaceProjectIdProvider
- Returns:
- id of the associated
Project
or null if the repository is global
-
setProjectId
-