Package com.atlassian.bamboo.repository
Class RepositoryDefinitionForTest
java.lang.Object
com.atlassian.bamboo.repository.RepositoryDefinitionForTest
- All Implemented Interfaces:
BambooIdProvider,BambooPluginDataIdProvider,ImmutableEntityWithOid,PluginKeyProvider,InternalRepositoryData,RepositoryData,RepositoryDefinition,DescriptionProvider,NameProvider,RepositoryPositionProvider,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryDefinitionForTest(Repository repository, WebRepositoryViewer webRepositoryViewer) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.apache.commons.configuration.HierarchicalConfigurationlonggetId()@NotNull StringgetName()Get new instance of Repository that is not lazy-loaded.getOid()OID assigned to this object.@NotNull StringintPosition of repository in the list of repositories defined forPlan.@NotNull RepositorybooleanisGlobal()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.repository.RepositoryData
getEntityType
-
Constructor Details
-
RepositoryDefinitionForTest
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider
-
getOid
Description copied from interface:ImmutableEntityWithOidOID assigned to this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
getOidin interfaceImmutableEntityWithOid
-
getPluginKey
- Specified by:
getPluginKeyin interfacePluginKeyProvider- Returns:
- full plugin module key
-
getWebRepositoryPluginKey
- Specified by:
getWebRepositoryPluginKeyin interfaceRepositoryData
-
getRepository
- Specified by:
getRepositoryin interfaceRepositoryData- Returns:
- lazily initialized instance of the
Repositorydefined by this object.
-
getNewRepositoryInstance
Description copied from interface:InternalRepositoryDataGet new instance of Repository that is not lazy-loaded. Each call creates a new instance. Use ofRepositoryData.getRepository()should be preferred.- Specified by:
getNewRepositoryInstancein interfaceInternalRepositoryData- Returns:
-
getWebRepositoryViewer
- Specified by:
getWebRepositoryViewerin interfaceRepositoryData
-
getConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()- Specified by:
getConfigurationin interfaceRepositoryData- Returns:
- lazily initialized instance of the
HierarchicalConfigurationof the repository defined by this object.
-
getPosition
public int getPosition()Description copied from interface:RepositoryPositionProviderPosition of repository in the list of repositories defined forPlan. Default repository is always on the position 0.- Specified by:
getPositionin interfaceRepositoryPositionProvider- Returns:
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceRepositoryData
-
getName
- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionProvider
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobalin interfaceRepositoryData- Returns:
- true if repository is a Shared Repository
-