Service class to execute access permissions.
Method Summary
Modifier and Type | Method and Description |
---|---|
AccessPermissionService | getInstance() |
AccessPermissionService | getInstance(String version) |
void | AccessPermissionService() |
void | setCustomerId(Id customerId) |
void | setCustomerIds(Set |
void | hasAccess(SObject sObj) |
void | hasAccess(List |
void | hasAccessByContacts(List |
Method Detail
This class supports the following methods:
global static AccessPermissionService getInstance()
Get Instance of AccessPermissionService
global static AccessPermissionService getInstance(String version)
Get Instance of AccessPermissionVersionedService
Parameters
Name | Type | Description |
---|---|---|
version | String | undefined |
global AccessPermissionService()
AccessPermissionService Constructor that should not be called directly.
global virtual void setCustomerId(Id customerId)
Parameters
Name | Type | Description |
---|---|---|
customerId | Id | undefined |
global virtual void setCustomerIds(Set<Id> customerIds)
Parameters
Name | Type | Description |
---|---|---|
customerIds | Set<Id> | undefined |
global virtual Boolean hasAccess(SObject sObj)
Parameters
Name | Type | Description |
---|---|---|
sObj | SObject | undefined |
global virtual List<SObject> hasAccess(List<SObject> sObjs)
Parameters
Name | Type | Description |
---|---|---|
sObjs | List<SObject> | undefined |
global virtual Map<Id,Set<Id>> hasAccessByContacts(List<SObject> sObjs)
Parameters
Name | Type | Description |
---|---|---|
sObjs | List<SObject> | undefined |