@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,
SessionInfo sessionInfo,
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, SessionInfo sessionInfo, SpacesAPI spacesAPI)
public RepositoryInfo getRepositoryInfo(Space space, String alias)
getRepositoryInfo
in interface RepositoryService
public List<VersionRecord> getRepositoryHistory(Space space, String alias, int startIndex)
getRepositoryHistory
in interface RepositoryService
public List<VersionRecord> getRepositoryHistory(Space space, String alias, int startIndex, int endIndex)
getRepositoryHistory
in interface RepositoryService
public Repository getRepositoryFromSpace(Space space, String alias)
getRepositoryFromSpace
in interface RepositoryService
public Repository getRepository(Path root)
getRepository
in interface RepositoryService
public Repository getRepository(Space space, Path root)
getRepository
in interface RepositoryService
public String normalizeRepositoryName(String name)
normalizeRepositoryName
in interface RepositoryService
public boolean validateRepositoryName(String name)
validateRepositoryName
in interface RepositoryService
public Collection<Repository> getAllRepositories(Space space)
getAllRepositories
in interface RepositoryService
public Collection<Repository> getAllRepositoriesFromAllUserSpaces()
getAllRepositoriesFromAllUserSpaces
in interface RepositoryService
public Collection<Repository> getRepositories(Space space)
getRepositories
in interface RepositoryService
public Repository createRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations repositoryEnvironmentConfigurations) throws RepositoryAlreadyExistsException
createRepository
in interface RepositoryService
RepositoryAlreadyExistsException
protected ConfigGroup findRepositoryConfig(String alias, String spaceName)
public void removeRepository(Space space, String alias)
removeRepository
in interface RepositoryService
public void removeRepositories(Space space, Set<String> aliases)
removeRepositories
in interface RepositoryService
public void addGroup(Repository repository, String group)
addGroup
in interface RepositoryService
public void removeGroup(Repository repository, String group)
removeGroup
in interface RepositoryService
public List<VersionRecord> getRepositoryHistoryAll(Space space, String alias)
getRepositoryHistoryAll
in interface RepositoryService
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.