Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCMOHAD-27236, Content Version settings and Chatter Settings Updated #1450

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion force-app/main/default/classes/ContentTriggerHandler.cls
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
public without sharing class ContentTriggerHandler {
/*
public static void createPublicLinkForFile(List<ContentVersion> contentVersions) {
ContentDistribution[] distributionsToInsert = new List<ContentDistribution>();
for (ContentVersion objContentVersion: contentVersions) {
Expand All @@ -22,4 +23,5 @@ public without sharing class ContentTriggerHandler {
System.debug( 'createContentDistribution created' );
return newDist;
}
}
*/
}
4 changes: 3 additions & 1 deletion force-app/main/default/classes/ContentTriggerHandlerTest.cls
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@isTest
public class ContentTriggerHandlerTest {
@isTest
/* @isTest

public static void ContentTriggerHandlerTest() {
Case record = TestFactory.createCase();
insert record;
Expand All @@ -26,4 +27,5 @@ public class ContentTriggerHandlerTest {

ContentTriggerHandler.createPublicLinkForFile(cvl);
}
*/
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
trigger contentVersionExternalLink on ContentVersion (after insert) {
ContentTriggerHandler.createPublicLinkForFile(trigger.new);
//ContentTriggerHandler.createPublicLinkForFile(trigger.new);
}
Loading