com.atlassian.bamboo.repository
Class DecoratedRepositoryDefinition

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

public class DecoratedRepositoryDefinition
extends RepositoryDefinitionImpl

Decoration of repository used when displaying on the UI.

See Also:
Serialized Form

Constructor Summary
DecoratedRepositoryDefinition(RepositoryData repositoryData)
           
DecoratedRepositoryDefinition(RepositoryDefinition repositoryDefinition)
           
 
Method Summary
 com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
           
 java.lang.String getName()
           
 boolean isValid()
          TODO: this convention was taken from Tasks - validate if we still need that
 
Methods inherited from class com.atlassian.bamboo.repository.RepositoryDefinitionImpl
fromRepositoryLink, getPosition
 
Methods inherited from class com.atlassian.bamboo.repository.RepositoryDataImpl
equals, getConfiguration, getDescription, getId, getPluginKey, getRepository, getWebRepositoryPluginKey, getWebRepositoryViewer, getXmlData, hashCode, isGlobal, isMarkedForDeletion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.repository.RepositoryData
getConfiguration, getPluginKey, getRepository, getWebRepositoryPluginKey, getWebRepositoryViewer, getXmlData, isGlobal, isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
 

Constructor Detail

DecoratedRepositoryDefinition

public DecoratedRepositoryDefinition(@NotNull
                                     RepositoryData repositoryData)

DecoratedRepositoryDefinition

public DecoratedRepositoryDefinition(@NotNull
                                     RepositoryDefinition repositoryDefinition)
Method Detail

isValid

public boolean isValid()
TODO: this convention was taken from Tasks - validate if we still need that


getName

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

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 © 2012 Atlassian. All Rights Reserved.