public class DecoratedRepositoryDefinition extends Object implements RepositoryDefinition
Constructor and Description |
---|
DecoratedRepositoryDefinition(RepositoryData repositoryData) |
DecoratedRepositoryDefinition(RepositoryDefinition repositoryDefinition) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.configuration.HierarchicalConfiguration |
getConfiguration() |
String |
getDescription() |
long |
getId() |
com.opensymphony.webwork.dispatcher.json.JSONObject |
getJsonObject() |
String |
getName() |
Repository |
getNewRepositoryInstance()
Get new instance of Repository that is not lazy-loaded.
|
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() |
public DecoratedRepositoryDefinition(@NotNull RepositoryData repositoryData)
public DecoratedRepositoryDefinition(@NotNull RepositoryDefinition repositoryDefinition)
@NotNull public String getName()
getName
in interface DescriptionProvider
getName
in interface NameProvider
@Nullable public String getDescription()
getDescription
in interface DescriptionProvider
public Repository getNewRepositoryInstance()
InternalRepositoryData
RepositoryData.getRepository()
should be preferred.getNewRepositoryInstance
in interface InternalRepositoryData
@NotNull public String getPluginKey()
getPluginKey
in interface RepositoryData
public String getWebRepositoryPluginKey()
getWebRepositoryPluginKey
in interface RepositoryData
@NotNull public Repository getRepository()
getRepository
in interface RepositoryData
Repository
defined by this object.@Nullable 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 boolean isMarkedForDeletion()
isMarkedForDeletion
in interface RepositoryData
public boolean isGlobal()
isGlobal
in interface RepositoryData
public long getId()
getId
in interface BambooIdProvider
public int getPosition()
RepositoryDefinition
Plan
.
Default repository is always on the position 0.getPosition
in interface RepositoryDefinition
@NotNull public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
com.opensymphony.webwork.dispatcher.json.JSONException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.