A RequestHandler handles a specific Request (subclass of AbstractRequest). More...


Public Member Functions | |
| RequestHandler (CopaSystemContext context) | |
| CopaSystemContext | getContext () | 
| abstract AbstractResponse | handleRequest (AbstractRequest request, int userID) throws PermissionException, RequestNotPracticableException, InternalErrorException | 
| Execute the request of the user.  More... | |
| void | checkEventPermission (int userID, int eventID, UserRole requiredRole) throws RequestNotPracticableException, PermissionException | 
| Check whether a user holds a specific role for a specific event.  More... | |
| void | checkPermission (int userID, UserRole requiredRole) throws PermissionException, RequestNotPracticableException | 
A RequestHandler handles a specific Request (subclass of AbstractRequest).
| void unicopa.copa.server.com.requestHandler.RequestHandler.checkEventPermission | ( | int | userID, | 
| int | eventID, | ||
| UserRole | requiredRole | ||
| ) | throws RequestNotPracticableException, PermissionException | 
Check whether a user holds a specific role for a specific event.
| userID | the ID of the user | 
| eventID | the ID of the event | 
| role | the role for which to check | 
| RequestNotPracticableException | |
| PermissionException | if the user doesn´t hold the specified role | 
      
  | 
  pure virtual | 
Execute the request of the user.
When this method is called, it is guaranteed that the user satisfies
| request | the request to be processed | 
| userID | the ID of the user who sent the request | 
| PermissionException | |
| RequestNotPracticableException | |
| InternalErrorException | 
Implemented in unicopa.copa.server.com.requestHandler.GetSubscribedSingleEventUpdatesRequestHandler, unicopa.copa.server.com.requestHandler.AddRoleToUserRequestHandler, unicopa.copa.server.com.requestHandler.AddSingleEventRequestHandler, unicopa.copa.server.com.requestHandler.AddSingleEventUpdateRequestHandler, unicopa.copa.server.com.requestHandler.CancelSingleEventRequestHandler, unicopa.copa.server.com.requestHandler.GetCurrentSingleEventsRequestHandler, unicopa.copa.server.com.requestHandler.GetSingleEventUpdatesRequestHandler, unicopa.copa.server.com.requestHandler.RemoveRoleFromUserRequestHandler, unicopa.copa.server.com.requestHandler.SetUserSettingsRequestHandler, unicopa.copa.server.com.requestHandler.DropRoleRequestHandler, unicopa.copa.server.com.requestHandler.GetAllDeputiesRequestHandler, unicopa.copa.server.com.requestHandler.GetAllRightholdersRequestHandler, unicopa.copa.server.com.requestHandler.GetCategoriesRequestHandler, unicopa.copa.server.com.requestHandler.GetEventGroupsRequestHandler, unicopa.copa.server.com.requestHandler.GetAllOwnersRequestHandler, unicopa.copa.server.com.requestHandler.GetEventGroupRequestHandler, unicopa.copa.server.com.requestHandler.GetEventRequestHandler, unicopa.copa.server.com.requestHandler.GetMyEventsRequestHandler, unicopa.copa.server.com.requestHandler.GetEventsRequestHandler, unicopa.copa.server.com.requestHandler.GetServerStatusNotesRequestHandler, unicopa.copa.server.com.requestHandler.GetSingleEventRequestHandler, unicopa.copa.server.com.requestHandler.GetUserDataRequestHandler, unicopa.copa.server.com.requestHandler.GetUserSettingsRequestHandler, unicopa.copa.server.com.requestHandler.GetMyAppointedUsersRequestHandler, unicopa.copa.server.com.requestHandler.TestRequestHandler, and unicopa.copa.server.com.requestHandler.GetServerInfoRequestHandler.
 1.8.4