c2g.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 This class contains deprecated items. EnumsTransactionTypeThe different possible transaction types Methods
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, c2g.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, c2g.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, c2g.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<c2g.CommonService.Picklist> getPicklistOptions(Schema.DescribeFieldResult picklistField) Retrieves the picklist information for a field Input Parameters
Return ValueThis service returns a list of c2g.CommonService.Picklist objects. DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Methods
lookupDeprecated: This method is no longer in use global static List<c2g.CommonService.Identity> lookup(String targetObject, String namePrefix) Retrieves all indentities of the given object Input Parameters
Return ValueThis service returns a list of c2g.CommonService.Identity objects. selectIdentitiesByIdsDeprecated: This method is no longer in use global static List<c2g.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 c2g.CommonService.Identity objects. lookupChildrenByParentIdsDeprecated: This method is no longer in use global static List<c2g.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 c2g.CommonService.Identity objects. c2g.CommonService.ObjectMetadataglobal with sharing class ObjectMetadata Stores salesforce SObject metadata Properties
c2g.CommonService.Fieldglobal with sharing class Field Stores metadata for a salesforce field Properties
c2g.CommonService.Relationshipglobal with sharing class Relationship Holds information about a relationship on a field Properties
c2g.CommonService.Picklistglobal with sharing class Picklist Holds picklist information for picklist fields Properties
c2g.CommonService.Identityglobal with sharing 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(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 |