com.atlassian.bamboo.repository
Class RepositoryDataImpl

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

public class RepositoryDataImpl
extends java.lang.Object
implements RepositoryData

See Also:
Serialized Form

Constructor Summary
RepositoryDataImpl(long id, java.lang.String pluginKey, java.lang.String name, java.lang.String description, java.lang.String xmlData, boolean markedForDeletion, boolean global)
           
RepositoryDataImpl(RepositoryData repositoryData)
           
RepositoryDataImpl(RepositoryDataEntity repositoryData)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true iff the objects represent the same repository
 org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
           
 java.lang.String getDescription()
           
 long getId()
           
 java.lang.String getName()
           
 java.lang.String getPluginKey()
           
 Repository getRepository()
           
 java.lang.String getWebRepositoryPluginKey()
           
 WebRepositoryViewer getWebRepositoryViewer()
           
 java.lang.String getXmlData()
           
 int hashCode()
           
 boolean isGlobal()
           
 boolean isMarkedForDeletion()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryDataImpl

public RepositoryDataImpl(RepositoryDataEntity repositoryData)
Parameters:
repositoryData -

RepositoryDataImpl

public RepositoryDataImpl(long id,
                          java.lang.String pluginKey,
                          java.lang.String name,
                          java.lang.String description,
                          java.lang.String xmlData,
                          boolean markedForDeletion,
                          boolean global)

RepositoryDataImpl

public RepositoryDataImpl(RepositoryData repositoryData)
Method Detail

getId

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

getPluginKey

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

getWebRepositoryPluginKey

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

getXmlData

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

getName

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

getDescription

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

isMarkedForDeletion

public boolean isMarkedForDeletion()
Specified by:
isMarkedForDeletion 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.

isGlobal

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

equals

public boolean equals(java.lang.Object o)
Returns true iff the objects represent the same repository

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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