Package com.atlassian.bamboo.repository
Class RepositoryDefinitionForTest
java.lang.Object
com.atlassian.bamboo.repository.RepositoryDefinitionForTest
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,PluginKeyProvider
,InternalRepositoryData
,RepositoryData
,RepositoryDefinition
,DescriptionProvider
,NameProvider
,RepositoryPositionProvider
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionRepositoryDefinitionForTest
(Repository repository, WebRepositoryViewer webRepositoryViewer) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.apache.commons.configuration.HierarchicalConfiguration
long
getId()
@NotNull String
getName()
Get new instance of Repository that is not lazy-loaded.getOid()
OID assigned to this object.@NotNull String
int
Position of repository in the list of repositories defined forPlan
.@NotNull Repository
boolean
isGlobal()
boolean
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 Details
-
RepositoryDefinitionForTest
-
-
Method Details
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
-
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
-
getPluginKey
- Specified by:
getPluginKey
in interfacePluginKeyProvider
- Returns:
- full plugin module key
-
getWebRepositoryPluginKey
- Specified by:
getWebRepositoryPluginKey
in interfaceRepositoryData
-
getRepository
- Specified by:
getRepository
in interfaceRepositoryData
- Returns:
- lazily initialized instance of the
Repository
defined by this object.
-
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:
-
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.
-
getPosition
public int getPosition()Description copied from interface:RepositoryPositionProvider
Position of repository in the list of repositories defined forPlan
. Default repository is always on the position 0.- Specified by:
getPosition
in interfaceRepositoryPositionProvider
- Returns:
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceRepositoryData
-
getName
- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
-
getDescription
- Specified by:
getDescription
in interfaceDescriptionProvider
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobal
in interfaceRepositoryData
- Returns:
- true if repository is a Shared Repository
-