Class RealmLocalizationResource


  • public class RealmLocalizationResource
    extends Object
    • Method Detail

      • saveRealmLocalizationText

        @Path("{locale}/{key}")
        @PUT
        @Consumes("text/plain")
        public void saveRealmLocalizationText​(@PathParam("locale")
                                              String locale,
                                              @PathParam("key")
                                              String key,
                                              String text)
      • createOrUpdateRealmLocalizationTextsFromFile

        @POST
        @Path("{locale}")
        @Consumes("multipart/form-data")
        public void createOrUpdateRealmLocalizationTextsFromFile​(@PathParam("locale")
                                                                 String locale,
                                                                 org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
        Import localization from uploaded JSON file
      • createOrUpdateRealmLocalizationTexts

        @POST
        @Path("{locale}")
        @Consumes("application/json")
        public void createOrUpdateRealmLocalizationTexts​(@PathParam("locale")
                                                         String locale,
                                                         Map<String,​String> localizationTexts)
      • deleteRealmLocalizationTexts

        @Path("{locale}")
        @DELETE
        public void deleteRealmLocalizationTexts​(@PathParam("locale")
                                                 String locale)
      • deleteRealmLocalizationText

        @Path("{locale}/{key}")
        @DELETE
        public void deleteRealmLocalizationText​(@PathParam("locale")
                                                String locale,
                                                @PathParam("key")
                                                String key)
      • getRealmLocalizationLocales

        @GET
        @Produces("application/json")
        public Stream<String> getRealmLocalizationLocales()
      • getRealmLocalizationTexts

        @Path("{locale}")
        @GET
        @Produces("application/json")
        public Map<String,​String> getRealmLocalizationTexts​(@PathParam("locale")
                                                                  String locale)
      • getRealmLocalizationText

        @Path("{locale}/{key}")
        @GET
        @Produces("text/plain")
        public String getRealmLocalizationText​(@PathParam("locale")
                                               String locale,
                                               @PathParam("key")
                                               String key)