ffr.DataViewServiceglobal with sharing class DataViewService Encapsulates all service layer logic for the Dataview functionality. For more guidelines and details see https://developer.salesforce.com/page/Apex_Enterprise_Patterns_-_Service_Layer Date2015 Methods
createNewDataViewglobal static ffr.DataViewService.DataView createNewDataView() Creates a dataview object with no input parameters. Return ValueThis service returns a ffr.DataViewService.DataView object. getDataViewglobal static List<ffr.DataViewService.DataView> getDataView(Set<ID> dataViewIds) Retrieves the specified dataviews. Input Parameters
Return ValueThis service returns a list of ffr.DataViewService.DataView objects. getDataViewglobal static List<ffr.DataViewService.DataView> getDataView(Set<ID> dataViewIds, Boolean isDataviewMaster) Retrieves the specified dataviews. Input Parameters
Return ValueThis service returns a list of ffr.DataViewService.DataView objects. saveglobal static List<ID> save(List<ffr.DataViewService.DataView> dataViews) Saves the specified dataviews. Input Parameters
Return ValueThis service returns a list of ID objects. getDataViewMetadataglobal static Map<String, ffr.CommonService.ObjectMetadata> getDataViewMetadata(Set<Id> dataViewIds) Retrieves all the metadata required by the specified dataviews. Input Parameters
Return ValueThis service returns a map of String, CommonService.ObjectMetadata objects. getDataViewMetadataglobal static Map<String, ffr.CommonService.ObjectMetadata> getDataViewMetadata(Set<Id> dataViewIds, Boolean throwException) Retrieves all the metadata required by the specified dataviews. Input Parameters
Return ValueThis service returns a map of String, CommonService.ObjectMetadata objects. getAllFieldsglobal static List<ffr.CommonService.Identity> getAllFields(Set<ID> dataviewIds) Retrieves a list of all the fields on the specified dataviews. Input Parameters
Return ValueThis service returns a list of CommonService.Identity objects. deleteDataViewglobal static void deleteDataView(Set<Id> dataViewIds) Deletes the specified dataviews. Input Parameters
getActionClassesglobal static List<String> getActionClasses() Input Parameters
Return ValuegetActionInstanceglobal static ffr.IActionViewsAction getActionInstance(String apexClassName) Creates an instance of an action class. Input Parameters
Return ValueThe action class instance. getActionRequirementsglobal static Map<String, Set<Id>> getActionRequirements(ffr.DataViewService.DataView dataView) Gets the fields required as inputs to each action on a dataview. Input Parameters
Return ValueA map of required field Ids keyed by the action class name. getCommonNamePicklistValuesglobal static List<ffr.CommonService.Picklist> getCommonNamePicklistValues() Retrieves a list of all the common names for the org Return ValueA list of CommonService.Picklist getCommonNamePicklistValuesSetglobal static Set<String> getCommonNamePicklistValuesSet() Retrieves a set of all the common name values for the org Return ValueThe set of Common Names values as String ffr.DataViewService.DataViewglobal class DataView Holds a dataview. See "What is a Dataview?" in the FinancialForce Help for more details. Properties
Methods
DataViewglobal DataView(ffr__DataView__c sObj) Creates an API version of a dataview object using the specified parameters. Input Parameters
createSObjectglobal ffr__DataView__c createSObject() Creates an SObject version of the dataview instance from its API version. getActionByIdglobal ffr.DataViewService.Action getActionById(Id actionId) ffr.DataViewService.Fieldglobal class Field Holds details of a field that has been added to a dataview. See "What is a Dataview?" in the FinancialForce Help for more details. Properties
Methods
Fieldglobal Field(ffr__DataViewField__c sObj) Creates an API version of a dataview field object using the specified parameters. Input Parameters
createSObjectglobal ffr__DataViewField__c createSObject() Creates an SObject version of the dataview field instance from its API version. ffr.DataViewService.TransposeItemglobal class TransposeItem Holds a transpose mapping of value to field. Properties
Methods
TransposeItemglobal TransposeItem(ffr__DataViewTransposeItem__c sObj) Creates an API version of an empty transpose item object. Input Parameters
createSObjectglobal ffr__DataViewTransposeItem__c createSObject() Creates an SObject version of the dataview transpose item instance from its API version. ffr.DataViewService.DataViewJoinglobal class DataViewJoin Holds details of a dataview join. See "What is a Dataview?" in the FinancialForce Help for more details. Properties
Methods
DataViewJoinglobal DataViewJoin(ffr__DataViewJoin__c sObj, Schema.DescribeSObjectResult relatedObj) Creates an API version of a dataview join object using the specified parameters. Input Parameters
createSObjectglobal ffr__DataViewJoin__c createSObject() Creates an SObject version of the dataview join instance from its API version. ffr.DataViewService.DataViewJoinFilterglobal class DataViewJoinFilter Holds details of a join filter that has been applied to a relationship join. See "What is a Dataview?" in the FinancialForce Help for more details. Properties
Methods
DataViewJoinFilterglobal DataViewJoinFilter() Creates an API version of an empty dataview join filter object. DataViewJoinFilterglobal DataViewJoinFilter(ffr__DataViewJoinFilter__c sObj) Creates an API version of a dataview join filter object using the specified parameters. createSObjectglobal ffr__DataViewJoinFilter__c createSObject() Creates an SObject version of the dataview join filter instance from its API version. ffr.DataViewService.Actionglobal class Action Holds details of an action that has been configured on a dataview. See "What is a Dataview?" in the FinancialForce Help for more details. Properties
Methods
Actionglobal Action(ffr__DataViewAction__c sObj, Boolean singleSelect, List<ffr.DataViewService.ParameterMetadataType> metadataList) Creates an API version of an action object using the specified parameters. Input Parameters
createSObjectglobal ffr__DataViewAction__c createSObject() Creates an SObject version of the dataview action instance from its API version. ffr.DataViewService.SelectionOptionglobal class SelectionOption Holds details of any selection options offered for a parameter. Properties
MethodsSelectionOptionglobal SelectionOption() Creates an API version of an empty selection option object. SelectionOptionglobal SelectionOption(String key, String label) Creates an API version of an empty selection option object. Input Parameters
ffr.DataViewService.ParameterMetadataTypeglobal class ParameterMetadataType Holds a parameter that the user needs to complete at runtime when invoking an action from within Online Inquiries. Properties
Methods
ParameterMetadataTypeglobal ParameterMetadataType() Creates an API version of an empty parameter metadata object. ParameterMetadataTypeglobal ParameterMetadataType(String key, String label, String type) Creates an API version of a parameter metadata object using the specified parameters. Input Parameters
ParameterMetadataTypeglobal ParameterMetadataType(String key, String label, String type, String value, Boolean readOnly, List<ffr.DataViewService.SelectionOption> selectionOptions) Creates an API version of a parameter metadata object using the specified parameters. Input Parameters
ffr.DataViewService.CommonNamePicklistFieldglobal class CommonNamePicklistField Holds the object and field names of a common name picklist Properties
Methods
CommonNamePicklistFieldglobal CommonNamePicklistField() Creates an API version of an empty Common Name Picklist object. CommonNamePicklistFieldglobal CommonNamePicklistField(String objectName, String fieldName) Creates an API version of an empty Common Name Picklist object using the specified parameters. Input Parameters
|