|
||||||||||
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.common.Agency
@Entity public class Agency
The Class Agency.
Constructor Summary | |
---|---|
Agency()
|
Method Summary | |
---|---|
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. |
Role[] |
getActorRoles()
Gets the actor roles. |
protected TypeContext |
getApplicationTypeContext()
Gets the application group specification. |
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 |
setActorRoles(Role[] roles)
Sets the actor roles. |
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 id
public LanguageContentData findLanguageContent(Long languageContentId)
AgencyData
findLanguageContent
in interface AgencyData
languageContentId
- the id
public LanguageData findMatchingLanguage(String acceptLanguagesCsv)
AgencyData
findMatchingLanguage
in interface AgencyData
acceptLanguagesCsv
- the accept language keys
public PortalData findMatchingPortal(String headerHost)
AgencyData
findMatchingPortal
in interface AgencyData
headerHost
- the server host
public Role[] getActorRoles()
Actor
getActorRoles
in interface Actor
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public Set<LanguageContent> getLanguageContent()
public LanguageContentData getLanguageContentByKey(LanguageContentKey key, LanguageData language)
AgencyData
getLanguageContentByKey
in interface AgencyData
key
- the winning percentage by partylanguage
- the language
public LanguageContentData getLanguageContentByKey(String key, LanguageData language)
key
- the keylanguage
- the language
public Set<LanguageContentData> getLanguageContentByLanguage(LanguageData language)
language
- the language
public Set<Language> getLanguages()
public List<LanguageData> getLanguagesData()
AgencyData
getLanguagesData
in interface AgencyData
public String getName()
Actor
getName
in interface Actor
public PortalData getPortalById(Long portalId)
AgencyData
getPortalById
in interface AgencyData
portalId
- the id
public 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 updated languagepublic void removePortalData(PortalData deletePortal)
AgencyData
removePortalData
in interface AgencyData
deletePortal
- the delete portalpublic void setActorRoles(Role[] roles)
Actor
setActorRoles
in interface Actor
roles
- the new actor rolespublic 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)
Actor
setName
in interface Actor
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 versionprotected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext
in class BaseEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |