com.atlassian.bamboo.repository
Class RepositoryDefinitionImpl

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

public class RepositoryDefinitionImpl
extends RepositoryDataImpl
implements RepositoryDefinition

See Also:
Serialized Form

Constructor Summary
RepositoryDefinitionImpl(EnvironmentRepositoryLink input)
           
RepositoryDefinitionImpl(long id, java.lang.String pluginKey, java.lang.String name, int position, java.lang.String description, java.lang.String xmlData, boolean markedForDeletion, boolean global)
           
RepositoryDefinitionImpl(PlanRepositoryLink input)
           
RepositoryDefinitionImpl(RepositoryDefinition repositoryDefinition)
          Construct copy of RepositoryDefinition with id set to -1.
 
Method Summary
static com.google.common.base.Function<EnvironmentRepositoryLink,RepositoryDefinitionImpl> fromEnvironmentRepositoryLink()
           
static com.google.common.base.Function<PlanRepositoryLink,RepositoryDefinitionImpl> fromRepositoryLink()
           
 int getPosition()
          Position of repository in the list of repositories defined for Plan.
 
Methods inherited from class com.atlassian.bamboo.repository.RepositoryDataImpl
equals, getConfiguration, getDescription, getId, getName, getPluginKey, getRepository, getWebRepositoryPluginKey, getWebRepositoryViewer, getXmlData, hashCode, isGlobal, isMarkedForDeletion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, getName
 

Constructor Detail

RepositoryDefinitionImpl

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

RepositoryDefinitionImpl

public RepositoryDefinitionImpl(PlanRepositoryLink input)

RepositoryDefinitionImpl

public RepositoryDefinitionImpl(EnvironmentRepositoryLink input)

RepositoryDefinitionImpl

public RepositoryDefinitionImpl(RepositoryDefinition repositoryDefinition)
Construct copy of RepositoryDefinition with id set to -1. (i.e. clone repository)

Parameters:
repositoryDefinition -
Method Detail

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:

fromRepositoryLink

public static com.google.common.base.Function<PlanRepositoryLink,RepositoryDefinitionImpl> fromRepositoryLink()

fromEnvironmentRepositoryLink

public static com.google.common.base.Function<EnvironmentRepositoryLink,RepositoryDefinitionImpl> fromEnvironmentRepositoryLink()


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