com.hack23.cia.model.impl.dto.application
Class ApplicationModelFactoryImpl

Package class diagram package ApplicationModelFactoryImpl
java.lang.Object
  extended by com.hack23.cia.model.impl.dto.common.AbstractModelFactoryImpl
      extended by com.hack23.cia.model.impl.dto.application.ApplicationModelFactoryImpl
All Implemented Interfaces:
ApplicationModelFactory, ModelFactory

public class ApplicationModelFactoryImpl
extends AbstractModelFactoryImpl
implements ApplicationModelFactory

The Class ApplicationModelFactoryImpl.


Constructor Summary
ApplicationModelFactoryImpl()
           
 
Method Summary
 ActionEvent createAgencyActionEvent(Date date, ConfigurationOperationType operation, Long agencyId)
          Creates a new ApplicationModel object.
 AgencyData createAgencyData()
          Creates a new ApplicationModel object.
 AgencyDto createAgencyDto(AgencyData agencyData)
          Creates a new ApplicationModel object.
 ActionEvent createAgentDeploymentActionEvent(Date date)
          Creates a new ApplicationModel object.
 AgentOperation createAgentOperation()
          Creates a new ApplicationModel object.
 ActionEvent createApplicationActionEvent(Date date)
          Creates a new ApplicationModel object.
 ActionEvent createApplicationErrorActionEvent(Date date, String stackTrace, String errorMessage)
          Creates a new ApplicationModel object.
 ActionEvent createBallotActionEvent(Date date, Long ballotId)
          Creates a new SwedenModel object.
 ActionEvent createCommitteeReportActionEvent(Date date, Long committeeReportId)
          Creates a new SwedenModel object.
 ActionEvent createCommitteeReportsActionEvent(Date date)
          Creates a new SwedenModel object.
 ActionEvent createExternalUrlActionEvent(Date date, ExternalUrlOperationType operation)
          Creates a new ApplicationModel object.
 BinaryContent createImageContent()
          Creates a new ApplicationModel object.
 ActionEvent createLanguageAgencyActionEvent(Date date, Long agencyId, Long languageId, LanguageOperationType operation)
          Creates a new ApplicationModel object.
 LanguageContentData createLanguageContent()
          Creates a new ApplicationModel object.
 LanguageContentData createLanguageContent(LanguageData language)
          Creates a new ApplicationModel object.
 ActionEvent createLanguageContentActionEvent(Date createdDate, Long agencyId, Long languageContentId, LanguageContentOperationType operation)
          Creates a new ApplicationModel object.
 LanguageContentDto createLanguageContentDto(LanguageContentData updatedLanguageContent)
          Creates a new ApplicationModel object.
 LanguageData createLanguageData()
          Creates a new ApplicationModel object.
 LanguageDto createLanguageDto(LanguageData language)
          Creates a new ApplicationModel object.
 ActionEvent createMonitorActionEvent(Date date, MonitorOperationType operation)
          Creates a new ApplicationModel object.
 ActionEvent createParliamentMemberActionEvent(Date date, Long parliamentMemberId)
          Creates a new SwedenModel object.
 ActionEvent createPartyActionEvent(Date date, String party, TopListOperationType operation)
          Creates a new SwedenModel object.
 ActionEvent createPortalActionEvent(Date createdDate, PortalOperationType operation, Long portalId)
          Creates a new ApplicationModel object.
 PortalData createPortalData(AgencyData loadAgency)
          Creates a new ApplicationModel object.
 PortalDto createPortalDto(PortalData portal)
          Creates a new ApplicationModel object.
 ActionEvent createSearchActionEvent(Date date, String searchArgument)
          Creates a new SwedenModel object.
 ActionEvent createTopListActionEvent(Date date, TopListOperationType operation)
          Creates a new ApplicationModel object.
 ActionEvent createUserAccountActionEvent(Date date, UserAccountOperationType operation)
          Creates a new ApplicationModel object.
 ActionEvent createUserActionEvent(Date date, UserOperationType operation)
          Creates a new ApplicationModel object.
 UserData createUserData()
          Creates a new ApplicationModel object.
 UserSessionData createUserSessionData(UserData user, LanguageData language, PortalData portal, String sessionId, String clientHost, String serverHost, Date date, String userAgent)
          Creates a new ApplicationModel object.
 UserSessionDto createUserSessionDto(UserSessionData userSession)
          Creates a new ApplicationModel object.
 Class<? extends ActionEvent> getActionEventSpec()
          Gets the action event spec.
 Class<? extends AgencyData> getAgencyDataSpec()
          Gets the agency data spec.
 Class<? extends AgentOperation> getAgentOperationSpec()
          Gets the agent operation spec.
 Class<? extends ApplicationErrorEventData> getApplicationErrorEventDataSpec()
          Gets the application error event data spec.
 Class<? extends BinaryContent> getImageContentSpec()
          Gets the image content spec.
 Class<? extends LanguageContentData> getLanguageContentDataSpec()
          Gets the language content data spec.
 Class<? extends LanguageData> getLanguageDataSpec()
          Gets the language data spec.
 Class<? extends PortalData> getPortalDataSpec()
          Gets the portal data spec.
 Class getRegisteredUserDataSpec()
          Gets the registered user data spec.
 Class<? extends Resource> getResourceSpec()
          Gets the resource spec.
 Class<? extends UserData> getUserDataSpec()
          Gets the user data spec.
 Class<? extends UserSessionData> getUserSessionDataSpec()
          Gets the user session data spec.
 Class<? extends VoteData> getVoteDataSpec()
          Gets the vote data spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationModelFactoryImpl

