Package com.atlassian.bamboo.repository
Class RepositoryDataEntityImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.core.BambooEntityWithOid
-
- com.atlassian.bamboo.repository.RepositoryDataEntityImpl
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,BambooObjectWithOid
,EntityWithOid
,ImmutableEntityWithOid
,ProjectIdProvider
,Deletable
,Describable
,ImmutableDeletable
,PluginKeyProvider
,RepositoryDataEntity
,DescriptionProvider
,NameProvider
,Versionable
,Cloneable
@Entity public class RepositoryDataEntityImpl extends BambooEntityWithOid implements RepositoryDataEntity
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
oid
-
Fields inherited from interface com.atlassian.bamboo.repository.RepositoryDataEntity
NAME_MAX_LENGTH
-
-
Constructor Summary
Constructors Constructor Description RepositoryDataEntityImpl()
RepositoryDataEntityImpl(RepositoryDataEntity source)
RepositoryDataEntityImpl(String pluginKey, String name, String description, String xmlData, boolean markedForDeletion, boolean global, RepositoryDataEntity parent, Long projectId, Long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
@NotNull String
getName()
@Nullable RepositoryDataEntity
getParent()
@NotNull String
getPluginKey()
@Nullable Long
getProjectId()
@NotNull Long
getVersion()
Returns the version number of this object.@NotNull String
getXmlData()
Combined data in xml format.boolean
isGlobal()
boolean
isMarkedForDeletion()
void
setDescription(String description)
void
setGlobal(boolean isGlobal)
void
setMarkedForDeletion(boolean markedForDeletion)
void
setName(@NotNull String name)
void
setParent(@Nullable RepositoryDataEntity parent)
void
setPluginKey(@NotNull String pluginKey)
void
setProjectId(Long projectId)
void
setVersion(Long version)
void
setXmlData(@NotNull String xmlData)
-
Methods inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
getOid, setOid
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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.core.EntityWithOid
setOid
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.repository.RepositoryDataEntity
getEntityType
-
-
-
-
Constructor Detail
-
RepositoryDataEntityImpl
public RepositoryDataEntityImpl(String pluginKey, String name, String description, String xmlData, boolean markedForDeletion, boolean global, RepositoryDataEntity parent, Long projectId, Long version)
-
RepositoryDataEntityImpl
public RepositoryDataEntityImpl(RepositoryDataEntity source)
-
RepositoryDataEntityImpl
public RepositoryDataEntityImpl()
-
-
Method Detail
-
getPluginKey
@NotNull public @NotNull String getPluginKey()
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
setPluginKey
public void setPluginKey(@NotNull @NotNull String pluginKey)
- Specified by:
setPluginKey
in interfaceRepositoryDataEntity
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
-
setName
public void setName(@NotNull @NotNull String name)
- Specified by:
setName
in interfaceDescribable
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceDescriptionProvider
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceDescribable
-
getXmlData
@NotNull public @NotNull String getXmlData()
Description copied from interface:RepositoryDataEntity
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.- Specified by:
getXmlData
in interfaceRepositoryDataEntity
-
setXmlData
public void setXmlData(@NotNull @NotNull String xmlData)
- Specified by:
setXmlData
in interfaceRepositoryDataEntity
-
isMarkedForDeletion
public boolean isMarkedForDeletion()
- Specified by:
isMarkedForDeletion
in interfaceImmutableDeletable
- Returns:
- Whether or not the Object has been marked for deletion
-
setMarkedForDeletion
public void setMarkedForDeletion(boolean markedForDeletion)
- Specified by:
setMarkedForDeletion
in interfaceDeletable
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobal
in interfaceRepositoryDataEntity
- Returns:
- true if repository is a Global Repository (that is: can be shared among multiple plans)
-
setGlobal
public void setGlobal(boolean isGlobal)
- Specified by:
setGlobal
in interfaceRepositoryDataEntity
-
getParent
@Nullable public @Nullable RepositoryDataEntity getParent()
- Specified by:
getParent
in interfaceRepositoryDataEntity
-
setParent
public void setParent(@Nullable @Nullable RepositoryDataEntity parent)
- Specified by:
setParent
in interfaceRepositoryDataEntity
-
getProjectId
@Nullable public @Nullable Long getProjectId()
- Specified by:
getProjectId
in interfaceProjectIdProvider
- Specified by:
getProjectId
in interfaceRepositoryDataEntity
- Returns:
- id of the associated
Project
or null if the repository is global
-
setProjectId
public void setProjectId(Long projectId)
- Specified by:
setProjectId
in interfaceRepositoryDataEntity
-
getVersion
@NotNull public @NotNull Long getVersion()
Description copied from interface:Versionable
Returns the version number of this object.- Specified by:
getVersion
in interfaceVersionable
- Returns:
- the version number
-
setVersion
public void setVersion(Long version)
-
-