Badge wrapped object with camel case properties. Each properties maps to a field on the SObject that has _ for each capital letter. Ex. (badgeType -> Badge_Type__c)
Maps To: OrderApi__Badge__c

Badges are assigned to Contacts either automatically (Badge Workflow) or manually. Badges can enable Contacts for special Price Rules - as well as permission to read, update, or delete certain content types.

Method Summary

Modifier and Type Method and Description
Badge getInstance()
Badge getInstance(OrderApi__Badge__c badge)
List<Badge> getInstance(List badgeObjs)
List<Badge> getInstance(List badgeObjs,String className)
void Badge()

Method Detail

This class supports the following methods:

global static Badge getInstance()

Get base instance with no initial S0bject.


global static Badge getInstance(OrderApi__Badge__c badge)

Get base instance with an initial SObject.
Parameters

Name Type Description
badge OrderApi__Badge__c OrderApi__Badge__c

global static List<Badge> getInstance(List<OrderApi__Badge__c> badgeObjs)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
badgeObjs List<OrderApi__Badge__c> List

global static List<Badge> getInstance(List<OrderApi__Badge__c> badgeObjs,String className)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
badgeObjs List<OrderApi__Badge__c> List
className String undefined

global Badge()

Badge Constructor that should not be called directly.


Properties

Name Type Description
id Id
contact Id Link to the assigned Contact.
account Id Link to the assigned Account.
badgeType Id
isActive Boolean When checked, the Badge is considered "Awarded" and "Active" and will be considered when calculating any permission or pricing configurations related to the linked Badge Type. Defaults checked.