@Controller public class RESTDictionaryService extends RESTService
CHUNKSIZE, HEADER_ACCEPT_LANGUAGE, HEADER_ACCEPT_RANGES, HEADER_CACHE_CONTROL, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_RANGE, HEADER_CONTENT_TYPE, HEADER_ETAG, HEADER_IF_MODIFIED_SINCE, HEADER_LAST_MODIFIED, HEADER_LOCATION, HEADER_RANGE, HEADER_USER_AGENT, MULTIPART_BYTERANGES_BOUNDRY, MULTIPART_BYTERANGES_BOUNDRY_END, MULTIPART_BYTERANGES_BOUNDRY_SEP, MULTIPART_BYTERANGES_HEADER
Constructor and Description |
---|
RESTDictionaryService() |
Modifier and Type | Method and Description |
---|---|
java.io.File |
exportDictionary() |
java.util.Set<OCPropertyDefinition> |
getAllProperties(java.lang.String type) |
OCAspectDefinition |
getAspect(java.lang.String aspect) |
java.util.Map<java.lang.String,OCAspectDefinition> |
getAspectDefinitions() |
java.util.Set<java.lang.String> |
getAspects() |
OCPropertyDefinition |
getProperty(java.lang.String property) |
OCTypeDefinition |
getType(java.lang.String type) |
java.util.Map<java.lang.String,OCTypeDefinition> |
getTypeDefinitions() |
java.util.Set<java.lang.String> |
getTypes() |
java.lang.String |
updateDictionary() |
java.lang.String |
updateJsonDictionary(java.lang.String paramTicket,
javax.servlet.http.HttpServletRequest request,
java.lang.String cookieTicket) |
contentNotProcessed, contentNotReady, genericException, notAuth, notFoundException, notSupported, objectLocked, ocConflict, ocConflict, ocForbidden, ocRuntimeException, resolveTicket
@RequestMapping(value="/dictionary/types", method=GET) @ResponseBody public java.util.Set<java.lang.String> getTypes()
@RequestMapping(value="/dictionary/type/definition", method=GET) @ResponseBody public java.util.Map<java.lang.String,OCTypeDefinition> getTypeDefinitions()
@RequestMapping(value="/dictionary/type", method=GET) @ResponseBody public OCTypeDefinition getType(@RequestParam(value="type",required=true) java.lang.String type)
@RequestMapping(value="/dictionary/aspects", method=GET) @ResponseBody public java.util.Set<java.lang.String> getAspects()
@RequestMapping(value="/dictionary/aspect/definition", method=GET) @ResponseBody public java.util.Map<java.lang.String,OCAspectDefinition> getAspectDefinitions()
@RequestMapping(value="/dictionary/aspect", method=GET) @ResponseBody public OCAspectDefinition getAspect(@RequestParam(value="aspect",required=true) java.lang.String aspect)
@RequestMapping(value="/dictionary/update", method=GET) @ResponseBody public java.lang.String updateDictionary()
@RequestMapping(value="/dictionary/updateJson", method=PUT) @ResponseBody public java.lang.String updateJsonDictionary(@RequestParam(value="ticket",required=false) java.lang.String paramTicket, javax.servlet.http.HttpServletRequest request, @CookieValue(value="ticket",required=false) java.lang.String cookieTicket) throws java.io.IOException
java.io.IOException
@RequestMapping(value="/dictionary/property", method=GET) @ResponseBody public OCPropertyDefinition getProperty(@RequestParam(value="property",required=true) java.lang.String property)
@RequestMapping(value="/dictionary/{type}/properties", method=GET) @ResponseBody public java.util.Set<OCPropertyDefinition> getAllProperties(@PathVariable java.lang.String type)
@RequestMapping(value="/dictionary/export", method=GET) @ResponseBody public java.io.File exportDictionary()