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, waitgetEntityTypepublic RepositoryDefinitionForTest(Repository repository, WebRepositoryViewer webRepositoryViewer)
public long getId()
getId in interface BambooIdProviderpublic BambooEntityOid getOid()
ImmutableEntityWithOidBambooEntityOid.getEntityType() should be the same as this object's
ImmutableEntityWithOid.getEntityType().getOid in interface ImmutableEntityWithOid@NotNull public String getPluginKey()
getPluginKey in interface PluginKeyProviderpublic String getWebRepositoryPluginKey()
getWebRepositoryPluginKey in interface RepositoryData@NotNull public Repository getRepository()
getRepository in interface RepositoryDataRepository defined by this object.public Repository getNewRepositoryInstance()
InternalRepositoryDataRepositoryData.getRepository() should be preferred.getNewRepositoryInstance in interface InternalRepositoryDatapublic WebRepositoryViewer getWebRepositoryViewer()
getWebRepositoryViewer in interface RepositoryData@NotNull public org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
getConfiguration in interface RepositoryDataHierarchicalConfiguration of the repository defined by this
object.public int getPosition()
RepositoryPositionProviderPlan.
Default repository is always on the position 0.getPosition in interface RepositoryPositionProviderpublic boolean isMarkedForDeletion()
isMarkedForDeletion in interface RepositoryData@NotNull public String getName()
getName in interface DescriptionProvidergetName in interface NameProviderpublic String getDescription()
getDescription in interface DescriptionProviderpublic boolean isGlobal()
isGlobal in interface RepositoryDataCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.