com.hack23.cia.service.impl.configuration
Class ConfigurationServiceImpl

Package class diagram package ConfigurationServiceImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.configuration.ConfigurationServiceImpl
All Implemented Interfaces:
ConfigurationService

public class ConfigurationServiceImpl
extends Object
implements ConfigurationService

The Class ConfigurationServiceImpl.


Constructor Summary
Constructor and Description
ConfigurationServiceImpl(AgencyDAO agencyDAO, ResourceDAO resourceDAO, ApplicationModelFactoryFactory applicationModelFactoryFactory)
          Instantiates a new configuration service impl.
 
Method Summary
Modifier and Type Method and Description
 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.
 AgencyData deleteLanguage(AgencyDto agency, LanguageDto language)
          Delete language.
 AgencyData deleteLanguageContent(AgencyDto agency, LanguageContentDto languageContent)
          Delete language content.
 AgencyData deletePortal(PortalDto portal)
          Delete portal.
 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

ConfigurationServiceImpl

public ConfigurationServiceImpl(AgencyDAO agencyDAO,
                                ResourceDAO resourceDAO,
                                ApplicationModelFactoryFactory applicationModelFactoryFactory)
Instantiates a new configuration service impl.

Parameters:
agencyDAO - the agency dao
resourceDAO - the resource dao
applicationModelFactoryFactory - the application model factory factory
Method Detail

addAgencyLanguageContent

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

Specified by:
addAgencyLanguageContent in interface ConfigurationService
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: ConfigurationService
Adds the language.

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

addLanguageContent

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

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

addPortal

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

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

deleteLanguage

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

Specified by:
deleteLanguage in interface ConfigurationService
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: ConfigurationService
Delete language content.

Specified by:
deleteLanguageContent in interface ConfigurationService
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: ConfigurationService
Delete portal.

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

loadAgency

@Cacheable(cacheName="agencyServiceCache")
public final AgencyData loadAgency()
Description copied from interface: ConfigurationService
Load agency.

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

loadAgency

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

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

updateAgency

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

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

updateLanguage

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

Specified by:
updateLanguage in interface ConfigurationService
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: ConfigurationService
Update language content.

Specified by:
updateLanguageContent in interface ConfigurationService
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: ConfigurationService
Update portal.

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


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