CopaServer
Change of Plan Application
 All Classes Functions Pages
Public Member Functions | List of all members
unicopa.copa.server.com.requestHandler.RequestHandler Class Referenceabstract

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

Inheritance diagram for unicopa.copa.server.com.requestHandler.RequestHandler:
Inheritance graph
Collaboration diagram for unicopa.copa.server.com.requestHandler.RequestHandler:
Collaboration graph

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
 

Detailed Description

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

Author
Felix Wiemuth

Member Function Documentation

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.

Parameters
userIDthe ID of the user
eventIDthe ID of the event
rolethe role for which to check
Exceptions
RequestNotPracticableException
PermissionExceptionif the user doesn´t hold the specified role
abstract AbstractResponse unicopa.copa.server.com.requestHandler.RequestHandler.handleRequest ( AbstractRequest  request,
int  userID 
) throws PermissionException, RequestNotPracticableException, InternalErrorException
pure virtual

Execute the request of the user.

When this method is called, it is guaranteed that the user satisfies

Parameters
requestthe request to be processed
userIDthe ID of the user who sent the request
Returns
Exceptions
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.


The documentation for this class was generated from the following file: