|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.impl.common.BaseEntity com.hack23.cia.model.impl.application.configuration.Agency
@Entity public class Agency extends BaseEntity implements AgencyData
The Class Agency.
Constructor and Description |
---|
Agency()
|
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 |
---|
public Agency()
Method Detail |
---|
public void addLanguageContentData(LanguageContentData languageContent)
AgencyData
addLanguageContentData
in interface AgencyData
languageContent
- the language contentpublic void addLanguageData(LanguageData language)
AgencyData
addLanguageData
in interface AgencyData
language
- the languagepublic void addPortalData(PortalData portal)
AgencyData
addPortalData
in interface AgencyData
portal
- the portalpublic LanguageData findLanguage(Long languageId)
AgencyData
findLanguage
in interface AgencyData
languageId
- the idpublic LanguageContentData findLanguageContent(Long languageContentId)
AgencyData
findLanguageContent
in interface AgencyData
languageContentId
- the idpublic LanguageData findMatchingLanguage(String acceptLanguagesCsv)
AgencyData
findMatchingLanguage
in interface AgencyData
acceptLanguagesCsv
- the accept language keyspublic PortalData findMatchingPortal(String headerHost)
AgencyData
findMatchingPortal
in interface AgencyData
headerHost
- the server hostprotected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext
in class BaseEntity
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public Set<LanguageContent> getLanguageContent()
public LanguageContentData getLanguageContentByKey(String key, LanguageData language)
AgencyData
getLanguageContentByKey
in interface AgencyData
key
- the keylanguage
- the languagepublic Set<LanguageContentData> getLanguageContentByLanguage(LanguageData language)
AgencyData
getLanguageContentByLanguage
in interface AgencyData
language
- the language datapublic Set<Language> getLanguages()
public List<LanguageData> getLanguagesData()
AgencyData
getLanguagesData
in interface AgencyData
public String getName()
Environment
getName
in interface Environment
public PortalData getPortalById(Long portalId)
AgencyData
getPortalById
in interface AgencyData
portalId
- the idpublic Set<Portal> getPortals()
public List<PortalData> getPortalsData()
AgencyData
getPortalsData
in interface AgencyData
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public void removeLanguageContent(LanguageContentData languageContent)
AgencyData
removeLanguageContent
in interface AgencyData
languageContent
- the language contentpublic void removeLanguageData(LanguageData updatedLanguage)
AgencyData
removeLanguageData
in interface AgencyData
updatedLanguage
- the languagepublic void removePortalData(PortalData deletePortal)
AgencyData
removePortalData
in interface AgencyData
deletePortal
- the portalpublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setLanguageContent(Set<LanguageContent> languageContent)
languageContent
- the new language contentpublic void setLanguages(Set<Language> languages)
languages
- the new languagespublic void setName(String name)
Environment
setName
in interface Environment
name
- the new namepublic void setPortals(Set<Portal> portals)
portals
- the new portalspublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new versionpublic LanguageContentData getLanguageContentByKey(LanguageContentKey key, LanguageData language)
AgencyData
getLanguageContentByKey
in interface AgencyData
key
- the winning percentage by partylanguage
- the language
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |