Interface LanguageResource
-
@Produces("application/json") @Consumes("application/json") @Path("language") public interface LanguageResource
Resource to manage cms languages
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ContentLanguageResponse
create(ContentLanguage language)
Create a new content languagejavax.ws.rs.core.Response
delete(String id)
Delete the language with given IDContentLanguageResponse
get(String id)
Load the language with given idLanguageListResponse
list()
Deprecated.LanguageList
list(FilterParameterBean filter, SortParameterBean sorting, PagingParameterBean paging)
Load a list of languages.
The result can be filtered byid
globalId
name
code
and sorted byid
globalId
name
code
ContentLanguageResponse
update(String id, ContentLanguage language)
Update the language with given id
-
-
-
Method Detail
-
list
@GET LanguageList list(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging) throws Exception
Load a list of languages.
The result can be filtered byid
globalId
name
code
id
globalId
name
code
- Parameters:
filter
- filter parameterssorting
- sorting parameterspaging
- paging parameters- Returns:
- response containing a list of languages
- Throws:
Exception
-
create
@POST ContentLanguageResponse create(ContentLanguage language) throws Exception
Create a new content language- Parameters:
language
- language- Returns:
- Response containing the created content language
- Throws:
Exception
-
get
@GET @Path("/{id}") ContentLanguageResponse get(@PathParam("id") String id) throws Exception
Load the language with given id- Parameters:
id
- language ID- Returns:
- Response containing the requested language
- Throws:
Exception
-
update
@PUT @Path("/{id}") ContentLanguageResponse update(@PathParam("id") String id, ContentLanguage language) throws Exception
Update the language with given id- Parameters:
id
- language IDlanguage
- Updated language- Returns:
- Response containing the updated language
- Throws:
Exception
-
delete
@DELETE @Path("/{id}") javax.ws.rs.core.Response delete(@PathParam("id") String id) throws Exception
Delete the language with given ID- Parameters:
id
- language ID- Returns:
- empty response
- Throws:
Exception
-
list
@GET @Path("list") LanguageListResponse list() throws Exception
Deprecated.Load all available languages- Returns:
- list of available languages
- Throws:
Exception
-
-