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

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

@Entity
public class Agency
extends BaseEntity
implements ApplicationGroup, ApplicationEnvironment

The Class Agency.

See Also:
Serialized Form

Nested Class Summary
static class Agency.LanguageContentKey
          The Enum LanguageContentKey.
 
Constructor Summary
Agency()
           
 
Method Summary
 Language findLanguage(Long languageId)
          Find language.
 LanguageContent findLanguageContent(Long languageContentId)
          Find language content.
 Language findMatchingLanguage(String acceptLanguagesCsv)
          Find matching language.
 Portal findMatchingPortal(String headerHost)
          Find matching portal.
 Role[] getActorRoles()
          Gets the actor roles.
 Long getId()
          Gets the id.
 Set<LanguageContent> getLanguageContent()
          Gets the language content.
 LanguageContent getLanguageContentByKey(Agency.LanguageContentKey key, Language language)
          Gets the language content by key.
 LanguageContent getLanguageContentByKey(String key, Language language)
          Gets the language content by key.
 Set<LanguageContent> getLanguageContentByLanguage(Language language)
          Gets the language content by language.
 Set<Language> getLanguages()
          Gets the languages.
 String getName()
          Gets the name.
 Portal getPortalById(Long portalId)
          Gets the portal by id.
 Set<Portal> getPortals()
          Gets the portals.
 Long getVersion()
          Gets the version.
 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.common.impl.BaseEntity
equals, 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.common.api.PersistedModelObject
isNew
 

Constructor Detail

Agency

public Agency()
Method Detail

findLanguage

public Language findLanguage(Long languageId)
Find language.

Parameters:
languageId - the language id
Returns:
the language

findLanguageContent

public LanguageContent findLanguageContent(Long languageContentId)
Find language content.

Parameters:
languageContentId - the language content id
Returns:
the language content

findMatchingLanguage

public Language findMatchingLanguage(String acceptLanguagesCsv)
Find matching language.

Parameters:
acceptLanguagesCsv - the accept languages csv
Returns:
the language

findMatchingPortal

public Portal findMatchingPortal(String headerHost)
Find matching portal.

Parameters:
headerHost - the header host
Returns:
the portal

getActorRoles

public Role[] getActorRoles()
Description copied from interface: Actor
Gets the actor roles.

Specified by:
getActorRoles in interface Actor
Returns:
the actor roles

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 LanguageContent getLanguageContentByKey(Agency.LanguageContentKey key,
                                               Language language)
Gets the language content by key.

Parameters:
key - the key
language - the language
Returns:
the language content by key

getLanguageContentByKey

public LanguageContent getLanguageContentByKey(String key,
                                               Language language)
Gets the language content by key.

Parameters:
key - the key
language - the language
Returns:
the language content by key

getLanguageContentByLanguage

public Set<LanguageContent> getLanguageContentByLanguage(Language language)
Gets the language content by language.

Parameters:
language - the language
Returns:
the language content by language

getLanguages

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

Returns:
the languages

getName

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

Specified by:
getName in interface Actor
Returns:
the name

getPortalById

public Portal getPortalById(Long portalId)
Gets the portal by id.

Parameters:
portalId - the portal id
Returns:
the portal by id

getPortals

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

Returns:
the portals

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

setActorRoles

public void setActorRoles(Role[] roles)
Description copied from interface: Actor
Sets the actor roles.

Specified by:
setActorRoles in interface Actor
Parameters:
roles - the new actor roles

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: Actor
Sets the name.

Specified by:
setName in interface Actor
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


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