Class SalesforceResource


  • @Path("/salesforce")
    public class SalesforceResource
    extends Object
    • Field Detail

      • template

        @Inject
        org.apache.camel.FluentProducerTemplate template
      • consumerTemplate

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
      • context

        @Inject
        org.apache.camel.CamelContext context
    • Constructor Detail

      • SalesforceResource

        public SalesforceResource()
    • Method Detail

      • getDocument

        @Path("/document/{id}")
        @GET
        @Produces("application/json")
        public String getDocument​(@PathParam("id")
                                  String id)
      • getAccountByQueryRecords

        @Path("/account/query/{id}")
        @GET
        @Produces("application/json")
        public javax.json.JsonObject getAccountByQueryRecords​(@PathParam("id")
                                                              String accountId)
      • createAccount

        @Path("/account")
        @POST
        @Consumes("text/plain")
        @Produces("application/json")
        public String createAccount​(String accountName)
      • deleteAccount

        @Path("/account/{id}")
        @DELETE
        public javax.ws.rs.core.Response deleteAccount​(@PathParam("id")
                                                       String accountId)
      • getAccountById

        @Path("/account/{id}")
        @GET
        @Produces("application/json")
        public javax.json.JsonObject getAccountById​(@PathParam("id")
                                                    String accountId)
      • createJob

        @Path("/bulk")
        @POST
        @Produces("application/json")
        public javax.json.JsonObject createJob()
      • abortJob

        @Path("/bulk")
        @DELETE
        @Produces("application/json")
        public javax.json.JsonObject abortJob​(@QueryParam("jobId")
                                              String jobId)
      • modifyCdcConsumerState

        @Path("/cdc/{action}")
        @POST
        public javax.ws.rs.core.Response modifyCdcConsumerState​(@PathParam("action")
                                                                String action)
                                                         throws Exception
        Throws:
        Exception
      • getCdcEvents

        @Path("/cdc")
        @GET
        @Produces("application/json")
        public Map<String,​Object> getCdcEvents()
      • getSObjectsWithForceLimitInfo

        @Path("sobjects/force-limit")
        @GET
        @Produces("application/json")
        public String getSObjectsWithForceLimitInfo()
      • getListVersions

        @Path("versions")
        @GET
        @Produces("application/json")
        public List<String> getListVersions()
      • getListResources

        @Path("resources")
        @GET
        @Produces("application/json")
        public String getListResources()
      • getAccountBasicInfo

        @Path("basic-info/account")
        @GET
        public javax.json.JsonObject getAccountBasicInfo()
      • getAccountDescription

        @Path("describe/account")
        @GET
        public String getAccountDescription()
      • getLimits

        @Path("limits")
        @GET
        @Produces("application/json")
        public Map<String,​Integer> getLimits()
      • getSubscribedObjects

        @Path("streaming")
        @GET
        @Produces("application/json")
        public String getSubscribedObjects()
      • getRawSubscribedObjects

        @Path("streaming/raw")
        @GET
        @Produces("application/json")
        public String getRawSubscribedObjects()
      • deleteTopic

        @Path("/topic/{id}")
        @DELETE
        public javax.ws.rs.core.Response deleteTopic​(@PathParam("id")
                                                     String topicId)
      • getTopicId

        @Path("/topic")
        @GET
        public String getTopicId()
      • getPlatformEvent

        @Path("platform/event")
        @GET
        @Produces("application/json")
        public String getPlatformEvent()