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
oidFields inherited from interface com.atlassian.bamboo.repository.RepositoryDataEntity
NAME_MAX_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryDataEntityImpl(String pluginKey, String name, String description, String xmlData, boolean markedForDeletion, boolean global, RepositoryDataEntity parent, Long projectId, Long version) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetName()@Nullable RepositoryDataEntity@NotNull String@Nullable Long@NotNull LongReturns the version number of this object.@NotNull StringCombined data in xml format.booleanisGlobal()booleanvoidsetDescription(String description) voidsetGlobal(boolean isGlobal) voidsetMarkedForDeletion(boolean markedForDeletion) voidvoidsetParent(@Nullable RepositoryDataEntity parent) voidsetPluginKey(@NotNull String pluginKey) voidsetProjectId(Long projectId) voidsetVersion(Long version) voidsetXmlData(@NotNull String xmlData) Methods inherited from class com.atlassian.bamboo.core.BambooEntityWithOid
getOid, setOidMethods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.repository.RepositoryDataEntity
getEntityType
-
Constructor Details
-
RepositoryDataEntityImpl
-
RepositoryDataEntityImpl
-
RepositoryDataEntityImpl
public RepositoryDataEntityImpl()
-
-
Method Details
-
getPluginKey
- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
setPluginKey
- Specified by:
setPluginKeyin interfaceRepositoryDataEntity
-
getName
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider
-
setName
- Specified by:
setNamein interfaceDescribable
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
setDescription
- Specified by:
setDescriptionin interfaceDescribable
-
getXmlData
Description copied from interface:RepositoryDataEntityCombined 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:
getXmlDatain interfaceRepositoryDataEntity
-
setXmlData
- Specified by:
setXmlDatain interfaceRepositoryDataEntity
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceImmutableDeletable- Returns:
- Whether or not the Object has been marked for deletion
-
setMarkedForDeletion
public void setMarkedForDeletion(boolean markedForDeletion) - Specified by:
setMarkedForDeletionin interfaceDeletable
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobalin 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:
setGlobalin interfaceRepositoryDataEntity
-
getParent
- Specified by:
getParentin interfaceRepositoryDataEntity
-
setParent
- Specified by:
setParentin interfaceRepositoryDataEntity
-
getProjectId
- Specified by:
getProjectIdin interfaceProjectIdProvider- Specified by:
getProjectIdin interfaceRepositoryDataEntity- Returns:
- id of the associated
Projector null if the repository is global
-
setProjectId
- Specified by:
setProjectIdin interfaceRepositoryDataEntity
-
getVersion
Description copied from interface:VersionableReturns the version number of this object.- Specified by:
getVersionin interfaceVersionable- Returns:
- the version number
-
setVersion
-