com.atlassian.jira.vcs
Interface RepositoryManager

All Known Implementing Classes:
DefaultRepositoryManager

public interface RepositoryManager


Field Summary
static String CVS_TYPE
           
static long VCS_SERVICE_DELAY
           
static String VCS_SERVICE_NAME
           
static String[] VCS_TYPES
           
 
Method Summary
 Repository createRepository(String type, String name, String description, Properties properties)
           
 Collection getProjectsForRepository(Repository repository)
           
 com.opensymphony.module.propertyset.PropertySet getPropertySet(org.ofbiz.core.entity.GenericValue versionControlGV)
          Retrieves a proeprty set for a repository given repository's GenericValue
 Collection getRepositories()
           
 Collection getRepositoriesForProject(org.ofbiz.core.entity.GenericValue project)
           
 Repository getRepository(Long id)
           
 Repository getRepository(String name)
          Retrieves the repository by name
 boolean isValidType(String type)
           
 void refresh()
           
 void removeRepository(Long id)
           
 void setProjectRepositories(org.ofbiz.core.entity.GenericValue project, Collection repositoryIds)
           
 boolean updateRepositories()
          Tries to update (e.g.
 void updateRepository(Long id, String type, String name, String description, Properties properties)
          Updates the properties of the repository with the given id.
 

Field Detail

CVS_TYPE

public static final String CVS_TYPE
See Also:
Constant Field Values

VCS_TYPES

public static final String[] VCS_TYPES

VCS_SERVICE_NAME

public static final 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 Collection getRepositoriesForProject(org.ofbiz.core.entity.GenericValue project)
                                     throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

setProjectRepositories

public void setProjectRepositories(org.ofbiz.core.entity.GenericValue project,
                                   Collection repositoryIds)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectsForRepository

public Collection getProjectsForRepository(Repository repository)
                                    throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getRepositories

public Collection getRepositories()

getRepository

public Repository getRepository(Long id)
                         throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getRepository

public Repository getRepository(String name)
Retrieves the repository by name

Parameters:
name - name of the repository
Returns:
the repository with the given name if one is found, null otherwise

isValidType

public boolean isValidType(String type)

removeRepository

public void removeRepository(Long id)
                      throws Exception
Throws:
Exception

updateRepository

public void updateRepository(Long id,
                             String type,
                             String name,
                             String description,
                             Properties properties)
                      throws org.ofbiz.core.entity.GenericEntityException
Updates the properties of the repository with the given id.

Throws:
org.ofbiz.core.entity.GenericEntityException

updateRepositories

public boolean updateRepositories()
                           throws org.ofbiz.core.entity.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.

Throws:
org.ofbiz.core.entity.GenericEntityException

createRepository

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

refresh

public void refresh()
             throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet(org.ofbiz.core.entity.GenericValue versionControlGV)
Retrieves a proeprty set for a repository given repository's GenericValue

Parameters:
versionControlGV - the generic value of the repository
Returns:
the proeprty set for the repository


Copyright © 2002-2006 Atlassian. All Rights Reserved.