fferpcore.SObjectPluginglobal abstract class SObjectPlugin implements UserInformationPlugin.Work Template for a UMT plugin that creates SObjects, each of which links to a user ID and another SObject. For example, create permission set assignments, each of which links to a user ID and a permission set. This class implements the following interfaces: Methods
hasAccessglobal abstract String hasAccess() Determines if the current user has access to run this plugin. Return ValueAn error message when insufficient access, or null when sufficient access. getTargetObjectTypeglobal abstract SObjectType getTargetObjectType() Return ValueThe SObjectType of the records to be created by the plugin. getLinkedObjectsglobal abstract List<SObject> getLinkedObjects(Set<String> data) Input Parameters
Return ValueThe SObjects that the target objects will be linked to. For example, permission set records. getTargetObjectsglobal abstract List<SObject> getTargetObjects(Set<Id> userIds, Set<String> data) Input Parameters
Return ValueAny existing target objects for the given user IDs and data. getTargetUserIdglobal abstract Id getTargetUserId(SObject targetObject) Input Parameters
Return ValueThe user ID specified on the given target record. getTargetLinkedDataglobal abstract String getTargetLinkedData(SObject targetObject) Input Parameters
Return ValueThe data specified on the given target record. getLinkedObjectDataglobal abstract String getLinkedObjectData(SObject linkedObject) Input Parameters
Return ValueThe data specified on the given linked record. createTargetglobal abstract SObject createTarget(Id userId, SObject linkedObject) Create a target record for the given user ID and linked record. Input Parameters
Return ValueThe new target record. |