Package io.jmix.imap.entity.listeners
Class ImapMailboxListener
java.lang.Object
io.jmix.imap.entity.listeners.ImapMailboxListener
- All Implemented Interfaces:
AfterInsertEntityListener<ImapMailBox>
,AfterUpdateEntityListener<ImapMailBox>
,BeforeDeleteEntityListener<ImapMailBox>
,BeforeInsertEntityListener<ImapMailBox>
,BeforeUpdateEntityListener<ImapMailBox>
@Component("imap_MailboxListener")
public class ImapMailboxListener
extends Object
implements BeforeInsertEntityListener<ImapMailBox>, BeforeUpdateEntityListener<ImapMailBox>, AfterInsertEntityListener<ImapMailBox>, AfterUpdateEntityListener<ImapMailBox>, BeforeDeleteEntityListener<ImapMailBox>
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationEventPublisher
protected AttributeChangesProvider
protected Encryptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ImapMailboxSyncActivationEvent
createActivationEvent
(ImapMailBox entity) protected ImapMailboxSyncActivationEvent
createDeactivationEvent
(ImapMailBox entity) void
onAfterInsert
(ImapMailBox entity) Executes after the object has been inserted into DB.void
onAfterUpdate
(ImapMailBox entity) Executes after the object has been updated in DB.void
onBeforeDelete
(ImapMailBox entity) Executes before the object has been deleted or marked as deleted in DB.void
onBeforeInsert
(ImapMailBox entity) Executes before the object has been inserted into DB.void
onBeforeUpdate
(ImapMailBox entity) Executes before the object has been updated in DB.protected void
setEncryptedPassword
(ImapMailBox entity)
-
Field Details
-
encryptor
-
attributeChangesProvider
-
applicationEventPublisher
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
-
-
Constructor Details
-
ImapMailboxListener
public ImapMailboxListener()
-
-
Method Details
-
onBeforeInsert
Description copied from interface:BeforeInsertEntityListener
Executes before the object has been inserted into DB.- Specified by:
onBeforeInsert
in interfaceBeforeInsertEntityListener<ImapMailBox>
- Parameters:
entity
- inserted entity instance
-
onBeforeUpdate
Description copied from interface:BeforeUpdateEntityListener
Executes before the object has been updated in DB.- Specified by:
onBeforeUpdate
in interfaceBeforeUpdateEntityListener<ImapMailBox>
- Parameters:
entity
- updated entity instance
-
setEncryptedPassword
-
onBeforeDelete
Description copied from interface:BeforeDeleteEntityListener
Executes before the object has been deleted or marked as deleted in DB.- Specified by:
onBeforeDelete
in interfaceBeforeDeleteEntityListener<ImapMailBox>
- Parameters:
entity
- deleted entity instance
-
onAfterInsert
Description copied from interface:AfterInsertEntityListener
Executes after the object has been inserted into DB.Modification of the entity state or using
EntityManager
is impossible here.- Specified by:
onAfterInsert
in interfaceAfterInsertEntityListener<ImapMailBox>
- Parameters:
entity
- inserted entity
-
onAfterUpdate
Description copied from interface:AfterUpdateEntityListener
Executes after the object has been updated in DB.Modification of the entity state or using
EntityManager
is impossible here.- Specified by:
onAfterUpdate
in interfaceAfterUpdateEntityListener<ImapMailBox>
- Parameters:
entity
- updated entity
-
createActivationEvent
-
createDeactivationEvent
-