ffr.CommonServiceglobal with sharing class CommonService Encapsulates all service layer logic for Common functionality. For more guidelines and details see https://developer.salesforce.com/page/Apex_Enterprise_Patterns_-_Service_Layer Date2016 Methods
lookupglobal static List<ffr.CommonService.Identity> lookup(String targetObject, String namePrefix) Retrieves all indentities of the given object Input Parameters
Return ValueThis service returns a list of ffr.CommonService.Identity objects. selectIdentitiesByIdsglobal static List<ffr.CommonService.Identity> selectIdentitiesByIds(String targetObject, Set<ID> ids) Retrieves indentities of the given object with ids in given ids Input Parameters
Return ValueThis service returns a list of ffr.CommonService.Identity objects. lookupChildrenByParentIdsglobal static List<ffr.CommonService.Identity> lookupChildrenByParentIds(String childObject, String parentFieldName, Set<ID> ids) Retrieves indentities of the given object with parent id in given ids Input Parameters
Return ValueThis service returns a list of ffr.CommonService.Identity objects. getObjectListglobal static List<String> getObjectList() Retrieves a list of all sObjects in the org Return ValueThis service returns a list of object names as strings getObjectMetadataglobal static Map<String, ffr.CommonService.ObjectMetadata> getObjectMetadata(Set<String> objects, Boolean throwException, Boolean getAllFields) Retrieves metadata for given objects Input Parameters
Return ValueThis service returns a map of object name (string) to the metadata. getObjectMetadataglobal static Map<String, ffr.CommonService.ObjectMetadata> getObjectMetadata(Set<String> objects, Boolean throwException, Boolean getAllFields, Boolean getLookups) Retrieves metadata for given objects Input Parameters
Return ValueThis service returns a map of object name (string) to the metadata. getObjectMetadataglobal static Map<String, ffr.CommonService.ObjectMetadata> getObjectMetadata(Set<String> objects, Boolean throwException) Retrieves metadata for given objects Input Parameters
Return ValueThis service returns a map of object name (string) to the metadata. getPicklistOptionsglobal static List<ffr.CommonService.Picklist> getPicklistOptions(Schema.DescribeFieldResult picklistField) Retrieves the picklist information for a field Input Parameters
Return ValueThis service returns a list of ffr.CommonService.Picklist objects. ffr.CommonService.ObjectMetadataglobal class ObjectMetadata Stores salesforce SObject metadata Properties
ffr.CommonService.Fieldglobal class Field Stores metadata for a salesforce field Properties
ffr.CommonService.Relationshipglobal class Relationship Holds information about a relationship on a field Properties
ffr.CommonService.Picklistglobal class Picklist Holds picklist information for picklist fields Properties
ffr.CommonService.Identityglobal class Identity Hold identity information for an entity Properties
Methods
Identityglobal Identity(ID anId) Creates an API version of an Identity. Input Parameters
Identityglobal Identity(String aName) Creates an API version of an Identity. Input Parameters
Identityglobal Identity(ID anId, String aName) Creates an API version of an Identity. Input Parameters
hashCodeglobal Integer hashCode() Gets the Hash code of the Identity. Return ValueThe hash code using the Id or in the case of an identity without an Id the Name is used equalsglobal Boolean equals(Object obj) Checks whether the Identity represents a given object. Input Parameters
Return ValueThe boolean result of the equality check ffr.CommonService.Sizeglobal class Size Holds size information Properties
MethodsSizeglobal Size(Integer width, Integer height) Creates an API version of a Size object using the specified parameters. Input Parameters
ffr.CommonService.SObjectNamespaceHelperglobal class SObjectNamespaceHelper Resolves a Namespace qualified sobject name to obtain name and namespace seperately. This can handle the default namespace from inside or outside a package. Properties
MethodsSObjectNamespaceHelperglobal SObjectNamespaceHelper(String fullyQualifiedName) Creates a SObjectNamespaceHelper. Input Parameters
ffr.CommonService.ClassFactoryglobal class ClassFactory Resolves a Namespace qualified class name to find the class type or create an instance. This can handle the default namespace from inside or outside a package. Properties
MethodsClassFactoryglobal ClassFactory(String fullyQualifiedName) Creates a ClassFactory. Input Parameters
newInstanceglobal Object newInstance() Creates an instance of the current type and returns this new instance. |