com.atlassian.bamboo.repository
Class DecoratedRepositoryDefinition

java.lang.Object
  extended by com.atlassian.bamboo.repository.DecoratedRepositoryDefinition
All Implemented Interfaces:
BambooIdProvider, InternalRepositoryData, RepositoryData, RepositoryDefinition, DescriptionProvider, NameProvider, java.io.Serializable

public class DecoratedRepositoryDefinition
extends java.lang.Object
implements RepositoryDefinition

Decoration of repository used when displaying on the UI.

See Also:
Serialized Form

Constructor Summary
DecoratedRepositoryDefinition(RepositoryData repositoryData)
           
DecoratedRepositoryDefinition(RepositoryDefinition repositoryDefinition)
           
 
Method Summary
 org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
           
 java.lang.String getDescription()
           
 long getId()
           
 com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
           
 java.lang.String getName()
           
 Repository getNewRepositoryInstance()
          Get new instance of Repository that is not lazy-loaded.
 java.lang.String getPluginKey()
           
 int getPosition()
          Position of repository in the list of repositories defined for Plan.
 Repository getRepository()
           
 java.lang.String getWebRepositoryPluginKey()
           
 WebRepositoryViewer getWebRepositoryViewer()
           
 boolean isGlobal()
           
 boolean isMarkedForDeletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedRepositoryDefinition

public DecoratedRepositoryDefinition(@NotNull
                                     RepositoryData repositoryData)

DecoratedRepositoryDefinition

public DecoratedRepositoryDefinition(@NotNull
                                     RepositoryDefinition repositoryDefinition)
Method Detail

getName

@NotNull
public java.lang.String getName()
Specified by:
getName in interface DescriptionProvider
Specified by:
getName in interface NameProvider

getDescription

@Nullable
public java.lang.String getDescription()
Specified by:
getDescription in interface DescriptionProvider

getNewRepositoryInstance

public Repository getNewRepositoryInstance()
Description copied from interface: InternalRepositoryData
Get new instance of Repository that is not lazy-loaded. Each call creates a new instance. Use of RepositoryData.getRepository() should be preferred.

Specified by:
getNewRepositoryInstance in interface InternalRepositoryData
Returns:

getPluginKey

@NotNull
public java.lang.String getPluginKey()
Specified by:
getPluginKey in interface RepositoryData

getWebRepositoryPluginKey

public java.lang.String getWebRepositoryPluginKey()
Specified by:
getWebRepositoryPluginKey in interface RepositoryData

getRepository

@NotNull
public Repository getRepository()
Specified by:
getRepository in interface RepositoryData
Returns:
lazily initialized instance of the Repository defined by this object.

getWebRepositoryViewer

@Nullable
public WebRepositoryViewer getWebRepositoryViewer()
Specified by:
getWebRepositoryViewer in interface RepositoryData

getConfiguration

@NotNull
public org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
Specified by:
getConfiguration in interface RepositoryData
Returns:
lazily initialized instance of the HierarchicalConfiguration of the repository defined by this object.

isMarkedForDeletion

public boolean isMarkedForDeletion()
Specified by:
isMarkedForDeletion in interface RepositoryData

isGlobal

public boolean isGlobal()
Specified by:
isGlobal in interface RepositoryData
Returns:
true if repository is a Shared Repository

getId

public long getId()
Specified by:
getId in interface BambooIdProvider

getPosition

public int getPosition()
Description copied from interface: RepositoryDefinition
Position of repository in the list of repositories defined for Plan. Default repository is always on the position 0.

Specified by:
getPosition in interface RepositoryDefinition
Returns:

getJsonObject

@NotNull
public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
                                                                  throws com.opensymphony.webwork.dispatcher.json.JSONException
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.