|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.vcs.DefaultRepositoryManager
public class 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)
|
Method Summary | |
---|---|
Repository |
createRepository(java.lang.String type,
java.lang.String name,
java.lang.String description,
java.util.Properties properties)
|
protected com.atlassian.core.ofbiz.association.AssociationManager |
getAssociationManager()
|
protected org.ofbiz.core.entity.GenericDelegator |
getGenericDelegator()
|
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 |
protected ServiceManager |
getServiceManager()
|
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)
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(java.lang.Long id,
java.lang.String type,
java.lang.String name,
java.lang.String description,
java.util.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) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public DefaultRepositoryManager() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
Method Detail |
---|
public java.util.Collection getRepositoriesForProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
getRepositoriesForProject
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
public java.util.Collection getProjectsForRepository(Repository repository) throws org.ofbiz.core.entity.GenericEntityException
getProjectsForRepository
in interface RepositoryManager
org.ofbiz.core.entity.GenericEntityException
public Repository getRepository(java.lang.String name)
getRepository
in interface RepositoryManager
name
- name of the repository
public Repository getRepository(java.lang.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(java.lang.String type)
isValidType
in interface RepositoryManager
public Repository createRepository(java.lang.String type, java.lang.String name, java.lang.String description, java.util.Properties properties) throws java.lang.Exception
createRepository
in interface RepositoryManager
java.lang.Exception
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
updateRepository
in interface RepositoryManager
id
- properties
-
org.ofbiz.core.entity.GenericEntityException
public void removeRepository(java.lang.Long id) throws java.lang.Exception
removeRepository
in interface RepositoryManager
java.lang.Exception
public void setProjectRepositories(org.ofbiz.core.entity.GenericValue project, java.util.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 java.util.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, java.io.IOException, net.sf.statcvs.input.LogSyntaxException, LockException
org.netbeans.lib.cvsclient.command.CommandException
org.netbeans.lib.cvsclient.connection.AuthenticationException
java.io.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 |