-
Notifications
You must be signed in to change notification settings - Fork 13
Safely
STATUS: ACTIVE
Class wraps DML Calls in FLS / Crud checks.
TESTVISIBLE
TESTVISIBLE
Triggers the flag to throw an exception if fields are removed
Type | Description |
---|---|
Safely | Safely - the current instance of the Safely class |
Sets the throwIfRemovedFields flag to true
Type | Description |
---|---|
Safely | Safely - the current instance of the Safely class |
A method for safely inserting a list of records
Param | Description |
---|---|
records |
the records to insert |
Type | Description |
---|---|
List<Database.SaveResult> | List<Database.saveResult> - the results of the insert |
A method for safely inserting a single record
Param | Description |
---|---|
record |
SObject - the record to insert |
Type | Description |
---|---|
List<Database.SaveResult> | List<Database.SaveResult> - the results of the insert |
A method for safely updating a list of records
Param | Description |
---|---|
records |
List - the records to update |
Type | Description |
---|---|
List<Database.SaveResult> | List<Database.SaveResult> - the results of the update |
a method for safely updating a single record
Param | Description |
---|---|
record |
SObject - the record to update |
Type | Description |
---|---|
List<Database.SaveResult> | List<Database.SaveResult> - the results of the update |
A method for safely upserting a list of records
Param | Description |
---|---|
records |
List - the records to upsert |
Type | Description |
---|---|
List<Database.UpsertResult> | List<Database.UpsertResult> - the results of the upsert |
a method for safely upserting a single record
Param | Description |
---|---|
record |
SObject - the record to upsert |
Type | Description |
---|---|
List<Database.UpsertResult> | List<Database.UpsertResult> - the results of the upsert |
a method for safely deleting a list of records
Param | Description |
---|---|
records |
List - the records to delete |
Type | Description |
---|---|
List<Database.DeleteResult> | List<Database.DeleteResult> - the results of the delete |
a method for safely deleting a single record
Param | Description |
---|---|
record |
SOBject - the record to delete |
Type | Description |
---|---|
List<Database.DeleteResult> | List<Database.DeleteResult> - the results of the delete call |
A method for safely querying records
Param | Description |
---|---|
query |
String - the query to execute |
Type | Description |
---|---|
List | List - the results of the query |
A method for safely performing DML
Param | Description |
---|---|
accessType |
AccessType - the type of access to check for |
records |
List - the records to perform a Security Access Decision on |
Type | Description |
---|---|
List<Database.SaveResult> | List<Database.SaveResult> - the results of the DML call |
method guards against removed fields by throwing an exception, if throwIfRemovedFields is enabled
Param | Description |
---|---|
accessType |
AccessType - the type of access to check for |
records |
List - the records to perform a Security Access Decision on |
Type | Description |
---|---|
SObjectAccessDecision | SObjectAccessDecision - the results of the Security Access Decision |
A custom exception that is thrown from the safely class
Inheritance
RemovedFieldsException