Accounting API Developer's Reference
|
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 EnumsTransactionTypeThe different possible transaction types Methods
lookupglobal 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. selectIdentitiesByIdsglobal 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. lookupChildrenByParentIdsglobal 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. 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. c2g.CommonService.ObjectMetadataglobal class ObjectMetadata Stores salesforce SObject metadata Properties
c2g.CommonService.Fieldglobal class Field Stores metadata for a salesforce field Properties
c2g.CommonService.Relationshipglobal class Relationship Holds information about a relationship on a field Properties
c2g.CommonService.Picklistglobal class Picklist Holds picklist information for picklist fields Properties
c2g.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(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 |