global class UserInformationPlugin
This class provides interfaces which are used during the running of the Apply User Information batch job.
global interface Work
An interface to be implemented to create your own plugin for the Apply User Information batch job.
Returns a string to determine if the current user has access to run this plugin.
An error message when insufficient access or null when sufficient access.
UserInformationPlugin.Response process(fferpcore.UserInformationPlugin.Request request)
Works over the data in the provided request to perform actions specific to this UserInformationPlugin.Work. For example, we could create/delete records based on the requests data.
An object with errors that occurred during the running of the plugin.
global interface Request
An interface which contains the data to perform work on. This is only used in the UserInformationPlugin.Work.process method.
Map<Id, Set<String>> getDataToCreateByUserId()
A map of data to create keyed by the Salesforce User ID.
Map<Id, Set<String>> getDataToDeleteByUserId()
A map of data to delete keyed by the Salesforce User ID.
Set<Id> getAssignmentIds(Id userId, String data)
The IDs of any User Information Assignments corresponding to the given user ID and data.
global interface Response
A response from the UserInformationPlugin.Work.process method which contains errors about users that occurred during the execution of the UserInformationPlugin.Work.process method.
void addError(Id assignmentId, String error)
Stores an error about the provided User Information Assignment.
List<String> getErrors(Id assignmentId)
Find and returns all logged errors for the provided User Information Assignment ID. If no errors have been logged, then null should be returned.
Logged errors for the provided Salesforce User ID.