com.hack23.cia.service.impl.admin
Class AdminServiceImpl

Package class diagram package AdminServiceImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.admin.AdminServiceImpl
All Implemented Interfaces:
AdminService

public class AdminServiceImpl
extends Object
implements AdminService

The Class AdminServiceImpl.


Constructor Summary
AdminServiceImpl(AgencyDAO agencyDAO, ResourceDAO resourceDAO, ChartService chartService, ActivityService activityService, ApplicationModelFactory applicationModelFactory)
          Instantiates a new admin service impl.
 
Method Summary
 AgencyData addAgencyLanguageContent(AgencyData agency, LanguageData language, String key, String content)
          Adds the agency language content.
 AgencyData addLanguage(AgencyData agency)
          Adds the language.
 LanguageContentData addLanguageContent(AgencyData agency, LanguageData language)
          Adds the language content.
 AgencyData addPortal(AgencyData agency)
          Adds the portal.
 BinaryContent createResponseTimeGraph()
          Creates the response time graph.
 AgencyData deleteLanguage(AgencyDto agency, LanguageDto language)
          Delete language.
 AgencyData deleteLanguageContent(AgencyDto agency, LanguageContentDto languageContent)
          Delete language content.
 AgencyData deletePortal(PortalDto portal)
          Delete portal.
 BinaryContent getRecentActionsGraph()
          Gets the recent actions graph.
 AgencyData loadAgency()
          Load agency.
 AgencyData loadAgency(Long agencyId)
          Load agency.
 AgencyData updateAgency(AgencyDto agency)
          Update agency.
 AgencyData updateLanguage(AgencyDto agency, LanguageDto language)
          Update language.
 AgencyData updateLanguageContent(AgencyDto agency, LanguageContentDto languageContent)
          Update language content.
 PortalData updatePortal(PortalDto portal)
          Update portal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminServiceImpl

public AdminServiceImpl(AgencyDAO agencyDAO,
                        ResourceDAO resourceDAO,
                        ChartService chartService,
                        ActivityService activityService,
                        ApplicationModelFactory applicationModelFactory)
Instantiates a new admin service impl.

Parameters:
agencyDAO - the agency dao
resourceDAO - the resource dao
chartService - the chart service
activityService - the activity service
applicationModelFactory - the application model factory
Method Detail

addAgencyLanguageContent

public final AgencyData addAgencyLanguageContent(AgencyData agency,
                                                 LanguageData language,
                                                 String key,
                                                 String content)
Description copied from interface: AdminService
Adds the agency language content.

Specified by:
addAgencyLanguageContent in interface AdminService
Parameters:
agency - the agency
language - the language
key - the key
content - the content
Returns:
the agency data

addLanguage

public final AgencyData addLanguage(AgencyData agency)
Description copied from interface: AdminService
Adds the language.

Specified by:
addLanguage in interface AdminService
Parameters:
agency - the agency
Returns:
the agency data

addLanguageContent

public final LanguageContentData addLanguageContent(AgencyData agency,
                                                    LanguageData language)
Description copied from interface: AdminService
Adds the language content.

Specified by:
addLanguageContent in interface AdminService
Parameters:
agency - the agency
language - the language
Returns:
the language content data

addPortal

public final AgencyData addPortal(AgencyData agency)
Description copied from interface: AdminService
Adds the portal.

Specified by:
addPortal in interface AdminService
Parameters:
agency - the agency
Returns:
the agency data

createResponseTimeGraph

public final BinaryContent createResponseTimeGraph()
Description copied from interface: AdminService
Creates the response time graph.

Specified by:
createResponseTimeGraph in interface AdminService
Returns:
the binary content

deleteLanguage

public final AgencyData deleteLanguage(AgencyDto agency,
                                       LanguageDto language)
Description copied from interface: AdminService
Delete language.

Specified by:
deleteLanguage in interface AdminService
Parameters:
agency - the agency dto
language - the language dto
Returns:
the agency data

deleteLanguageContent

public final AgencyData deleteLanguageContent(AgencyDto agency,
                                              LanguageContentDto languageContent)
Description copied from interface: AdminService
Delete language content.

Specified by:
deleteLanguageContent in interface AdminService
Parameters:
agency - the agency dto
languageContent - the language content dto
Returns:
the agency data

deletePortal

public final AgencyData deletePortal(PortalDto portal)
Description copied from interface: AdminService
Delete portal.

Specified by:
deletePortal in interface AdminService
Parameters:
portal - the portal dto
Returns:
the agency data

getRecentActionsGraph

public final BinaryContent getRecentActionsGraph()
Description copied from interface: AdminService
Gets the recent actions graph.

Specified by:
getRecentActionsGraph in interface AdminService
Returns:
the recent actions graph

loadAgency

public final AgencyData loadAgency()
Description copied from interface: AdminService
Load agency.

Specified by:
loadAgency in interface AdminService
Returns:
the agency data

loadAgency

public final AgencyData loadAgency(Long agencyId)
Description copied from interface: AdminService
Load agency.

Specified by:
loadAgency in interface AdminService
Parameters:
agencyId - the agency id
Returns:
the agency data

updateAgency

public final AgencyData updateAgency(AgencyDto agency)
Description copied from interface: AdminService
Update agency.

Specified by:
updateAgency in interface AdminService
Parameters:
agency - the agency dto
Returns:
the agency data

updateLanguage

public final AgencyData updateLanguage(AgencyDto agency,
                                       LanguageDto language)
Description copied from interface: AdminService
Update language.

Specified by:
updateLanguage in interface AdminService
Parameters:
agency - the agency dto
language - the language dto
Returns:
the agency data

updateLanguageContent

public final AgencyData updateLanguageContent(AgencyDto agency,
                                              LanguageContentDto languageContent)
Description copied from interface: AdminService
Update language content.

Specified by:
updateLanguageContent in interface AdminService
Parameters:
agency - the agency dto
languageContent - the language content dto
Returns:
the agency data

updatePortal

public final PortalData updatePortal(PortalDto portal)
Description copied from interface: AdminService
Update portal.

Specified by:
updatePortal in interface AdminService
Parameters:
portal - the portal dto
Returns:
the portal data


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