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
ConstructorDescriptionRepositoryDataEntityImpl
(String pluginKey, String name, String description, String xmlData, boolean markedForDeletion, boolean global, RepositoryDataEntity parent, Long projectId, Long version) -
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
@Nullable RepositoryDataEntity
@NotNull String
@Nullable Long
@NotNull Long
Returns the version number of this object.@NotNull String
Combined data in xml format.boolean
isGlobal()
boolean
void
setDescription
(String description) void
setGlobal
(boolean isGlobal) void
setMarkedForDeletion
(boolean markedForDeletion) void
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 Details
-
RepositoryDataEntityImpl
-
RepositoryDataEntityImpl
-
RepositoryDataEntityImpl
public RepositoryDataEntityImpl()
-
-
Method Details
-
getPluginKey
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
setPluginKey
- Specified by:
setPluginKey
in interfaceRepositoryDataEntity
-
getName
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
-
setName
- Specified by:
setName
in interfaceDescribable
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
-
setDescription
- Specified by:
setDescription
in interfaceDescribable
-
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
- 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
- Specified by:
getParent
in interfaceRepositoryDataEntity
-
setParent
- Specified by:
setParent
in interfaceRepositoryDataEntity
-
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
- Specified by:
setProjectId
in interfaceRepositoryDataEntity
-
getVersion
Description copied from interface:Versionable
Returns the version number of this object.- Specified by:
getVersion
in interfaceVersionable
- Returns:
- the version number
-
setVersion
-