public interface CampaignConnector
Modifier and Type | Method and Description |
---|---|
CallResults |
callFunction(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> fctParams,
CampaignCredentials credentials)
Calls a remote function on the campaign instance.
|
Configuration |
getWebserviceConfig(Resource resource)
Determines the webservice config to be used.
|
CallResults |
postFunction(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> data,
CampaignCredentials credentials)
Posts data to a remote function on the campaign instance.
|
CampaignCredentials |
retrieveCredentials(Configuration config)
Retrieves the credentials from the specified webservice config.
|
Configuration getWebserviceConfig(Resource resource) throws ACConnectorException
resource
- The resource to get the webservice config forACConnectorException
- if the webservice configuration is not present or invalidCampaignCredentials retrieveCredentials(Configuration config) throws ACConnectorException
Retrieves the credentials from the specified webservice config.
config
- The webservice configACConnectorException
- if there are no credentials present or the credentials
could not be decryptedCallResults callFunction(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> fctParams, CampaignCredentials credentials) throws ACConnectorException
Calls a remote function on the campaign instance.
Note that the caller is required to use CallResults.destroy()
after
processing the result of the remote function call.
The remote function needs to reside in the default namespace (/jssp/nms/).
To call remote functions in a generic namespace, use
GenericCampaignConnector.callGeneric(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, com.day.cq.mcm.campaign.CampaignCredentials)
instead.
name
- The name of the function to be called (in /jssp/nms/; the value must not
include /jssp/nms/)fctParams
- The parameters of the function call (name/value parameters)credentials
- The credentials to be used for the callACConnectorException
- If the remote function could not be called or returned an unexpected statusCallResults postFunction(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> data, CampaignCredentials credentials) throws ACConnectorException
Posts data to a remote function on the campaign instance.
Note that the caller is required to use CallResults.destroy()
after
processing the result of the remote function call.
The remote function needs to reside in the default namespace (/jssp/nms/).
To call remote functions in a generic namespace, use
GenericCampaignConnector.postGeneric(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, com.day.cq.mcm.campaign.CampaignCredentials)
instead.
name
- The name of the function to be called (in /jssp/nms/; the value must not
include /jssp/nms/)data
- The data to post (name/value)credentials
- The credentials to be used for the callACConnectorException
- If the remote function could not be called or returned an unexpected status"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"