|
23 | 23 |
|
24 | 24 | <body class="hljs">
|
25 | 25 | <pre><code class="language-apex">
|
26 |
| - |
| 26 | + Map<Id, CustomObject__c> myMap = new Map<Id, CustomObject__c>([SELECT Id FROM Opportunity WHERE Id NOT IN :newRecordsMap.keySet()]); |
| 27 | + <Id, String> myMap = new Map<Id, String>{a => b, c => d} |
27 | 28 |
|
28 | 29 | delete myAccount;
|
29 | 30 | Account a;
|
|
63 | 64 |
|
64 | 65 | public String myString { get; set; }
|
65 | 66 |
|
66 |
| - /* |
67 |
| - Copyright (c) 2022, salesforce.com, inc. |
68 |
| - All rights reserved. |
69 |
| - SPDX-License-Identifier: BSD-3-Clause |
70 |
| - For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause |
71 |
| - 'This is a string in a comment' |
72 |
| - @throws DMLException |
73 |
| - */ |
74 |
| - |
75 | 67 | List<SObject> mylist = [SELECT Name, StreetAddress__c, COUNT(),
|
76 | 68 | (SELECT Id FROM Contacts)
|
77 | 69 | FROM Warehouse__c.Contacts__r
|
|
86 | 78 | ' NULLS LAST LIMIT 1000';
|
87 | 79 |
|
88 | 80 | /**
|
89 |
| - * @author {@link [David Schach](https://github.com/dschach)} |
90 |
| - * @group Visualforce |
91 |
| - * @since 2022 |
92 |
| - */ |
| 81 | + * Display ControllingTasks column only if there are controlling tasks |
| 82 | + * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause |
| 83 | + * @author {@link [David Schach](https://github.com/dschach)} |
| 84 | + * @return `Boolean` is the Controller__c field populated for any Action Plan Tasks? |
| 85 | + 'This is a string in a comment' |
| 86 | + @throws DMLException |
| 87 | + */ |
93 | 88 | public with sharing class ActionPlanDetailController extends APController {
|
94 | 89 |
|
95 | 90 | public enum Season {WINTER, SPRING, SUMMER, FALL}
|
|
133 | 128 | return newPage;
|
134 | 129 | }
|
135 | 130 |
|
136 |
| - /** |
137 |
| - * Display ControllingTasks column only if there are controlling tasks |
138 |
| - * @author {@link [David Schach](https://github.com/dschach)} |
139 |
| - * @return `Boolean` is the Controller__c field populated for any Action Plan Tasks? |
140 |
| - */ |
| 131 | + |
141 | 132 | public Custom__c hasControllingTasks {
|
142 | 133 | get {
|
143 | 134 | hasControllingTasks = false;
|
|
268 | 259 | }
|
269 | 260 | }
|
270 | 261 |
|
271 |
| - /** |
272 |
| - * If we have no share object, we don't need to show a Share button |
273 |
| - * @author {@link [David Schach](https://github.com/dschach)} |
274 |
| - * @return `Boolean` Does the user have permission to share this Action Plan? |
275 |
| - */ |
| 262 | + |
276 | 263 | public Boolean getCanShare() {
|
277 | 264 | return ActionPlansUtilities.canShareRecord(actionPlan.Id, actionPlan.OwnerId);
|
278 | 265 | }
|
279 | 266 |
|
280 | 267 | @SuppressWarnings('PMD.AvoidGlobalModifier')
|
281 |
| - /** |
282 |
| - * @group Invocable |
283 |
| - * @author {@link [David Schach](https://github.com/dschach)} |
284 |
| - * @since 2022 |
285 |
| - */ |
286 | 268 | global without sharing class ActionPlanCreateInvocable {
|
287 | 269 | @InvocableMethod
|
288 | 270 | (label='Create Action Plan From Template' description='Takes a Template Name/Id and Record Id and makes an Action Plan for that record.' category=77)
|
|
428 | 410 | return resultIDs;
|
429 | 411 | }
|
430 | 412 |
|
431 |
| - /** |
432 |
| - * Wrapper class for ActionPlan Request for invocable Apex. |
433 |
| - * @author {@link [David Schach](https://github.com/dschach)} |
434 |
| - * @since 2022 |
435 |
| - */ |
436 | 413 | global class CreateActionPlanRequest {
|
437 | 414 | @InvocableVariable(required=true label='The parent Record ID' description=55)
|
438 | 415 | /**
|
|
488 | 465 | }
|
489 | 466 | }
|
490 | 467 |
|
491 |
| - /** |
492 |
| - * @description Constructor using passed-in class name constructor for faster performance |
493 |
| - * <br>We cast all four trigger collections |
494 |
| - * @param className The name of this class. Pass in the string to make the handler run faster |
495 |
| - */ |
496 | 468 | public AccountSampleTriggerHandler(CustomType a, String className) {
|
497 | 469 | this.newRecords = (List<Account>) Trigger.new;
|
498 | 470 | this.newRecordsMap = (Map<Id, Account>) Trigger.newMap;
|
|
0 commit comments