Functions for AppointmentAccountRefService

findByAppointmentIdAccountId
return a list of AppointmentAccountRef by appointmtId and AcccountId

checkAppointmtShared
check the user whether shared with the appointment or not (for member
shared type appointment)

expireAppointmtSharedState
expire the specific refs by the appointmentId and the removeList

addAppointmtShared
add the specific refs by the appointmentId and the addList
Update AppointmtService

setAppointmentMemberShare
now this function will just simply change the shared type of the
appointmt

checkAppointmtShared
move to AppointmtAccountRefSevice
Finish the validation and the code logic of ShareAppointmt

Divide the member list to sub lists. Expire and add
appiontmentAccountRef from corresponding lists.