fferpcore.UserInformationPluginglobal class UserInformationPlugin This class provides interfaces which are used during the running of the Apply User Information batch job. fferpcore.UserInformationPlugin.Workglobal interface Work An interface to be implemented to create your own plugin for the Apply User Information batch job. Methods
hasAccessString hasAccess() Returns a string to determine if the current user has access to run this plugin. Return ValueAn error message when insufficient access or null when sufficient access. processUserInformationPlugin.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. Input Parameters
Return ValueAn object with errors that occurred during the running of the plugin. fferpcore.UserInformationPlugin.Requestglobal interface Request An interface which contains the data to perform work on. This is only used in the UserInformationPlugin.Work.process method. Methods
getDataToCreateByUserIdMap<Id, Set<String>> getDataToCreateByUserId() Return ValueA map of data to create keyed by the Salesforce User ID. getDataToDeleteByUserIdMap<Id, Set<String>> getDataToDeleteByUserId() Return ValueA map of data to delete keyed by the Salesforce User ID. getAssignmentIdsSet<Id> getAssignmentIds(Id userId, String data) Return ValueThe IDs of any User Information Assignments corresponding to the given user ID and data. fferpcore.UserInformationPlugin.Responseglobal 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. MethodsaddErrorvoid addError(Id assignmentId, String error) Stores an error about the provided User Information Assignment. Input Parameters
getErrorsList<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. Input Parameters
Return ValueLogged errors for the provided Salesforce User ID. |