What Is a Default Notice?
Notification system, as its name implies, is the transmission and processing system of notification information. The purpose is to let users get the messages and reminders they need and process them.
- The notification system is, as the name implies, a notification processing system. The purpose is to let users get the messages and reminders they need and process them. "Need to get" here has two meanings [1]
- Different platforms and products have different types due to different business requirements. Can be roughly divided into the following categories:
Numbering | business type | Trigger object | Remark |
---|---|---|---|
1 | comment | User-to-user | Interactive information flow tips |
2 | Reply | ||
3 | leave a message | ||
4 | Private letter | ||
5 | request |
| |
6 | remind | System to user | For example: add user or @ |
7 | Application notification | For example: the third-party application of the open platform is essentially a system notification | |
8 | system notification | Such as: system announcements, upgrade tips, etc. |
- The logic of the notification is simplified as follows:
- Local Notification [2]
- design
- Internal companies usually have notifications that need to be uploaded, sometimes temporary notifications. [3] For example, notifications of "meetings at 2 pm", if it is cumbersome to call by each department, but only by email, some people often Failure to check in time leads to missed meetings; sometimes a certain spirit needs to be communicated, some text documents; other times it may be internal documents exchanged between departments. In order to prevent employees from chatting during work hours and leaking internal data, the company's external network is not open, and public real-time chat tools are not suitable for such occasions. In some cases, such as during non-working hours, the corporate extranet is open and employees are allowed to use it. It is very common for employees to choose from several chat tools.
- The desktop notification system is designed based on the internal LAN of the enterprise. Its goal is to establish an instant messaging platform within the enterprise to facilitate the upload and release of notifications. At the same time, it integrates several common public chat software to make them have a unified appearance and configuration, which can reduce people's switching between different chat tools , And restrict the use of public chat software.
- Desktop notification system structure
- Main function module
- UI module
- The desktop notifies the system client that the random machine starts up and starts automatically; its Ul (user interface) is modeled on the QQ chat program and placed in the system tray when not in use; if there is an internal message from the enterprise, the message window pops up automatically and it Set it as the front-end window, forcing users to read and confirm before closing it, preventing messages from being read in a timely manner.
- For the server, the interface is very simple, mainly showing the message content sent by the client, and the time and location of file transfer.
- In Eclipse RCP, everything is implemented through the extension point mechanism. The main process of developing RCP is to add extensions to the application such as views, editors, perspectives, menus, toolbars, context menus, and so on. Among them, pay attention to follow the principle of modularity, divide the system into different modules according to the principle of function, responsibility, and separation of model and UI. At the same time, make full use of many reusable plug-ins, extension points, built-in Actions, views, and editors provided by Eclipse Browser, preferences, and more.
- Message Management Module
- There are two types of messages, one refers to messages sent internally by the enterprise, and the other refers to messages integrated with chat software.
- Messages sent within the enterprise are managed by the system itself. The client user name is the department name, which is stipulated by the system maintenance department. The user names of the entire department are the same, preventing individuals from using the desktop notification system to chat. When sending a message to a department, all online clients in that department receive the message. Utilizing the timer class provided by Java, the desktop notifies the system of the new content of the client's message window and automatically stores it every 10 minutes, reducing the loss of accidental power failure.
- Because the communication protocols of public instant messaging tools are different, and the software update and update cycle is short, the desktop notification system only adopts a simple invocation integration for public instant messaging tools, and does not restrict and manage its content, which can simplify the desktop notification system. Implementation process. Therefore, the instant messaging tool integrated in the desktop notification system uses the original management method of the chat software. The system does not interfere with it, but only limits and manages its use period.
- File Management Module
- In order to reduce the load on the server and speed up the transmission, unlike the message sending, the client sends files using point-to-point transmission. The source client obtains the IP address of the destination client from the server, and then starts a new file sending thread to send the file. Because the thread mode is adopted, the file transfer operation does not affect other operations of the client on the desktop notification system.
- Time management module
- Time management module, which mainly manages the online time of integrated chat software. During the working hours stipulated by the system maintenance department, all instant messaging software except the desktop notification system is gray, that is, unavailable.
- Data Management Module
- This system has established a database service on the server side. The server database includes department information, administrator rights information, setting time period information, log management and other aspects. Because MySQL5.0 free version also has good and stable performance, and simple installation and low system overhead, the desktop notification system uses it to complete data information management work.
- Security Management Module
- Because the desktop notification system is mainly for corporate intranet use, its security has a natural advantage over public instant messaging tools. The system mainly adopts the client permission hierarchy to achieve security management, that is, setting different permissions for different clients and restricting the client's access to messages and files to achieve the purpose of ensuring internal data security.
- 2 push notifications available in iOS