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)
           
 com.opensymphony.module.propertyset.PropertySet getPropertySet(org.ofbiz.core.entity.GenericValue versionControlGV)
          Retrieves a proeprty set for a repository given repository's GenericValue
 java.util.Collection getRepositories()
           
 java.util.Collection getRepositoriesForProject(org.ofbiz.core.entity.GenericValue project)
           
 Repository getRepository(java.lang.Long id)
           
 Repository getRepository(java.lang.String name)
          Retrieves the repository by name
 boolean isValidType(java.lang.String type)
           
 void refresh()
           
 void removeRepository(java.lang.Long id)
           
 void setProjectRepositories(org.ofbiz.core.entity.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)
          Updates 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(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,
                                   java.util.Collection repositoryIds)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectsForRepository

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

getRepositories

public java.util.Collection getRepositories()

getRepository

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

getRepository

public Repository getRepository(java.lang.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(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 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.

Returns:
Throws:
org.ofbiz.core.entity.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 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-2005 Atlassian. All Rights Reserved.