public class RestRepositoryService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
RestRepositoryService.Constants
Definition the constants.
|
| Constructor and Description |
|---|
RestRepositoryService(RepositoryService repositoryService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createRepository(javax.ws.rs.core.UriInfo uriInfo,
RepositoryEntry newRepository)
Creates a repository based on the given repository configuration
|
javax.ws.rs.core.Response |
createWorkspace(javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
WorkspaceEntry newWorkspace)
Adds a new workspace based on the given configuration to the given repository.
|
javax.ws.rs.core.Response |
getDefaultWorkspaceConfig(String repositoryName)
Gives the configuration of the default workspace of the given repository
|
javax.ws.rs.core.Response |
getRepositoryNames()
Gives the name of all the existing repositories.
|
javax.ws.rs.core.Response |
getRepositoryServiceConfiguration()
Gives the repository service configuration which is composed
of the configuration of all the repositories and workspaces
|
javax.ws.rs.core.Response |
getWorkspaceNames(String repositoryName)
Gives the name of all the existing workspaces for a given repository.
|
javax.ws.rs.core.Response |
removeRepository(javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
Boolean forseSessionClose)
Removes an existing repository
|
javax.ws.rs.core.Response |
removeWorkspace(javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
String workspaceName,
Boolean forseSessionClose)
Removes an existing workspace from a given repository.
|
javax.ws.rs.core.Response |
updateWorkspaceConfiguration(String repositoryName,
String workspaceName,
WorkspaceEntry workspaceEntry)
Updates the configuration of a given workspace.
|
public RestRepositoryService(RepositoryService repositoryService)
repositoryService - @RolesAllowed(value="administrators") public javax.ws.rs.core.Response getRepositoryServiceConfiguration()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response getDefaultWorkspaceConfig(String repositoryName)
repositoryName - the name of the repository@RolesAllowed(value="administrators") public javax.ws.rs.core.Response createRepository(@Context javax.ws.rs.core.UriInfo uriInfo, RepositoryEntry newRepository) throws URISyntaxException
uriInfo - the uri locationnewRepository - the configuration of the new repositoryURISyntaxException - will be generated the URISyntaxException@RolesAllowed(value="administrators") public javax.ws.rs.core.Response createWorkspace(@Context javax.ws.rs.core.UriInfo uriInfo, String repositoryName, WorkspaceEntry newWorkspace) throws URISyntaxException
uriInfo - the uri locationrepositoryName - the name of the repositorynewWorkspace - the configuration of the new workspaceURISyntaxException - will be generated the URISyntaxException@RolesAllowed(value="administrators") public javax.ws.rs.core.Response removeRepository(@Context javax.ws.rs.core.UriInfo uriInfo, String repositoryName, Boolean forseSessionClose)
uriInfo - the uri locationrepositoryName - the name of the repositoryforseSessionClose - a flag indicating whether or not the current sessions must be closed@RolesAllowed(value="administrators") public javax.ws.rs.core.Response removeWorkspace(@Context javax.ws.rs.core.UriInfo uriInfo, String repositoryName, String workspaceName, Boolean forseSessionClose)
uriInfo - the uri locationrepositoryName - the name of the repositoryworkspaceName - the name of the workspaceforseSessionClose - a flag indicating whether or not the current sessions must be closed@RolesAllowed(value="administrators") public javax.ws.rs.core.Response getRepositoryNames()
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response getWorkspaceNames(String repositoryName)
repositoryName - the name of the repository@RolesAllowed(value="administrators") public javax.ws.rs.core.Response updateWorkspaceConfiguration(String repositoryName, String workspaceName, WorkspaceEntry workspaceEntry)
repositoryName - the name of the repositoryworkspaceName - the name of the workspaceworkspaceEntry - the configuration of the workspaceCopyright © 2020 eXo Platform SAS. All Rights Reserved.