pse.VersionConfigServiceglobal with sharing class VersionConfigService Service to create, modify and validate custom configurations for Project Versioning and Baselines. Methods
deleteVersionConfigDetailsglobal static void deleteVersionConfigDetails(List<Id> configIds) This method deletes the Version_Config__c objects with the list of IDs as passed in. Input Parameters
Sample Code
getActiveVersionConfigglobal static pse__Version_Config__c getActiveVersionConfig() This method returns the active Version_Config__c object, or the standard Version_Config__c object if there is not an active custom config. Return ValueThe active Version_Config__c record. Sample Code
getAllVersionConfigDetailsglobal static pse.VersionConfigService.VersionConfigDetails[] getAllVersionConfigDetails() This method loads the ID, Unique_Name__c, Default__c, Summary__c and LastModifiedDate fields on all Version_Config__c objects Return ValueList of Version_Config__c records. Sample Code
getConfigByIdglobal static pse__Version_Config__c getConfigById(Id configId) This method returns the Version_Config__c object with the ID as passed in. Input Parameters
Return ValueThe Version_Config__c object with the given ID. Sample Code
getVersionCaptureConfigByIdglobal static pse.VersionConfigService.VersionCaptureConfig getVersionCaptureConfigById(Id configId) This method returns the VersionCaptureConfig object with the ID as passed in. Input Parameters
Return ValueThe VersionCaptureConfig object with the given ID. Sample Code
saveCaptureConfigglobal static pse.VersionConfigService.VersionCaptureConfig saveCaptureConfig(Id configId, pse.VersionConfigService.VersionCaptureConfig toSave) This method saves the given VersionCaptureConfig to the Version_Config__c object with the given ID. Input Parameters
Return ValueThe saved VersionConfigService.VersionCaptureConfig. Sample Code
saveVersionConfigDetailsglobal static pse.VersionConfigService.VersionConfigDetails[] saveVersionConfigDetails(List<pse.VersionConfigService.VersionConfigDetails> details) This method saves the given list of VersionConfigDetails to their equivalent Version_Config__c objects. Input Parameters
Return ValueUpdated VersionConfigService.VersionConfigDetails records. Sample Code
validateCaptureConfigglobal static pse.VersionConfigService.ValidationResult[] validateCaptureConfig(Id[] configIds) This method retrieves the Version_Config__c records with the given IDs and validates the VersionCaptureConfigs contained within. Input Parameters
Return ValueReturns a list of validation results. One result per ID is returned in the order as given. Sample Code
validateCaptureConfigglobal static pse.VersionConfigService.ValidationResult[] validateCaptureConfig(pse.VersionConfigService.VersionCaptureConfig[] captureConfigs) This method validates the given VersionCaptureConfig objects. Input Parameters
Return ValueReturns a list of validation results. One result per ID is returned in the order as passed. Sample Code
pse.VersionConfigService.VersionConfigDetailsglobal inherited sharing class VersionConfigDetails Lightweight DTO for the details of the Version_Config__c object excluding the Capture_Config__c field. Used for quickly saving changes to the object such as Unique_Name__c and Default__c Properties
MethodsVersionConfigDetailsglobal VersionConfigDetails() pse.VersionConfigService.VersionCaptureConfigglobal inherited sharing class VersionCaptureConfig A representation of the whole capture configuration. Properties
MethodsVersionCaptureConfigglobal VersionCaptureConfig() pse.VersionConfigService.VersionCaptureObjectglobal inherited sharing class VersionCaptureObject A representation of an object you want to version. Properties
MethodsVersionCaptureObjectglobal VersionCaptureObject() pse.VersionConfigService.VersionCaptureFieldglobal inherited sharing class VersionCaptureField A representation of the field you want to capture. Properties
MethodsVersionCaptureFieldglobal VersionCaptureField() pse.VersionConfigService.ValidationResultglobal inherited sharing class ValidationResult An instance of this object contains the results of a validation. Properties
MethodsValidationResultglobal ValidationResult() pse.VersionConfigService.ValidationFailureglobal inherited sharing class ValidationFailure An object denoting a failure in the VersionConfigValidator, to be created from a ValidationResultWrapper. Properties
MethodsValidationFailureglobal ValidationFailure() |