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:
-
Field Summary
Fields inherited from class ru.bgcrm.dao.message.MessageType
configMap, setup, unprocessedMessagesCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRegistrationByNumber(String number) getRegistrationByUser(int userId) getUserOfferedNumber(int userId) Retrieves user offered number from text parameter.booleanvoidmessageDelete(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.voidnumberFree(int userId) voidnumberRegister(int userId, String number) voidoutNumbersPreprocess(ParameterPhoneValue value, Process process) voidupdateMessage(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, isCheckEmptySubject, isEditable, isReadable, isReading, isRemovable, messageLinkedToProcess, process, processMessageAttaches, searchObjectsForLink
-
Constructor Details
-
MessageTypeCall
-
-
Method Details
-
isProcessChangeSupport
public boolean isProcessChangeSupport()- Overrides:
isProcessChangeSupportin classMessageType
-
getUserOfferedNumber
Retrieves user offered number from text parameter.- Parameters:
userId- user entity ID.- Returns:
- parameter value or empty string.
-
outNumbersPreprocess
-
numberRegister
-
numberFree
public void numberFree(int userId) -
getRegistrationByUser
-
getRegistrationByNumber
-
updateMessage
- Specified by:
updateMessagein classMessageType- Throws:
SQLException
-
newMessageList
Description copied from class:MessageTypeList of unprocessed messages from storage, for example - E-Mails from IMAP folder.- Overrides:
newMessageListin classMessageType- Parameters:
conSet-- Returns:
- Throws:
SQLException
-
newMessageGet
Description copied from class:MessageTypeGets unprocessed message from storage.- Overrides:
newMessageGetin classMessageType- Parameters:
conSet-messageId- unique ID.- Returns:
- Throws:
Exception
-
messageDelete
Description copied from class:MessageTypeDeletes both processed and unprocessed messages.- Overrides:
messageDeletein classMessageType- Parameters:
conSet-messageIds- set with int DB IDs or type related string IDs.- Throws:
Exception
-
newMessageLoad
Description copied from class:MessageTypeGets unprocessed message from storage and persists it in DB.- Overrides:
newMessageLoadin classMessageType- Parameters:
con-messageId-- Returns:
- Throws:
Exception
-