Class ResourceChangeNotificationManager
java.lang.Object
it.uniroma2.art.semanticturkey.notification.ResourceChangeNotificationManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.scheduling.support.CronTrigger
void
void
init()
void
onCreation
(ResourceCreated event) void
onDeletion
(ResourceDeleted event) void
onUpdate
(ResourceModified event) void
protected void
protected void
void
-
Constructor Details
-
ResourceChangeNotificationManager
public ResourceChangeNotificationManager()
-
-
Method Details
-
init
- Throws:
STPropertyAccessException
-
onCreation
@TransactionalEventListener(phase=AFTER_COMMIT) @Async public void onCreation(ResourceCreated event) throws IOException, STPropertyAccessException, InterruptedException -
onUpdate
@TransactionalEventListener(phase=AFTER_COMMIT) @Async public void onUpdate(ResourceModified event) throws IOException, STPropertyAccessException, InterruptedException -
onDeletion
@TransactionalEventListener(phase=AFTER_COMMIT) @Async public void onDeletion(ResourceDeleted event) throws IOException, STPropertyAccessException, InterruptedException -
scheduledNotifications
public void scheduledNotifications() throws STPropertyAccessException, ProjectAccessException, IOException, jakarta.mail.MessagingException, InterruptedException- Throws:
STPropertyAccessException
ProjectAccessException
IOException
jakarta.mail.MessagingException
InterruptedException
-
setNotificationDigestSchedule
public void setNotificationDigestSchedule(NotificationSystemSettings.CronDefinition schedule) throws STPropertyUpdateException - Throws:
STPropertyUpdateException
-
disableNotificationDigest
- Throws:
STPropertyUpdateException
-
scheduleNotificationDigest
- Throws:
STPropertyAccessException
-
scheduleNotificationDigest
-
buildTrigger
protected org.springframework.scheduling.support.CronTrigger buildTrigger(NotificationSystemSettings.CronDefinition cron)
-