com.atlassian.jira.vcs
Interface RepositoryManager

All Known Implementing Classes:
DefaultRepositoryManager

public interface RepositoryManager


Field Summary
static java.lang.String CVS_TYPE
           
static long VCS_SERVICE_DELAY
           
static java.lang.String VCS_SERVICE_NAME
           
static java.lang.String[] VCS_TYPES
           
 
Method Summary
 Repository createRepository(java.lang.String type, java.lang.String name, java.lang.String description, java.util.Properties properties)
           
 java.util.Collection getProjectsForRepository(Repository repository)
           
 java.util.Collection getRepositories()
           
 java.util.Collection getRepositoriesForProject(GenericValue project)
           
 Repository getRepository(java.lang.Long id)
           
 boolean isValidType(java.lang.String type)
           
 void refresh()
           
 void removeRepository(java.lang.Long id)
           
 void setProjectRepositories(GenericValue project, java.util.Collection repositoryIds)
           
 boolean updateRepositories()
          Tries to update (e.g.
 void updateRepository(java.lang.Long id, java.lang.String type, java.lang.String name, java.lang.String description, java.util.Properties properties)
          Uodates the properties of the repository with the given id.
 

Field Detail

CVS_TYPE

public static final java.lang.String CVS_TYPE
See Also:
Constant Field Values

VCS_TYPES

public static final java.lang.String[] VCS_TYPES

VCS_SERVICE_NAME

public static final java.lang.String VCS_SERVICE_NAME
See Also:
Constant Field Values

VCS_SERVICE_DELAY

public static final long VCS_SERVICE_DELAY
See Also:
Constant Field Values
Method Detail

getRepositoriesForProject

public java.util.Collection getRepositoriesForProject(GenericValue project)
                                               throws GenericEntityException
Throws:
GenericEntityException

setProjectRepositories

public void setProjectRepositories(GenericValue project,
                                   java.util.Collection repositoryIds)
                            throws GenericEntityException
Throws:
GenericEntityException

getProjectsForRepository

public java.util.Collection getProjectsForRepository(Repository repository)
                                              throws GenericEntityException
Throws:
GenericEntityException

getRepositories

public java.util.Collection getRepositories()
                                     throws GenericEntityException
Throws:
GenericEntityException

getRepository

public Repository getRepository(java.lang.Long id)
                         throws GenericEntityException
Throws:
GenericEntityException

isValidType

public boolean isValidType(java.lang.String type)

removeRepository

public void removeRepository(java.lang.Long id)
                      throws java.lang.Exception
Throws:
java.lang.Exception

updateRepository

public void updateRepository(java.lang.Long id,
                             java.lang.String type,
                             java.lang.String name,
                             java.lang.String description,
                             java.util.Properties properties)
                      throws GenericEntityException
Uodates the properties of the repository with the given id.

Parameters:
id -
type -
name -
description -
properties -
Throws:
GenericEntityException

updateRepositories

public boolean updateRepositories()
                           throws GenericEntityException
Tries to update (e.g. cvs up)all the repositories in the system. This method returns true if ALL repositories were potentially updated without a problem, or false if exception occurred.

Returns:
Throws:
GenericEntityException

createRepository

public Repository createRepository(java.lang.String type,
                                   java.lang.String name,
                                   java.lang.String description,
                                   java.util.Properties properties)
                            throws java.lang.Exception
Throws:
java.lang.Exception

refresh

public void refresh()
             throws GenericEntityException
Throws:
GenericEntityException