@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,
SpaceConfigStorageRegistry spaceConfigStorage,
javax.enterprise.event.Event<RepositoryContributorsUpdatedEvent> repositoryContributorsUpdatedEvent,
PasswordService secureService) |
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, SpaceConfigStorageRegistry spaceConfigStorage, javax.enterprise.event.Event<RepositoryContributorsUpdatedEvent> repositoryContributorsUpdatedEvent, PasswordService secureService)
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> getAllDeletedRepositories(Space space)
getAllDeletedRepositories
in interface RepositoryService
public Collection<Repository> getAllRepositories(Space space, boolean includeDeleted)
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
public Repository createRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations repositoryEnvironmentConfigurations, Collection<Contributor> contributors) throws RepositoryAlreadyExistsException
createRepository
in interface RepositoryService
RepositoryAlreadyExistsException
protected Optional<RepositoryInfo> findRepositoryConfig(String spaceName, String alias)
public void removeRepository(Space space, String alias)
removeRepository
in interface RepositoryService
public void removeRepositories(Space space, Set<String> aliases)
removeRepositories
in interface RepositoryService
protected void doRemoveRepository(OrganizationalUnit orgUnit, String alias, Optional<RepositoryInfo> thisRepositoryConfig, Consumer<Repository> notification, boolean lock)
public void addGroup(Repository repository, String group)
addGroup
in interface RepositoryService
public void removeGroup(Repository repository, String group)
removeGroup
in interface RepositoryService
protected void saveRepositoryConfig(String space, RepositoryInfo config)
public void updateContributors(Repository repository, List<Contributor> contributors)
updateContributors
in interface RepositoryService
public List<VersionRecord> getRepositoryHistoryAll(Space space, String alias)
getRepositoryHistoryAll
in interface RepositoryService
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.