Interface RepositoryService
-
public interface RepositoryService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddGroup(Repository repository, String group)RepositorycreateRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations configurations)RepositorycreateRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations configurations, Collection<org.uberfire.security.Contributor> contributors)Collection<Repository>getAllDeletedRepositories(org.uberfire.spaces.Space space)Get all the repositories.Collection<Repository>getAllRepositories(org.uberfire.spaces.Space space)Get all the repositories.Collection<Repository>getAllRepositories(org.uberfire.spaces.Space space, boolean includeDeleted)Get all the repositories.Collection<Repository>getAllRepositoriesFromAllUserSpaces()Get all the repositories from all user spaces.Collection<Repository>getRepositories(org.uberfire.spaces.Space space)Get only those repositories available within the current security context.RepositorygetRepository(org.uberfire.backend.vfs.Path root)RepositorygetRepository(org.uberfire.spaces.Space space, org.uberfire.backend.vfs.Path root)RepositorygetRepositoryFromSpace(org.uberfire.spaces.Space currentSpace, String alias)List<org.uberfire.java.nio.base.version.VersionRecord>getRepositoryHistory(org.uberfire.spaces.Space space, String alias, int startIndex)List<org.uberfire.java.nio.base.version.VersionRecord>getRepositoryHistory(org.uberfire.spaces.Space space, String alias, int startIndex, int endIndex)List<org.uberfire.java.nio.base.version.VersionRecord>getRepositoryHistoryAll(org.uberfire.spaces.Space space, String alias)RepositoryInfogetRepositoryInfo(org.uberfire.spaces.Space space, String alias)StringnormalizeRepositoryName(String name)voidremoveGroup(Repository repository, String group)voidremoveRepositories(org.uberfire.spaces.Space space, Set<String> aliases)UnlikeremoveRepository(Space, String), this method does not fire CDI events, since it is meant to be invoked by other services while removing other constructs (such as an entire space).voidremoveRepository(org.uberfire.spaces.Space space, String alias)voidupdateContributors(Repository repository, List<org.uberfire.security.Contributor> contributors)booleanvalidateRepositoryName(String name)
-
-
-
Method Detail
-
getRepositoryInfo
RepositoryInfo getRepositoryInfo(org.uberfire.spaces.Space space, String alias)
-
getRepositoryHistory
List<org.uberfire.java.nio.base.version.VersionRecord> getRepositoryHistory(org.uberfire.spaces.Space space, String alias, int startIndex)
-
getRepositoryHistory
List<org.uberfire.java.nio.base.version.VersionRecord> getRepositoryHistory(org.uberfire.spaces.Space space, String alias, int startIndex, int endIndex)
-
getRepositoryHistoryAll
List<org.uberfire.java.nio.base.version.VersionRecord> getRepositoryHistoryAll(org.uberfire.spaces.Space space, String alias)
-
getRepositoryFromSpace
Repository getRepositoryFromSpace(org.uberfire.spaces.Space currentSpace, String alias)
-
getRepository
Repository getRepository(org.uberfire.backend.vfs.Path root)
-
getRepository
Repository getRepository(org.uberfire.spaces.Space space, org.uberfire.backend.vfs.Path root)
-
getAllRepositories
Collection<Repository> getAllRepositories(org.uberfire.spaces.Space space)
Get all the repositories. Security checks are omitted.
-
getAllRepositories
Collection<Repository> getAllRepositories(org.uberfire.spaces.Space space, boolean includeDeleted)
Get all the repositories. Security checks are omitted.
-
getAllDeletedRepositories
Collection<Repository> getAllDeletedRepositories(org.uberfire.spaces.Space space)
Get all the repositories. Security checks are omitted.
-
getAllRepositoriesFromAllUserSpaces
Collection<Repository> getAllRepositoriesFromAllUserSpaces()
Get all the repositories from all user spaces. Security checks are omitted.
-
getRepositories
Collection<Repository> getRepositories(org.uberfire.spaces.Space space)
Get only those repositories available within the current security context.
-
createRepository
Repository createRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations configurations) throws RepositoryAlreadyExistsException
- Throws:
RepositoryAlreadyExistsException
-
createRepository
Repository createRepository(OrganizationalUnit organizationalUnit, String scheme, String alias, RepositoryEnvironmentConfigurations configurations, Collection<org.uberfire.security.Contributor> contributors) throws RepositoryAlreadyExistsException
- Throws:
RepositoryAlreadyExistsException
-
validateRepositoryName
boolean validateRepositoryName(String name)
-
addGroup
void addGroup(Repository repository, String group)
-
removeGroup
void removeGroup(Repository repository, String group)
-
updateContributors
void updateContributors(Repository repository, List<org.uberfire.security.Contributor> contributors)
-
removeRepository
void removeRepository(org.uberfire.spaces.Space space, String alias)
-
removeRepositories
void removeRepositories(org.uberfire.spaces.Space space, Set<String> aliases)UnlikeremoveRepository(Space, String), this method does not fire CDI events, since it is meant to be invoked by other services while removing other constructs (such as an entire space).
-
-