@ApplicationScoped public class RepositoryServiceImpl extends Object implements RepositoryService
| Modifier and Type | Class and Description |
|---|---|
class |
RepositoryServiceImpl.NoActiveSpaceInTheContext |
| Constructor and Description |
|---|
RepositoryServiceImpl() |
RepositoryServiceImpl(IOService ioService,
GitMetadataStore metadataStore,
ConfigurationService configurationService,
OrganizationalUnitService organizationalUnitService,
ConfigurationFactory configurationFactory,
RepositoryFactory repositoryFactory,
javax.enterprise.event.Event<NewRepositoryEvent> event,
javax.enterprise.event.Event<RepositoryRemovedEvent> repositoryRemovedEvent,
BackwardCompatibleUtil backward,
ConfiguredRepositories configuredRepositories,
AuthorizationManager authorizationManager,
org.jboss.errai.security.shared.api.identity.User user,
SpacesAPI spacesAPI) |
public RepositoryServiceImpl()
@Inject
public RepositoryServiceImpl(@Named(value="ioStrategy")
IOService ioService,
GitMetadataStore metadataStore,
ConfigurationService configurationService,
OrganizationalUnitService organizationalUnitService,
ConfigurationFactory configurationFactory,
RepositoryFactory repositoryFactory,
javax.enterprise.event.Event<NewRepositoryEvent> event,
javax.enterprise.event.Event<RepositoryRemovedEvent> repositoryRemovedEvent,
BackwardCompatibleUtil backward,
ConfiguredRepositories configuredRepositories,
AuthorizationManager authorizationManager,
org.jboss.errai.security.shared.api.identity.User user,
SpacesAPI spacesAPI)
public RepositoryInfo getRepositoryInfo(Space space, String alias)
getRepositoryInfo in interface RepositoryServicepublic List<VersionRecord> getRepositoryHistory(Space space, String alias, int startIndex)
getRepositoryHistory in interface RepositoryServicepublic List<VersionRecord> getRepositoryHistory(Space space, String alias, int startIndex, int endIndex)
getRepositoryHistory in interface RepositoryServicepublic Repository getRepositoryFromSpace(Space space, String alias)
getRepositoryFromSpace in interface RepositoryServicepublic Repository getRepository(Path root)
getRepository in interface RepositoryServicepublic Repository getRepository(Space space, Path root)
getRepository in interface RepositoryServicepublic String normalizeRepositoryName(String name)
normalizeRepositoryName in interface RepositoryServicepublic boolean validateRepositoryName(String name)
validateRepositoryName in interface RepositoryServicepublic Collection<Repository> getAllRepositories(Space space)
getAllRepositories in interface RepositoryServicepublic Collection<Repository> getAllRepositoriesFromAllUserSpaces()
getAllRepositoriesFromAllUserSpaces in interface RepositoryServicepublic Collection<Repository> getRepositories(Space space)
getRepositories in interface RepositoryServicepublic Repository createRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations repositoryEnvironmentConfigurations) throws RepositoryAlreadyExistsException
createRepository in interface RepositoryServiceRepositoryAlreadyExistsExceptionpublic Repository createRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations repositoryEnvironmentConfigurations, Collection<Contributor> contributors) throws RepositoryAlreadyExistsException
createRepository in interface RepositoryServiceRepositoryAlreadyExistsExceptionprotected ConfigGroup findRepositoryConfig(String alias, String spaceName)
public void removeRepository(Space space, String alias)
removeRepository in interface RepositoryServicepublic void removeRepositories(Space space, Set<String> aliases)
removeRepositories in interface RepositoryServicepublic void addGroup(Repository repository, String group)
addGroup in interface RepositoryServicepublic void removeGroup(Repository repository, String group)
removeGroup in interface RepositoryServicepublic void updateContributors(Repository repository, List<Contributor> contributors)
updateContributors in interface RepositoryServicepublic List<VersionRecord> getRepositoryHistoryAll(Space space, String alias)
getRepositoryHistoryAll in interface RepositoryServiceCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.