public interface ISourceDocResource extends SourceDocResource
RESOURCE_NAME_REGEX, RESOURCE_SLUG_REGEX, RESOURCE_SLUG_TEMPLATE, SERVICE_PATH| Modifier and Type | Method and Description |
|---|---|
org.jboss.resteasy.client.ClientResponse<String> |
deleteResource(String idNoSlash)
Delete a Document.
|
org.jboss.resteasy.client.ClientResponse<List<ResourceMeta>> |
get(Set<String> extensions)
Retrieve the List of Documents (Resources) belonging to a Project
iteration.
|
org.jboss.resteasy.client.ClientResponse<Resource> |
getResource(String idNoSlash,
Set<String> extensions)
Retrieves information for a Document.
|
org.jboss.resteasy.client.ClientResponse<ResourceMeta> |
getResourceMeta(String idNoSlash,
Set<String> extensions)
Retrieves meta-data information for a Document.
|
org.jboss.resteasy.client.ClientResponse<String> |
post(Resource messageBody,
Set<String> extensions,
boolean copytrans)
Creates a new Document.
|
org.jboss.resteasy.client.ClientResponse<String> |
putResource(String idNoSlash,
Resource resource,
Set<String> extensions)
Deprecated.
|
org.jboss.resteasy.client.ClientResponse<String> |
putResource(String idNoSlash,
Resource resource,
Set<String> extensions,
boolean copytrans)
Creates or modifies a Document.
|
org.jboss.resteasy.client.ClientResponse<String> |
putResourceMeta(String idNoSlash,
ResourceMeta messageBody,
Set<String> extensions)
Modifies an existing document's meta-data.
|
headorg.jboss.resteasy.client.ClientResponse<List<ResourceMeta>> get(Set<String> extensions)
SourceDocResourceget in interface SourceDocResourceextensions - The document extensions to fetch along with the documents
(e.g. "gettext", "comment"). This parameter allows multiple
values e.g. "ext=gettext&ext=comment".org.jboss.resteasy.client.ClientResponse<String> post(Resource messageBody, Set<String> extensions, boolean copytrans)
SourceDocResourcepost in interface SourceDocResourcemessageBody - The document information.extensions - The document extensions to save with the new document (e.g.
"gettext", "comment"). This parameter allows multiple values
e.g. "ext=gettext&ext=comment".copytrans - Boolean value that indicates whether reasonably close
translations from other projects should be found to initially
populate this document's translations.org.jboss.resteasy.client.ClientResponse<Resource> getResource(String idNoSlash, Set<String> extensions)
SourceDocResourcegetResource in interface SourceDocResourceidNoSlash - The document identifier. Some document ids could have forward
slashes ('/') in them which would cause conflicts with the
browser's own url interpreter. For this reason, the supplied
id must have all its '/' characters replaced with commas
(',').extensions - The document extensions to fetch along with the document (e.g.
"gettext", "comment"). This parameter allows multiple values
e.g. "ext=gettext&ext=comment".org.jboss.resteasy.client.ClientResponse<String> putResource(String idNoSlash, Resource resource, Set<String> extensions, boolean copytrans)
SourceDocResourceputResource in interface SourceDocResourceidNoSlash - The document identifier. Some document ids could have forward
slashes ('/') in them which would cause conflicts with the
browser's own url interpreter. For this reason, the supplied
id must have all its '/' characters replaced with commas
(',').resource - The document information.extensions - The document extensions to save with the document (e.g.
"gettext", "comment"). This parameter allows multiple values
e.g. "ext=gettext&ext=comment".copytrans - Boolean value that indicates whether reasonably close
translations from other projects should be found to initially
populate this document's translations.@Deprecated org.jboss.resteasy.client.ClientResponse<String> putResource(String idNoSlash, Resource resource, Set<String> extensions)
org.jboss.resteasy.client.ClientResponse<String> deleteResource(String idNoSlash)
SourceDocResourcedeleteResource in interface SourceDocResourceidNoSlash - The document identifier. Some document ids could have forward
slashes ('/') in them which would cause conflicts with the
browser's own url interpreter. For this reason, the supplied
id must have all its '/' characters replaced with commas
(',').org.jboss.resteasy.client.ClientResponse<ResourceMeta> getResourceMeta(String idNoSlash, Set<String> extensions)
SourceDocResourcegetResourceMeta in interface SourceDocResourceidNoSlash - The document identifier. Some document ids could have forward
slashes ('/') in them which would cause conflicts with the
browser's own url interpreter. For this reason, the supplied
id must have all its '/' characters replaced with commas
(',').extensions - The document extensions to retrieve with the document's
meta-data (e.g. "gettext", "comment"). This parameter allows
multiple values e.g. "ext=gettext&ext=comment".org.jboss.resteasy.client.ClientResponse<String> putResourceMeta(String idNoSlash, ResourceMeta messageBody, Set<String> extensions)
SourceDocResourceputResourceMeta in interface SourceDocResourceidNoSlash - The document identifier. Some document ids could have forward
slashes ('/') in them which would cause conflicts with the
browser's own url interpreter. For this reason, the supplied
id must have all its '/' characters replaced with commas
(',').messageBody - The document's meta-data.extensions - The document extensions to save with the document (e.g.
"gettext", "comment"). This parameter allows multiple values
e.g. "ext=gettext&ext=comment".Copyright © 2014 Zanata Project. All Rights Reserved.