Package ru.bgcrm.dao.message
Class MessageTypeCall
java.lang.Object
org.bgerp.model.base.Id
org.bgerp.model.base.IdTitle
ru.bgcrm.dao.message.MessageType
ru.bgcrm.dao.message.MessageTypeCall
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class ru.bgcrm.dao.message.MessageType
configMap, setup, unprocessedMessagesCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRegistrationByNumber
(String number) getRegistrationByUser
(int userId) getUserOfferedNumber
(int userId) Retrieves user offered number from text parameter.boolean
void
messageDelete
(ConnectionSet conSet, String... messageIds) Deletes both processed and unprocessed messages.newMessageGet
(ConnectionSet conSet, String messageId) Gets unprocessed message from storage.newMessageList
(ConnectionSet conSet) List of unprocessed messages from storage, for example - E-Mails from IMAP folder.newMessageLoad
(Connection con, String messageId) Gets unprocessed message from storage and persists it in DB.void
numberFree
(int userId) void
numberRegister
(int userId, String number) void
updateMessage
(Connection con, DynActionForm form, Message message) Methods inherited from class ru.bgcrm.dao.message.MessageType
answerText, getAnswerMessage, getConfigMap, getContactSaver, getEditorJsp, getHeaderJsp, getMessageDescription, getProcessMessageHeaderColor, getSearchMap, getUnprocessedMessagesCount, getViewerJsp, isAnswerSupport, isAttachmentSupport, isCheckEmptySubject, isEditable, isReadable, isReading, isRemovable, messageLinkedToProcess, process, processMessageAttaches, searchObjectsForLink
-
Constructor Details
-
MessageTypeCall
-
-
Method Details
-
isProcessChangeSupport
public boolean isProcessChangeSupport()- Overrides:
isProcessChangeSupport
in classMessageType
-
getUserOfferedNumber
Retrieves user offered number from text parameter.- Parameters:
userId
- user entity ID.- Returns:
- parameter value or empty string.
-
numberRegister
-
numberFree
public void numberFree(int userId) -
getRegistrationByUser
-
getRegistrationByNumber
-
getCheckExpressionCallStore
-
updateMessage
- Specified by:
updateMessage
in classMessageType
- Throws:
SQLException
-
newMessageList
Description copied from class:MessageType
List of unprocessed messages from storage, for example - E-Mails from IMAP folder.- Overrides:
newMessageList
in classMessageType
- Parameters:
conSet
-- Returns:
- Throws:
SQLException
-
newMessageGet
Description copied from class:MessageType
Gets unprocessed message from storage.- Overrides:
newMessageGet
in classMessageType
- Parameters:
conSet
-messageId
- unique ID.- Returns:
- Throws:
Exception
-
messageDelete
Description copied from class:MessageType
Deletes both processed and unprocessed messages.- Overrides:
messageDelete
in classMessageType
- Parameters:
conSet
-messageIds
- set with int DB IDs or type related string IDs.- Throws:
Exception
-
newMessageLoad
Description copied from class:MessageType
Gets unprocessed message from storage and persists it in DB.- Overrides:
newMessageLoad
in classMessageType
- Parameters:
con
-messageId
-- Returns:
- Throws:
Exception
-