39 lines
1.4 KiB
Java
39 lines
1.4 KiB
Java
|
package org.gcube.dataanalysis.dataminerpoolmanager;
|
||
|
|
||
|
***REMOVED***
|
||
|
***REMOVED***
|
||
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.SendMail;
|
||
|
|
||
|
public class SendMailTest {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
try {
|
||
|
|
||
|
***REMOVED*** NotificationHelper nh = new NotificationHelper();
|
||
|
|
||
|
SendMail sm = new SendMail();
|
||
|
|
||
|
ScopeProvider.instance.set("/gcube/devNext/NextNext");
|
||
|
SecurityTokenProvider.instance.set("xxxx-xxxx-xxx");
|
||
|
***REMOVED*** System.out.println(sm.getRootToken());
|
||
|
***REMOVED*** sm.getGenericResourceByName("");
|
||
|
|
||
|
***REMOVED***ScopeProvider.instance.set("/gcube/devsec/devVRE");
|
||
|
***REMOVED***SecurityTokenProvider.instance.set("xxxx-xxxx-xxxx");
|
||
|
|
||
|
***REMOVED*** sm.sendNotification(nh.getFailedSubject(), nh.getFailedBody("test
|
||
|
***REMOVED*** failed"));
|
||
|
***REMOVED*** sm.username(SecurityTokenProvider.instance.get());
|
||
|
***REMOVED*** sm.retrieveAdminRole();
|
||
|
***REMOVED*** sm.getAdminRoles();
|
||
|
sm.sendNotification("Test DMPoolManager Notification", "This is only a test please cancel this message.");
|
||
|
***REMOVED*** System.out.println(sm.getAdmins());
|
||
|
***REMOVED*** sm.sendNotification("test", "test");
|
||
|
***REMOVED*** System.out.println(sm.getSocialService());
|
||
|
***REMOVED*** catch (Exception e) {
|
||
|
System.out.println("Error in sent mail: "+e.getLocalizedMessage());
|
||
|
e.printStackTrace();
|
||
|
***REMOVED***
|
||
|
***REMOVED***
|
||
|
***REMOVED***
|