com.hack23.cia.model.impl.application.configuration
Class Agency

Package class diagram package Agency
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.application.configuration.Agency
All Implemented Interfaces:
AgencyData, ApplicationEnvironment, Environment, ModelObject, PersistedModelObject, Serializable

@Entity
public class Agency
extends BaseEntity
implements AgencyData

The Class Agency.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Agency()
           
 
Method Summary
Modifier and Type Method and Description
 void addLanguageContentData(LanguageContentData languageContent)
          Adds the language content data.
 void addLanguageData(LanguageData language)
          Adds the language data.
 void addPortalData(PortalData portal)
          Adds the portal data.
 LanguageData findLanguage(Long languageId)
          Find language.
 LanguageContentData findLanguageContent(Long languageContentId)
          Find language content.
 LanguageData findMatchingLanguage(String acceptLanguagesCsv)
          Find matching language.
 PortalData findMatchingPortal(String headerHost)
          Find matching portal.
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 Long getId()
          Gets the id.
 Set<LanguageContent> getLanguageContent()
          Gets the language content.
 LanguageContentData getLanguageContentByKey(LanguageContentKey key, LanguageData language)
          Gets the language content by key.
 LanguageContentData getLanguageContentByKey(String key, LanguageData language)
          Gets the language content by key.
 Set<LanguageContentData> getLanguageContentByLanguage(LanguageData language)
          Gets the language content by language.
 Set<Language> getLanguages()
          Gets the languages.
 List<LanguageData> getLanguagesData()
          Gets the languages data.
 String getName()
          Gets the name.
 PortalData getPortalById(Long portalId)
          Gets the portal by id.
 Set<Portal> getPortals()
          Gets the portals.
 List<PortalData> getPortalsData()
          Gets the portals data.
 Long getVersion()
          Gets the version.
 void removeLanguageContent(LanguageContentData languageContent)
          Removes the language content.
 void removeLanguageData(LanguageData updatedLanguage)
          Removes the language data.
 void removePortalData(PortalData deletePortal)
          Removes the portal data.
 void setId(Long id)
          Sets the id.
 void setLanguageContent(Set<LanguageContent> languageContent)
          Sets the language content.
 void setLanguages(Set<Language> languages)
          Sets the languages.
 void setName(String name)
          Sets the name.
 void setPortals(Set<Portal> portals)
          Sets the portals.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity
equals, getTypeContext, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getTypeContext, isNew
 

Constructor Detail

Agency

public Agency()
Method Detail

addLanguageContentData

public void addLanguageContentData(LanguageContentData languageContent)
Description copied from interface: AgencyData
Adds the language content data.

Specified by:
addLanguageContentData in interface AgencyData
Parameters:
languageContent - the language content

addLanguageData

public void addLanguageData(LanguageData language)
Description copied from interface: AgencyData
Adds the language data.

Specified by:
addLanguageData in interface AgencyData
Parameters:
language - the language

addPortalData

public void addPortalData(PortalData portal)
Description copied from interface: AgencyData
Adds the portal data.

Specified by:
addPortalData in interface AgencyData
Parameters:
portal - the portal

findLanguage

public LanguageData findLanguage(Long languageId)
Description copied from interface: AgencyData
Find language.

Specified by:
findLanguage in interface AgencyData
Parameters:
languageId - the id
Returns:
the language data

findLanguageContent

public LanguageContentData findLanguageContent(Long languageContentId)
Description copied from interface: AgencyData
Find language content.

Specified by:
findLanguageContent in interface AgencyData
Parameters:
languageContentId - the id
Returns:
the language content data

findMatchingLanguage

public LanguageData findMatchingLanguage(String acceptLanguagesCsv)
Description copied from interface: AgencyData
Find matching language.

Specified by:
findMatchingLanguage in interface AgencyData
Parameters:
acceptLanguagesCsv - the accept language keys
Returns:
the language data

findMatchingPortal

public PortalData findMatchingPortal(String headerHost)
Description copied from interface: AgencyData
Find matching portal.

Specified by:
findMatchingPortal in interface AgencyData
Parameters:
headerHost - the server host
Returns:
the portal data

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getLanguageContent

public Set<LanguageContent> getLanguageContent()
Gets the language content.

Returns:
the language content

getLanguageContentByKey

public LanguageContentData getLanguageContentByKey(String key,
                                                   LanguageData language)
Description copied from interface: AgencyData
Gets the language content by key.

Specified by:
getLanguageContentByKey in interface AgencyData
Parameters:
key - the key
language - the language
Returns:
the language content by key

getLanguageContentByLanguage

public Set<LanguageContentData> getLanguageContentByLanguage(LanguageData language)
Description copied from interface: AgencyData
Gets the language content by language.

Specified by:
getLanguageContentByLanguage in interface AgencyData
Parameters:
language - the language data
Returns:
the language content by language

getLanguages

public Set<Language> getLanguages()
Gets the languages.

Returns:
the languages

getLanguagesData

public List<LanguageData> getLanguagesData()
Description copied from interface: AgencyData
Gets the languages data.

Specified by:
getLanguagesData in interface AgencyData
Returns:
the languages data

getName

public String getName()
Description copied from interface: Environment
Gets the name.

Specified by:
getName in interface Environment
Returns:
the name

getPortalById

public PortalData getPortalById(Long portalId)
Description copied from interface: AgencyData
Gets the portal by id.

Specified by:
getPortalById in interface AgencyData
Parameters:
portalId - the id
Returns:
the portal by id

getPortals

public Set<Portal> getPortals()
Gets the portals.

Returns:
the portals

getPortalsData

public List<PortalData> getPortalsData()
Description copied from interface: AgencyData
Gets the portals data.

Specified by:
getPortalsData in interface AgencyData
Returns:
the portals data

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

removeLanguageContent

public void removeLanguageContent(LanguageContentData languageContent)
Description copied from interface: AgencyData
Removes the language content.

Specified by:
removeLanguageContent in interface AgencyData
Parameters:
languageContent - the language content

removeLanguageData

public void removeLanguageData(LanguageData updatedLanguage)
Description copied from interface: AgencyData
Removes the language data.

Specified by:
removeLanguageData in interface AgencyData
Parameters:
updatedLanguage - the language

removePortalData

public void removePortalData(PortalData deletePortal)
Description copied from interface: AgencyData
Removes the portal data.

Specified by:
removePortalData in interface AgencyData
Parameters:
deletePortal - the portal

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setLanguageContent

public void setLanguageContent(Set<LanguageContent> languageContent)
Sets the language content.

Parameters:
languageContent - the new language content

setLanguages

public void setLanguages(Set<Language> languages)
Sets the languages.

Parameters:
languages - the new languages

setName

public void setName(String name)
Description copied from interface: Environment
Sets the name.

Specified by:
setName in interface Environment
Parameters:
name - the new name

setPortals

public void setPortals(Set<Portal> portals)
Sets the portals.

Parameters:
portals - the new portals

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version

getLanguageContentByKey

public LanguageContentData getLanguageContentByKey(LanguageContentKey key,
                                                   LanguageData language)
Description copied from interface: AgencyData
Gets the language content by key.

Specified by:
getLanguageContentByKey in interface AgencyData
Parameters:
key - the winning percentage by party
language - the language
Returns:
the language content by key


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