com.atlassian.jira.vcs
Interface RepositoryManager
- All Known Implementing Classes:
- DefaultRepositoryManager
- public interface RepositoryManager
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
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