Listener¶
IM common listeners are used in IMBox to register/update/delete company information and user information to Cassandra.す。
CompanyListener
Please refer to 【Table 1. CompanyListener Usage List】 for the listeners used by company information.【Table 1. CompanyListener Usage List】
Listener method Summary createDepartment It creates company information. createUserAttach Register specified user to the belonging of company. createUserAttachTerm Register specified user to the belonging of company. removeCompany Company information deletion. (Users who belongs to only companies of deletion target are logically deleted) removeDepartment Company information deletion. (Users who belongs to only companies of deletion target are logically deleted) removeUserAttach Company information deletion. updateDepartment Company information is updated. updateUserAttach Belonging registration is made if the term is valid and there is no data. If there is no belonging or
if it is outside the term of all belongings, company belonging information will be deleted.
About belonging company information
In case the listener related to the belonging company is called, information in the【Table 2. Cassandra Rewrite List】 below will be rewritten besides the belonging company information in Cassandra.【Table 2. Cassandra Rewrite List】
Listener method Summary createUserAttach Tag follow of belonging company, user follow, and re-registration of mylist information are made. removeUserAttach Group participation information, participation application information, and participation invitation information of the
group whose belonging companies are set as disclosure destination are deleted. Tag follow information, user follow
information, and mylist information of the belonging company are deleted.updateUserAttach If the belonging term does not exist, tag follow, user follow, and mylist information of the belonging company are deleted. If the term is valid, tag follow, user follow, mylist information of the belonging company are re-registered.
UserListener
Please refer to 【Table 3. UserListener Usage List】for the listeners used by user information.【Table 3. UserListener Usage List】
Listener method Summary createUser It creates user information. updateUser If the current date/time is between the start date/time and end date/time of the validity term
for the user, user information is updated.removeUser User information is deleted.
Note
If Cassandra has not been started when the listener is called,
data will not be registered to Cassandra.
In this case data should be registered using the job scheduler
of IMBox after Cassandra has been started.
Please refer to Job
Scheduler for information about job scheduler.