@Connector(name="successfactors", schemaVersion="1.1.4", friendlyName="Success Factors", minMuleVersion="3.7") @ReconnectOn(exceptions=SuccessFactorsSessionExpiredException.class) @RequiresEnterpriseLicense(allowEval=true) public class SuccessFactorsConnector extends Object
Constructor and Description |
---|
SuccessFactorsConnector() |
Modifier and Type | Method and Description |
---|---|
TaskStatus |
cancelJob(String taskId)
Download the result of submitted asynchronous query job.
|
DeleteResult |
delete(String type,
Map<String,Object> input)
Deletes the SFObjects specified by the type and the objects.
|
List<DescribeResult> |
describeEntities(List<String> types)
Returns metadata about the list of entities specified in the type parameter (both field and entity information).
|
Config |
getConfig() |
DataHandler |
getJobResult(GetJobResult params)
Download the result of submitted asynchronous query job.
|
TaskStatus |
getJobStatus(String taskId)
Get the execution status of the submitted asynchronous job.
|
InsertResult |
insert(String type,
Map<String,Object> input)
Inserts the objects of the specified entity type.
|
List<String> |
listEntities()
List all the entities in your company instance.
|
List<TaskStatus> |
listJobs()
List all Jobs which are in running or waiting to run.
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,SuccessFactorsConnector> |
query(String queryString,
Map<String,String> params,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Queries the SuccessFactors platform with the given query string in SFQL (SuccessFactors Query Language).
|
void |
setConfig(Config config) |
TaskStatus |
submitQueryJob(String queryString,
List<SFParameter> params)
Submit the asynchronous query job to the SuccessFactors platform with the given query string in SFQL (SuccessFactors Query Language).
|
String |
translate(org.mule.common.query.DsqlQuery queryToTranslate) |
UpdateResult |
update(String type,
Map<String,Object> input)
Updates the objects of the specified entity type.
|
UpsertResult |
upsert(String type,
Map<String,Object> input)
Inserts or updates the objects of the specified entity type.
|
@Processor public List<String> listEntities() throws SuccessFactorsException
SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor public List<DescribeResult> describeEntities(@Default(value="#[payload]") List<String> types) throws SuccessFactorsException
types
- The list of entities from which you want to obtain detailed informationSuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @MetaDataScope(value=InsertMetaData.class) public InsertResult insert(@MetaDataKeyParam(affects=INPUT) String type, @RefOnly@Default(value="#[payload]") Map<String,Object> input) throws SuccessFactorsException
type
- The entity type to be inserted.input
- The processor's input, containing the list of entities to be inserted and extra parameters for configuration.SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @MetaDataScope(value=UpdateMetaData.class) public UpdateResult update(@MetaDataKeyParam(affects=INPUT) String type, @RefOnly@Default(value="#[payload]") Map<String,Object> input) throws SuccessFactorsException
type
- The entity type to be updated.input
- The processor's input, containing the list of entities to be updated and extra parameters for configuration.SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @MetaDataScope(value=UpsertMetaData.class) public UpsertResult upsert(@MetaDataKeyParam(affects=INPUT) String type, @RefOnly@Default(value="#[payload]") Map<String,Object> input) throws SuccessFactorsException
type
- The entity type to be upserted.input
- The processor's input, containing the list of entities to be updated/inserted and extra parameters for configuration.SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @MetaDataScope(value=DeleteMetaData.class) public DeleteResult delete(@MetaDataKeyParam(affects=INPUT) String type, @RefOnly@Default(value="#[payload]") Map<String,Object> input) throws SuccessFactorsException
type
- The entity type to be deleted.input
- The processor's input, containing the list of entities to be deleted and extra parameters for configuration.SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @Paged @MetaDataScope(value=QueryMetaData.class) public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,SuccessFactorsConnector> query(@Query@Default(value="#[payload]") String queryString, @Optional Map<String,String> params, org.mule.streaming.PagingConfiguration pagingConfiguration)
queryString
- The query in SFQL formatparams
- The extra parameters for the query. Optional.pagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.QueryPagingDelegate
that handles the calls to SuccessFactors to run the query.@QueryTranslator public String translate(org.mule.common.query.DsqlQuery queryToTranslate)
@Processor public TaskStatus submitQueryJob(@Default(value="#[payload]") String queryString, @RefOnly@Optional List<SFParameter> params) throws SuccessFactorsException
queryString
- The query in SFQL formatparams
- Extra parameters for configurationSuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor public TaskStatus getJobStatus(@Default(value="#[payload]") String taskId) throws SuccessFactorsException
taskId
- The id of the task to obtain the status informationSuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor public DataHandler getJobResult(@RefOnly@Default(value="#[payload]") GetJobResult params) throws SuccessFactorsException
params
- Extra parameters for configurationSuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor public List<TaskStatus> listJobs() throws SuccessFactorsException
SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor public TaskStatus cancelJob(@Default(value="#[payload]") String taskId) throws SuccessFactorsException
taskId
- The id of the task to cancel the executionSuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.public Config getConfig()
public void setConfig(Config config)
Copyright © 2010–2017. All rights reserved.