Interface LanguageResource
@Produces("application/json")
@Consumes("application/json")
@Path("language")
public interface LanguageResource
Resource to manage cms languages
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ContentLanguage language) Create a new content languagejavax.ws.rs.core.Response
Delete the language with given IDLoad the language with given idlist()
Deprecated.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
update
(String id, ContentLanguage language) Update the language with given id
-
Method Details
-
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
Create a new content language- Parameters:
language
- language- Returns:
- Response containing the created content language
- Throws:
Exception
-
get
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
Deprecated.Load all available languages- Returns:
- list of available languages
- Throws:
Exception
-