public ApplicationModelFactoryImpl()
Method Detail

createAgencyActionEvent

public final ActionEvent createAgencyActionEvent(Date date,
                                                 ConfigurationOperationType operation,
                                                 Long agencyId)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createAgencyActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
operation - the operation
agencyId - the agency id
Returns:
the action event

createAgencyData

public final AgencyData createAgencyData()
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createAgencyData in interface ApplicationModelFactory
Returns:
the agency data

createAgencyDto

public final AgencyDto createAgencyDto(AgencyData agencyData)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createAgencyDto in interface ApplicationModelFactory
Parameters:
agencyData - the agency data
Returns:
the agency dto

createAgentDeploymentActionEvent

public final ActionEvent createAgentDeploymentActionEvent(Date date)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createAgentDeploymentActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
Returns:
the action event

createAgentOperation

public final AgentOperation createAgentOperation()
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createAgentOperation in interface ApplicationModelFactory
Returns:
the agent operation

createApplicationActionEvent

public final ActionEvent createApplicationActionEvent(Date date)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createApplicationActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
Returns:
the action event

createApplicationErrorActionEvent

public final ActionEvent createApplicationErrorActionEvent(Date date,
                                                           String stackTrace,
                                                           String errorMessage)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createApplicationErrorActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
stackTrace - the string
errorMessage - the error message
Returns:
the action event

createBallotActionEvent

public final ActionEvent createBallotActionEvent(Date date,
                                                 Long ballotId)
Description copied from interface: ApplicationModelFactory
Creates a new SwedenModel object.

Specified by:
createBallotActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
ballotId - the ballot id
Returns:
the action event

createCommitteeReportActionEvent

public final ActionEvent createCommitteeReportActionEvent(Date date,
                                                          Long committeeReportId)
Description copied from interface: ApplicationModelFactory
Creates a new SwedenModel object.

Specified by:
createCommitteeReportActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
committeeReportId - the committee report id
Returns:
the action event

createCommitteeReportsActionEvent

public final ActionEvent createCommitteeReportsActionEvent(Date date)
Description copied from interface: ApplicationModelFactory
Creates a new SwedenModel object.

Specified by:
createCommitteeReportsActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
Returns:
the action event

createExternalUrlActionEvent

