|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.vcs.DefaultRepositoryManager
Field Summary |
Fields inherited from interface com.atlassian.jira.vcs.RepositoryManager |
CVS_TYPE, VCS_SERVICE_DELAY, VCS_SERVICE_NAME, VCS_TYPES |
Constructor Summary | |
DefaultRepositoryManager()
|
|
DefaultRepositoryManager(com.atlassian.core.ofbiz.association.AssociationManager associationManager,
org.ofbiz.core.entity.GenericDelegator genericDelegator,
ServiceManager serviceManager,
PermissionManager permissionManager)
|
Method Summary | |
Repository |
createRepository(String type,
String name,
String description,
Properties properties)
|
protected com.atlassian.core.ofbiz.association.AssociationManager |
getAssociationManager()
|
Map |
getCommits(Issue issue,
User remoteUser)
Retrieves all of the commits for this issue from ALL of the repositories associated with the issue's project. |
protected org.ofbiz.core.entity.GenericDelegator |
getGenericDelegator()
|
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 |
protected ServiceManager |
getServiceManager()
|
boolean |
isValidType(String type)
|
void |
refresh()
|
void |
removeRepository(Long id)
|
void |
setProjectRepositories(org.ofbiz.core.entity.GenericValue project,
Collection repositoryIds)
Given a project and a collection of repository ids, associates the project with the repositories that have the given ids NOTE: the old associations are removed |
boolean |
updateRepositories()
Tries to update (e.g. |
void |
updateRepository(Long id,
String type,
String name,
String description,
Properties properties)
Updates the repository with the given id. |
protected boolean |
updateRepository(Repository repository)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultRepositoryManager(com.atlassian.core.ofbiz.association.AssociationManager associationManager, org.ofbiz.core.entity.GenericDelegator genericDelegator, ServiceManager serviceManager, PermissionManager permissionManager) throws org.ofbiz.core.entity.GenericEntityException
public DefaultRepositoryManager() throws org.ofbiz.core.entity.GenericEntityException
Method Detail |
public Collection getRepositoriesForProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
getRepositoriesForProject
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
public Collection getProjectsForRepository(Repository repository) throws org.ofbiz.core.entity.GenericEntityException
getProjectsForRepository
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
public Repository getRepository(String name)
getRepository
in interface RepositoryManager
name
- name of the repository
public Repository getRepository(Long id) throws org.ofbiz.core.entity.GenericEntityException
getRepository
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
public com.opensymphony.module.propertyset.PropertySet getPropertySet(org.ofbiz.core.entity.GenericValue versionControlGV)
RepositoryManager
getPropertySet
in interface RepositoryManager
versionControlGV
- the generic value of the repository
public boolean isValidType(String type)
isValidType
in interface RepositoryManager
public Map getCommits(Issue issue, User remoteUser)
RepositoryManager
Returns a map of (repository id -> List of CVSCommit
):
If the map is empty, there are no associated repositories for the issue and user.
If the List of CVSCommit
is null,
then the vcs log has not yet been parsed for that repository.
getCommits
in interface RepositoryManager
issue
- remoteUser
- public Repository createRepository(String type, String name, String description, Properties properties) throws Exception
createRepository
in interface RepositoryManager
Exception
public void updateRepository(Long id, String type, String name, String description, Properties properties) throws org.ofbiz.core.entity.GenericEntityException
updateRepository
in interface RepositoryManager
id
- properties
-
org.ofbiz.core.entity.GenericEntityException
public void removeRepository(Long id) throws Exception
removeRepository
in interface RepositoryManager
Exception
public void setProjectRepositories(org.ofbiz.core.entity.GenericValue project, Collection repositoryIds) throws org.ofbiz.core.entity.GenericEntityException
setProjectRepositories
in interface RepositoryManager
project
- repositoryIds
-
org.ofbiz.core.entity.GenericEntityException
- if at least one repository with the given id does not existpublic Collection getRepositories()
getRepositories
in interface RepositoryManager
Repository
objects in the system.public boolean updateRepositories() throws org.ofbiz.core.entity.GenericEntityException
RepositoryManager
updateRepositories
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
protected boolean updateRepository(Repository repository) throws org.netbeans.lib.cvsclient.command.CommandException, org.netbeans.lib.cvsclient.connection.AuthenticationException, IOException, net.sf.statcvs.input.LogSyntaxException, LockException
org.netbeans.lib.cvsclient.command.CommandException
org.netbeans.lib.cvsclient.connection.AuthenticationException
IOException
net.sf.statcvs.input.LogSyntaxException
LockException
public void refresh() throws org.ofbiz.core.entity.GenericEntityException
refresh
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
protected org.ofbiz.core.entity.GenericDelegator getGenericDelegator()
protected com.atlassian.core.ofbiz.association.AssociationManager getAssociationManager()
protected ServiceManager getServiceManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |