55import org .jetbrains .annotations .Nullable ;
66import org .junit .Assert ;
77import org .junit .Test ;
8- import org .labkey .api .announcements .DiscussionService .StatusOption ;
98import org .labkey .api .announcements .api .Announcement ;
109import org .labkey .api .announcements .api .AnnouncementService ;
10+ import org .labkey .api .announcements .api .AnnouncementService .StatusOption ;
1111import org .labkey .api .data .Container ;
1212import org .labkey .api .data .ContainerManager ;
1313import org .labkey .api .markdown .MarkdownService ;
@@ -97,7 +97,7 @@ private static void notifyUserAction(ExperimentAnnotations expAnnotations, Journ
9797 .append (" You will receive a confirmation message after your data has been copied." );
9898 messageBody .append (NL );
9999 appendSubmissionDetails (expAnnotations , journal , je , submission , currentJournalCopy , messageBody );
100- postNotification (expAnnotations , journal , je , messageBody , true , action .title (), StatusOption .Active , user );
100+ postNotification (expAnnotations , journal , je , messageBody , true , action .title (), AnnouncementService . StatusOption .Active , user );
101101 }
102102
103103 @ NotNull
@@ -120,7 +120,7 @@ public static void notifyDeleted(ExperimentAnnotations expAnnotations, Journal j
120120 messageBody .append (NL ).append ("* Folder: " ).append (getContainerLink (expAnnotations .getContainer ()));
121121 messageBody .append (NL ).append ("* ExperimentID: " ).append (expAnnotations .getId ());
122122
123- postNotification (expAnnotations , journal , je , messageBody , false , ACTION .DELETED .title (), StatusOption .Closed , user );
123+ postNotification (expAnnotations , journal , je , messageBody , false , ACTION .DELETED .title (), AnnouncementService . StatusOption .Closed , user );
124124 }
125125
126126 public static void notifyCopied (ExperimentAnnotations srcExpAnnotations , ExperimentAnnotations targetExpAnnotations , Journal journal ,
@@ -133,7 +133,7 @@ public static void notifyCopied(ExperimentAnnotations srcExpAnnotations, Experim
133133 ACTION action = isRecopy ? ACTION .RECOPIED : ACTION .COPIED ;
134134
135135 postNotification (journal , je , messageBody , user /* User is either a site admin or a Panorama Public admin, and should have permissions to post*/ ,
136- action .title (), StatusOption .Closed , getNotifyList (srcExpAnnotations , user ));
136+ action .title (), AnnouncementService . StatusOption .Closed , getNotifyList (srcExpAnnotations , user ));
137137 }
138138
139139 public static void notifyDataPublished (ExperimentAnnotations srcExperiment , ExperimentAnnotations journalCopy , Journal journal ,
@@ -194,8 +194,8 @@ else if (addedPublication)
194194
195195 postNotification (srcExperiment , journal , je , messageBody , false , ACTION .PUBLISHED .title (),
196196 (doiError != null || journalCopy .hasPxid ())
197- ? StatusOption .Active
198- : StatusOption .Closed ,
197+ ? AnnouncementService . StatusOption .Active
198+ : AnnouncementService . StatusOption .Closed ,
199199 user );
200200 }
201201
@@ -209,7 +209,7 @@ public static void notifyCatalogEntryAdded(ExperimentAnnotations srcExperiment,
209209 .append (LookAndFeelProperties .getInstance (ContainerManager .getRoot ()).getShortName ())
210210 .append (" (" ).append (AppProps .getInstance ().getBaseServerUrl ()).append (")." );
211211
212- postNotification (srcExperiment , journal , je , messageBody , false , ACTION .CATALOG_ENTRY .title (), StatusOption .Active , user );
212+ postNotification (srcExperiment , journal , je , messageBody , false , ACTION .CATALOG_ENTRY .title (), AnnouncementService . StatusOption .Active , user );
213213 }
214214
215215 private static void postNotification (ExperimentAnnotations experimentAnnotations , Journal journal , JournalExperiment je ,
@@ -319,7 +319,7 @@ public static void postPrivateStatusExtensionMessage(@NotNull Journal journal, @
319319 messageBody .append (NL2 ).append ("Best regards," );
320320 messageBody .append (NL ).append (getUserName (journalAdmin ));
321321
322- postNotificationFullTitle (journal , je , messageBody .toString (), journalAdmin , messageTitle , StatusOption .Closed , null );
322+ postNotificationFullTitle (journal , je , messageBody .toString (), journalAdmin , messageTitle , AnnouncementService . StatusOption .Closed , null );
323323 }
324324
325325 public static void postDataDeletionRequestMessage (@ NotNull Journal journal , @ NotNull JournalExperiment je , @ NotNull ExperimentAnnotations expAnnotations , User submitter )
@@ -355,7 +355,7 @@ public static void postDataDeletionRequestMessage(@NotNull Journal journal, @Not
355355 messageBody .append (NL2 ).append ("Best regards," );
356356 messageBody .append (NL ).append (getUserName (journalAdmin ));
357357
358- postNotificationFullTitle (journal , je , messageBody .toString (), journalAdmin , messageTitle , StatusOption .Active , null );
358+ postNotificationFullTitle (journal , je , messageBody .toString (), journalAdmin , messageTitle , AnnouncementService . StatusOption .Active , null );
359359 }
360360
361361
@@ -365,7 +365,7 @@ public static void postPrivateDataReminderMessage(@NotNull Journal journal, @Not
365365 {
366366 String message = getDataStatusReminderMessage (expAnnotations , submitter , js , announcement , announcementsContainer , journalAdmin );
367367 String title = "Action Required: Status Update for Your Private Data on Panorama Public" ;
368- postNotificationFullTitle (journal , js .getJournalExperiment (), message , messagePoster , title , StatusOption .Closed , notifyUsers );
368+ postNotificationFullTitle (journal , js .getJournalExperiment (), message , messagePoster , title , AnnouncementService . StatusOption .Closed , notifyUsers );
369369 }
370370
371371 public static String getDataStatusReminderMessage (@ NotNull ExperimentAnnotations exptAnnotations , @ NotNull User submitter ,
0 commit comments