Skip to content

Commit 24a4140

Browse files
committed
working copy
1 parent 42e0404 commit 24a4140

File tree

4 files changed

+311
-443
lines changed

4 files changed

+311
-443
lines changed

demo/testcode.html

Lines changed: 11 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
<body class="hljs">
2525
<pre><code class="language-apex">
26-
26+
Map&lt;Id, CustomObject__c&gt; myMap = new Map&lt;Id, CustomObject__c&gt;([SELECT Id FROM Opportunity WHERE Id NOT IN :newRecordsMap.keySet()]);
27+
&lt;Id, String&gt; myMap = new Map&lt;Id, String&gt;{a =&gt; b, c =&gt; d}
2728

2829
delete myAccount;
2930
Account a;
@@ -63,15 +64,6 @@
6364

6465
public String myString { get; set; }
6566

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-
7567
List&lt;SObject&gt; mylist = [SELECT Name, StreetAddress__c, COUNT(),
7668
(SELECT Id FROM Contacts)
7769
FROM Warehouse__c.Contacts__r
@@ -86,10 +78,13 @@
8678
' NULLS LAST LIMIT 1000';
8779

8880
/**
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+
*/
9388
public with sharing class ActionPlanDetailController extends APController {
9489

9590
public enum Season {WINTER, SPRING, SUMMER, FALL}
@@ -133,11 +128,7 @@
133128
return newPage;
134129
}
135130

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+
141132
public Custom__c hasControllingTasks {
142133
get {
143134
hasControllingTasks = false;
@@ -268,21 +259,12 @@
268259
}
269260
}
270261

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+
276263
public Boolean getCanShare() {
277264
return ActionPlansUtilities.canShareRecord(actionPlan.Id, actionPlan.OwnerId);
278265
}
279266

280267
@SuppressWarnings('PMD.AvoidGlobalModifier')
281-
/**
282-
* @group Invocable
283-
* @author {@link [David Schach](https://github.com/dschach)}
284-
* @since 2022
285-
*/
286268
global without sharing class ActionPlanCreateInvocable {
287269
@InvocableMethod
288270
(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,11 +410,6 @@
428410
return resultIDs;
429411
}
430412

431-
/**
432-
* Wrapper class for ActionPlan Request for invocable Apex.
433-
* @author {@link [David Schach](https://github.com/dschach)}
434-
* @since 2022
435-
*/
436413
global class CreateActionPlanRequest {
437414
@InvocableVariable(required=true label='The parent Record ID' description=55)
438415
/**
@@ -488,11 +465,6 @@
488465
}
489466
}
490467

491-
/**
492-
* @description Constructor using passed-in class name constructor for faster performance
493-
* &lt;br&gt;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-
*/
496468
public AccountSampleTriggerHandler(CustomType a, String className) {
497469
this.newRecords = (List&lt;Account&gt;) Trigger.new;
498470
this.newRecordsMap = (Map&lt;Id, Account&gt;) Trigger.newMap;

0 commit comments

Comments
 (0)