Package com.atlassian.bamboo.repository
Class RepositoryDataImpl
- java.lang.Object
-
- com.atlassian.bamboo.repository.RepositoryDataImpl
-
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,PluginKeyProvider
,InternalRepositoryData
,RepositoryData
,DescriptionProvider
,NameProvider
,Serializable
- Direct Known Subclasses:
RepositoryDefinitionImpl
public class RepositoryDataImpl extends Object implements RepositoryData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryDataImpl(RepositoryDataEntity entity)
Deprecated.since 5.14 useRepositoryDataImpl(VcsRepositoryData)
RepositoryDataImpl(VcsRepositoryData delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull org.apache.commons.configuration.HierarchicalConfiguration
getConfiguration()
@Nullable String
getDescription()
long
getId()
@NotNull String
getName()
Repository
getNewRepositoryInstance()
Get new instance of Repository that is not lazy-loaded.BambooEntityOid
getOid()
OID assigned to this object.VcsRepositoryData
getOriginalData()
@NotNull String
getPluginKey()
@NotNull Repository
getRepository()
@NotNull String
getWebRepositoryPluginKey()
@NotNull WebRepositoryViewer
getWebRepositoryViewer()
boolean
isGlobal()
boolean
isMarkedForDeletion()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.repository.RepositoryData
getEntityType
-
-
-
-
Constructor Detail
-
RepositoryDataImpl
@Deprecated public RepositoryDataImpl(RepositoryDataEntity entity)
Deprecated.since 5.14 useRepositoryDataImpl(VcsRepositoryData)
-
RepositoryDataImpl
public RepositoryDataImpl(VcsRepositoryData delegate)
-
-
Method Detail
-
getPluginKey
@NotNull public @NotNull String getPluginKey()
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
getWebRepositoryPluginKey
@NotNull public @NotNull String getWebRepositoryPluginKey()
- Specified by:
getWebRepositoryPluginKey
in interfaceRepositoryData
-
getRepository
@NotNull public @NotNull Repository getRepository()
- Specified by:
getRepository
in interfaceRepositoryData
- Returns:
- lazily initialized instance of the
Repository
defined by this object.
-
getWebRepositoryViewer
@NotNull public @NotNull WebRepositoryViewer getWebRepositoryViewer()
- Specified by:
getWebRepositoryViewer
in interfaceRepositoryData
-
getConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
- Specified by:
getConfiguration
in interfaceRepositoryData
- Returns:
- lazily initialized instance of the
HierarchicalConfiguration
of the repository defined by this object.
-
isMarkedForDeletion
public boolean isMarkedForDeletion()
- Specified by:
isMarkedForDeletion
in interfaceRepositoryData
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobal
in interfaceRepositoryData
- Returns:
- true if repository is a Shared Repository
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
getOid
public BambooEntityOid getOid()
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
-
getNewRepositoryInstance
public Repository getNewRepositoryInstance()
Description copied from interface:InternalRepositoryData
Get new instance of Repository that is not lazy-loaded. Each call creates a new instance. Use ofRepositoryData.getRepository()
should be preferred.- Specified by:
getNewRepositoryInstance
in interfaceInternalRepositoryData
- Returns:
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
-
getDescription
@Nullable public @Nullable String getDescription()
- Specified by:
getDescription
in interfaceDescriptionProvider
-
getOriginalData
public VcsRepositoryData getOriginalData()
-
-