@Connector(name="successfactors", schemaVersion="1.1.4", friendlyName="Success Factors", minMuleVersion="3.7") @ReconnectOn(exceptions=SuccessFactorsSessionExpiredException.class) @RequiresEnterpriseLicense 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,
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 @NotNull public List<String> listEntities() throws SuccessFactorsException
SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @NotNull public List<DescribeResult> describeEntities(@Default(value="#[payload]")@NotNull 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) @NotNull public InsertResult insert(@MetaDataKeyParam(affects=INPUT)@NotNull String type, @Default(value="#[payload]")@NotNull 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) @NotNull public UpdateResult update(@MetaDataKeyParam(affects=INPUT)@NotNull String type, @Default(value="#[payload]")@NotNull 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) @NotNull public UpsertResult upsert(@MetaDataKeyParam(affects=INPUT)@NotNull String type, @Default(value="#[payload]")@NotNull 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) @NotNull public DeleteResult delete(@MetaDataKeyParam(affects=INPUT)@NotNull String type, @Default(value="#[payload]")@NotNull 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) @NotNull public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,SuccessFactorsConnector> query(@Default(value="#[payload]")@Query@NotNull String queryString, @RefOnly@NotNull org.mule.streaming.PagingConfiguration pagingConfiguration)
queryString
- The query in SFQL formatpagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.QueryPagingDelegate
that handles the calls to SuccessFactors to run the query.@QueryTranslator @NotNull public String translate(@NotNull org.mule.common.query.DsqlQuery queryToTranslate)
@Processor @NotNull public TaskStatus submitQueryJob(@Default(value="#[payload]")@NotNull String queryString, @RefOnly@Optional@Nullable 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 @NotNull public TaskStatus getJobStatus(@Default(value="#[payload]")@NotNull 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 @NotNull public DataHandler getJobResult(@Default(value="#[payload]")@RefOnly@NotNull 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 @NotNull public List<TaskStatus> listJobs() throws SuccessFactorsException
SuccessFactorsException
- If any error occurs throw this exception with a personalized code and message for each case.@Processor @NotNull public TaskStatus cancelJob(@Default(value="#[payload]")@NotNull 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.@NotNull public Config getConfig()
public void setConfig(@NotNull Config config)
Copyright © 2010–2015. All rights reserved.