org.exoplatform.services.jcr.ext.repository
Class RestRepositoryService
java.lang.Object
org.exoplatform.services.jcr.ext.repository.RestRepositoryService
- All Implemented Interfaces:
- org.exoplatform.services.rest.resource.ResourceContainer
public class RestRepositoryService
- extends Object
- implements org.exoplatform.services.rest.resource.ResourceContainer
Created by The eXo Platform SAS.
Date: 27.08.2009
- Version:
- $Id: NamesList.java 111 2008-11-11 11:11:11Z rainf0x $
- Author:
- Alex Reshetnyak
|
Method Summary |
javax.ws.rs.core.Response |
createRepository(javax.ws.rs.core.UriInfo uriInfo,
RepositoryEntry newRepository)
|
javax.ws.rs.core.Response |
createWorkspace(javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
WorkspaceEntry newWorkspace)
|
javax.ws.rs.core.Response |
getDefaultWorkspaceConfig(String repositoryName)
|
javax.ws.rs.core.Response |
getRepositoryNames()
|
javax.ws.rs.core.Response |
getRepositoryServiceConfiguration()
|
javax.ws.rs.core.Response |
getWorkspaceNames(String repositoryName)
|
javax.ws.rs.core.Response |
removeRepository(javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
Boolean forseSessionClose)
|
javax.ws.rs.core.Response |
removeWorkspace(javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
String workspaceName,
Boolean forseSessionClose)
|
javax.ws.rs.core.Response |
updateWorkspaceConfiguration(String repositoryName,
String workspaceName,
WorkspaceEntry workspaceEntry)
* @param repositoryName
String, the repository name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestRepositoryService
public RestRepositoryService(RepositoryService repositoryService)
- Parameters:
repositoryService -
getRepositoryServiceConfiguration
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response getRepositoryServiceConfiguration()
- Returns:
- Response
return the Response with RepositoryServiceConf
getDefaultWorkspaceConfig
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response getDefaultWorkspaceConfig(String repositoryName)
- Parameters:
repositoryName - String, the repository name
- Returns:
- Response
return the Response with WorkspaceEntry
createRepository
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response createRepository(@Context
javax.ws.rs.core.UriInfo uriInfo,
RepositoryEntry newRepository)
throws URISyntaxException
- Parameters:
uriInfo - UriInfo, the uri locationnewRepository - RepositoryEntry, the RepositoryEntry to new repository
- Returns:
- Response
return the Response
- Throws:
URISyntaxException - will be generated the URISyntaxException
createWorkspace
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response createWorkspace(@Context
javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
WorkspaceEntry newWorkspace)
throws URISyntaxException
- Parameters:
uriInfo - UriInfo, the uri locationrepositoryName - String, the repository namenewWorkspace - WorkspaceEntry, the WorkspaceEntry to new repository
- Returns:
- Response
return the Response
- Throws:
URISyntaxException - will be generated the URISyntaxException
removeRepository
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response removeRepository(@Context
javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
Boolean forseSessionClose)
- Parameters:
uriInfo - UriInfo, the uri locationrepositoryName - String, the repository nameforseSessionClose - Boolean, flag to force session close
- Returns:
- Response
return the Response
removeWorkspace
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response removeWorkspace(@Context
javax.ws.rs.core.UriInfo uriInfo,
String repositoryName,
String workspaceName,
Boolean forseSessionClose)
- Parameters:
uriInfo - UriInfo, the uri locationrepositoryName - String, the repository nameworkspaceName - String, the workspace nameforseSessionClose - Boolean, flag to force session close
- Returns:
- Response
return the Response
getRepositoryNames
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response getRepositoryNames()
- Returns:
- Response
return the Response with list of repository names
getWorkspaceNames
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response getWorkspaceNames(String repositoryName)
- Parameters:
repositoryName - String, the repository name
- Returns:
- Response
return the Response with list of workspace names
updateWorkspaceConfiguration
@RolesAllowed(value="administrators")
public javax.ws.rs.core.Response updateWorkspaceConfiguration(String repositoryName,
String workspaceName,
WorkspaceEntry workspaceEntry)
- * @param repositoryName
String, the repository name
- Parameters:
workspaceName - String, the workspace nameworkspaceEntry - WorkspaceEntry, the confg to workspace
- Returns:
- Response
return the Response
Copyright © 2013 eXo Platform SAS. All Rights Reserved.