public class RepositoryDefinitionForTest extends Object implements RepositoryDefinition
Constructor and Description |
---|
RepositoryDefinitionForTest(Repository repository,
WebRepositoryViewer webRepositoryViewer) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.configuration.HierarchicalConfiguration |
getConfiguration() |
String |
getDescription() |
long |
getId() |
String |
getName() |
Repository |
getNewRepositoryInstance()
Get new instance of Repository that is not lazy-loaded.
|
BambooEntityOid |
getOid()
OID assigned to this object.
|
String |
getPluginKey() |
int |
getPosition()
Position of repository in the list of repositories defined for
Plan . |
Repository |
getRepository() |
String |
getWebRepositoryPluginKey() |
WebRepositoryViewer |
getWebRepositoryViewer() |
boolean |
isGlobal() |
boolean |
isMarkedForDeletion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityType
public RepositoryDefinitionForTest(Repository repository, WebRepositoryViewer webRepositoryViewer)
public long getId()
getId
in interface BambooIdProvider
public BambooEntityOid getOid()
ImmutableEntityWithOid
BambooEntityOid.getEntityType()
should be the same as this object's
ImmutableEntityWithOid.getEntityType()
.getOid
in interface ImmutableEntityWithOid
@NotNull public String getPluginKey()
getPluginKey
in interface PluginKeyProvider
public String getWebRepositoryPluginKey()
getWebRepositoryPluginKey
in interface RepositoryData
@NotNull public Repository getRepository()
getRepository
in interface RepositoryData
Repository
defined by this object.public Repository getNewRepositoryInstance()
InternalRepositoryData
RepositoryData.getRepository()
should be preferred.getNewRepositoryInstance
in interface InternalRepositoryData
public WebRepositoryViewer getWebRepositoryViewer()
getWebRepositoryViewer
in interface RepositoryData
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
getConfiguration
in interface RepositoryData
HierarchicalConfiguration
of the repository defined by this
object.public int getPosition()
RepositoryPositionProvider
Plan
.
Default repository is always on the position 0.getPosition
in interface RepositoryPositionProvider
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface RepositoryData
@NotNull public String getName()
getName
in interface DescriptionProvider
getName
in interface NameProvider
public String getDescription()
getDescription
in interface DescriptionProvider
public boolean isGlobal()
isGlobal
in interface RepositoryData
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.