public final ActionEvent createExternalUrlActionEvent(Date date,
                                                      ExternalUrlOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createExternalUrlActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
operation - the operation
Returns:
the action event

createImageContent

public final BinaryContent createImageContent()
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createImageContent in interface ApplicationModelFactory
Returns:
the binary content

createLanguageAgencyActionEvent

public final ActionEvent createLanguageAgencyActionEvent(Date date,
                                                         Long agencyId,
                                                         Long languageId,
                                                         LanguageOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageAgencyActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
agencyId - the id
languageId - the id2
operation - the operation
Returns:
the action event

createLanguageContent

public final LanguageContentData createLanguageContent()
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageContent in interface ApplicationModelFactory
Returns:
the language content data

createLanguageContent

public final LanguageContentData createLanguageContent(LanguageData language)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageContent in interface ApplicationModelFactory
Parameters:
language - the language
Returns:
the language content data

createLanguageContentActionEvent

public final ActionEvent createLanguageContentActionEvent(Date createdDate,
                                                          Long agencyId,
                                                          Long languageContentId,
                                                          LanguageContentOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageContentActionEvent in interface ApplicationModelFactory
Parameters:
createdDate - the date
agencyId - the id
languageContentId - the id2
operation - the operation
Returns:
the action event

createLanguageContentDto

public final LanguageContentDto createLanguageContentDto(LanguageContentData updatedLanguageContent)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageContentDto in interface ApplicationModelFactory
Parameters:
updatedLanguageContent - the updated language content
Returns:
the language content dto

createLanguageData

public final LanguageData createLanguageData()
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageData in interface ApplicationModelFactory
Returns:
the language data

createLanguageDto

public final LanguageDto createLanguageDto(LanguageData language)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createLanguageDto in interface ApplicationModelFactory
Parameters:
language - the language
Returns:
the language dto

createMonitorActionEvent

public final ActionEvent createMonitorActionEvent(Date date,
                                                  MonitorOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createMonitorActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
operation - the operation
Returns:
the action event

createParliamentMemberActionEvent

public final ActionEvent createParliamentMemberActionEvent(Date date,
                                                           Long parliamentMemberId)
Description copied from interface: ApplicationModelFactory
Creates a new SwedenModel object.

Specified by:
createParliamentMemberActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
parliamentMemberId - the parliament member id
Returns:
the action event

createPartyActionEvent

public final ActionEvent createPartyActionEvent(Date date,
                                                String party,
                                                TopListOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new SwedenModel object.

Specified by:
createPartyActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
party - the party
operation - the operation
Returns:
the action event

createPortalActionEvent

public final ActionEvent createPortalActionEvent(Date createdDate,
                                                 PortalOperationType operation,
                                                 Long portalId)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createPortalActionEvent in interface ApplicationModelFactory
Parameters:
createdDate - the date
operation - the operation
portalId - the id
Returns:
the action event

createPortalData

public final PortalData createPortalData(AgencyData loadAgency)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createPortalData in interface ApplicationModelFactory
Parameters:
loadAgency - the load agency
Returns:
the portal data

createPortalDto

public final PortalDto createPortalDto(PortalData portal)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createPortalDto in interface ApplicationModelFactory
Parameters:
portal - the portal
Returns:
the portal dto

createSearchActionEvent

public final ActionEvent createSearchActionEvent(Date date,
                                                 String searchArgument)
Description copied from interface: ApplicationModelFactory
Creates a new SwedenModel object.

Specified by:
createSearchActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
searchArgument - the search argument
Returns:
the action event

createTopListActionEvent

public final ActionEvent createTopListActionEvent(Date date,
                                                  TopListOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createTopListActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
operation - the operation
Returns:
the action event

createUserAccountActionEvent

public final ActionEvent createUserAccountActionEvent(Date date,
                                                      UserAccountOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createUserAccountActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
operation - the operation
Returns:
the action event

createUserActionEvent

public final ActionEvent createUserActionEvent(Date date,
                                               UserOperationType operation)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createUserActionEvent in interface ApplicationModelFactory
Parameters:
date - the date
operation - the operation
Returns:
the action event

createUserData

public final UserData createUserData()
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createUserData in interface ApplicationModelFactory
Returns:
the user data

createUserSessionData

public final UserSessionData createUserSessionData(UserData user,
                                                   LanguageData language,
                                                   PortalData portal,
                                                   String sessionId,
                                                   String clientHost,
                                                   String serverHost,
                                                   Date date,
                                                   String userAgent)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createUserSessionData in interface ApplicationModelFactory
Parameters:
user - the user
language - the language
portal - the portal
sessionId - the session id
clientHost - the client host
serverHost - the server host
date - the date
userAgent - the user agent
Returns:
the user session data

createUserSessionDto

public final UserSessionDto createUserSessionDto(UserSessionData userSession)
Description copied from interface: ApplicationModelFactory
Creates a new ApplicationModel object.

Specified by:
createUserSessionDto in interface ApplicationModelFactory
Parameters:
userSession - the user session
Returns:
the user session dto

getActionEventSpec

public final Class<? extends ActionEvent> getActionEventSpec()
Description copied from interface: ApplicationModelFactory
Gets the action event spec.

Specified by:
getActionEventSpec in interface ApplicationModelFactory
Returns:
the action event spec

getAgencyDataSpec

public final Class<? extends AgencyData> getAgencyDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the agency data spec.

Specified by:
getAgencyDataSpec in interface ApplicationModelFactory
Returns:
the agency data spec

getAgentOperationSpec

public final Class<? extends AgentOperation> getAgentOperationSpec()
Description copied from interface: ApplicationModelFactory
Gets the agent operation spec.

Specified by:
getAgentOperationSpec in interface ApplicationModelFactory
Returns:
the agent operation spec

getApplicationErrorEventDataSpec

public final Class<? extends ApplicationErrorEventData> getApplicationErrorEventDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the application error event data spec.

Specified by:
getApplicationErrorEventDataSpec in interface ApplicationModelFactory
Returns:
the application error event data spec

getImageContentSpec

public final Class<? extends BinaryContent> getImageContentSpec()
Description copied from interface: ApplicationModelFactory
Gets the image content spec.

Specified by:
getImageContentSpec in interface ApplicationModelFactory
Returns:
the image content spec

getLanguageContentDataSpec

public final Class<? extends LanguageContentData> getLanguageContentDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the language content data spec.

Specified by:
getLanguageContentDataSpec in interface ApplicationModelFactory
Returns:
the language content data spec

getLanguageDataSpec

public final Class<? extends LanguageData> getLanguageDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the language data spec.

Specified by:
getLanguageDataSpec in interface ApplicationModelFactory
Returns:
the language data spec

getPortalDataSpec

public final Class<? extends PortalData> getPortalDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the portal data spec.

Specified by:
getPortalDataSpec in interface ApplicationModelFactory
Returns:
the portal data spec

getRegisteredUserDataSpec

public final Class getRegisteredUserDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the registered user data spec.

Specified by:
getRegisteredUserDataSpec in interface ApplicationModelFactory
Returns:
the registered user data spec

getResourceSpec

public final Class<? extends Resource> getResourceSpec()
Description copied from interface: ApplicationModelFactory
Gets the resource spec.

Specified by:
getResourceSpec in interface ApplicationModelFactory
Returns:
the resource spec

getUserDataSpec

public final Class<? extends UserData> getUserDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the user data spec.

Specified by:
getUserDataSpec in interface ApplicationModelFactory
Returns:
the user data spec

getUserSessionDataSpec

public final Class<? extends UserSessionData> getUserSessionDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the user session data spec.

Specified by:
getUserSessionDataSpec in interface ApplicationModelFactory
Returns:
the user session data spec

getVoteDataSpec

public final Class<? extends VoteData> getVoteDataSpec()
Description copied from interface: ApplicationModelFactory
Gets the vote data spec.

Specified by:
getVoteDataSpec in interface ApplicationModelFactory
Returns:
the vote data spec


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