@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 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> getAllDeletedRepositories(Space space)
getAllDeletedRepositories in interface RepositoryServicepublic Collection<Repository> getAllRepositories(Space space, boolean includeDeleted)
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 Optional<RepositoryInfo> findRepositoryConfig(String spaceName, String alias)
public void removeRepository(Space space, String alias)
removeRepository in interface RepositoryServicepublic void removeRepositories(Space space, Set<String> aliases)
removeRepositories in interface RepositoryServiceprotected void doRemoveRepository(OrganizationalUnit orgUnit, String alias, Optional<RepositoryInfo> thisRepositoryConfig, Consumer<Repository> notification, boolean lock)
public void addGroup(Repository repository, String group)
addGroup in interface RepositoryServicepublic void removeGroup(Repository repository, String group)
removeGroup in interface RepositoryServiceprotected void saveRepositoryConfig(String space, RepositoryInfo config)
public void updateContributors(Repository repository, List<Contributor> contributors)
updateContributors in interface RepositoryServicepublic List<VersionRecord> getRepositoryHistoryAll(Space space, String alias)
getRepositoryHistoryAll in interface RepositoryServiceCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.