com.hack23.cia.service.impl.content
Class PartyRequestService

Package class diagram package PartyRequestService
java.lang.Object
  extended by com.hack23.cia.service.impl.common.AbstractGenericService<REQUEST>
      extended by com.hack23.cia.service.impl.content.PartyRequestService
All Implemented Interfaces:
BusinessService

public class PartyRequestService
extends AbstractGenericService<REQUEST>

The Class PartyRequestService.


Constructor Summary
Constructor and Description
PartyRequestService(UserSessionService userSessionService, ParliamentContentService parliamentContentService, int numberInTopList)
          Instantiates a new party request service.
 
Method Summary
Modifier and Type Method and Description
 ActionEvent createActionEvent(PartyRequest request, UserSessionData userSession)
          Creates the action event.
 ParliamentContentService getParliamentContentService()
          Gets the parliament content service.
 Class<? extends ServiceRequest> getSupportedService()
          Gets the supported service.
 ServiceResponse handleServiceRequest(PartyRequest request, UserSessionDto userSession)
          Handle service request.
protected  UserSessionData lookupUserSession(AbstractServiceRequest request)
          Lookup user session.
 
Methods inherited from class com.hack23.cia.service.impl.common.AbstractGenericService
getApplicationDtoFactory, getApplicationModelFactory, getCommonModelFactory, getSwedenModelFactory, getUserSessionService, processService, setApplicationDtoFactory, setApplicationModelFactoryFactory, setCommonModelFactory, setSwedenModelFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartyRequestService

public PartyRequestService(UserSessionService userSessionService,
                           ParliamentContentService parliamentContentService,
                           int numberInTopList)
Instantiates a new party request service.

Parameters:
userSessionService - the user session service
parliamentContentService - the parliament content service
numberInTopList - the number in top list
Method Detail

createActionEvent

public final ActionEvent createActionEvent(PartyRequest request,
                                           UserSessionData userSession)
Description copied from class: AbstractGenericService
Creates the action event.

Specified by:
createActionEvent in class AbstractGenericService<PartyRequest>
Parameters:
request - the service
userSession - the user session
Returns:
the action event

getSupportedService

public Class<? extends ServiceRequest> getSupportedService()
Description copied from interface: BusinessService
Gets the supported service.

Returns:
the supported service

handleServiceRequest

public final ServiceResponse handleServiceRequest(PartyRequest request,
                                                  UserSessionDto userSession)
Description copied from class: AbstractGenericService
Handle service request.

Specified by:
handleServiceRequest in class AbstractGenericService<PartyRequest>
Parameters:
request - the service
userSession - the user session
Returns:
the service response

getParliamentContentService

public final ParliamentContentService getParliamentContentService()
Gets the parliament content service.

Returns:
the parliament content service

lookupUserSession

protected final UserSessionData lookupUserSession(AbstractServiceRequest request)
Description copied from class: AbstractGenericService
Lookup user session.

Specified by:
lookupUserSession in class AbstractGenericService<REQUEST extends AbstractServiceRequest>
Parameters:
request - the request
Returns:
the user session data


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.