|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.Brand
public abstract class Brand
This is the data object for a brand in the multi-tenant environment. It is introduced to support the BrandService.
This object is designed to be non-changable once it has been instantiated. User should NOT modify the collection objects returned by the methods of this class, such as the Map object returned by the getAvailableLocales(). It is because these collection objects are the actual reference used by this object. They are not cloned copies. (We did not clone them in order to reduce the memory requirement).
As long as the user never modified the maps returned from getAvailableLocales(), this object is thread safe.
Application
,
Domain
,
Serialized FormField Summary | |
---|---|
protected java.util.List<Application> |
_apps
A list of applications configured for this brand for this person. |
protected java.util.Map<java.lang.String,java.lang.String> |
_availLocales
Locales supported by this brand. |
protected java.lang.String |
_brandID
The ID of this brand. |
protected java.lang.String |
_defaultLocale
The default locale to be used for this brand. |
protected java.lang.String |
_domainID
The ID of the requesting domain. |
protected boolean |
_isSystemDefault
Boolean flag to indicate whether this object is a system default brand. |
protected java.util.Map<java.lang.String,java.lang.String> |
_properties
Brand properties for this brand. |
protected java.lang.String |
_userLocale
The user's current locale. |
Constructor Summary | |
---|---|
Brand(boolean isSystemDefault,
java.lang.String brandID,
java.lang.String domainID,
java.lang.String defaultLocale,
java.util.Map<java.lang.String,java.lang.String> availLocales,
java.util.Map<java.lang.String,java.lang.String> properties,
java.util.List<Application> apps,
java.lang.String locale)
Default constructor of the Brand object. |
Method Summary | |
---|---|
Application |
getApplication(java.lang.String appName)
Get an application. |
java.util.List<Application> |
getApplications()
Get the list of applications configured for this brand. |
java.util.Map<java.lang.String,java.lang.String> |
getAvailableLocales()
|
java.lang.String |
getBrandID()
Get the ID of this brand. |
java.lang.String |
getDefaultLocale()
|
java.lang.String |
getDomainID()
Get the ID of the requesting user's domain. |
abstract java.lang.String |
getFilePath(java.lang.String path)
|
abstract java.lang.String |
getLocale()
|
java.lang.String |
getMessage(java.lang.String msgID,
java.lang.String locale,
java.lang.Object... msgParam)
This method returns the value associated to the given msgID for the given locale. |
java.lang.String |
getProperty(java.lang.String propName)
|
java.util.Set<java.lang.String> |
getPropertyKeys()
|
boolean |
isSystemDefault()
|
java.lang.String |
toString()
Get the string representation of this object (mainly for debug). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<java.lang.String,java.lang.String> _properties
protected final java.util.Map<java.lang.String,java.lang.String> _availLocales
protected final java.lang.String _defaultLocale
protected final java.lang.String _brandID
protected final java.lang.String _domainID
protected final java.util.List<Application> _apps
protected final boolean _isSystemDefault
protected final java.lang.String _userLocale
Constructor Detail |
---|
public Brand(boolean isSystemDefault, java.lang.String brandID, java.lang.String domainID, java.lang.String defaultLocale, java.util.Map<java.lang.String,java.lang.String> availLocales, java.util.Map<java.lang.String,java.lang.String> properties, java.util.List<Application> apps, java.lang.String locale)
isSystemDefault
- boolean flag that indicates this is a system
default brand.brandID
- the brand ID string.domainID
- the domain ID string.defaultLocale
- the default locale of this brandavailLocales
- A Map of locale code to "locale display name". The
locale code should be the ISO 639 format.properties
- A Map of property key to property value. Both the key
and value are String objects.apps
- A list of Application objectslocale
- Method Detail |
---|
public java.lang.String getBrandID()
public java.lang.String getDomainID()
public boolean isSystemDefault()
public java.util.List<Application> getApplications()
public Application getApplication(java.lang.String appName)
appName
- the name of the application
public java.lang.String getMessage(java.lang.String msgID, java.lang.String locale, java.lang.Object... msgParam)
msgID
- Reference to the message that needs to be translated.locale
- Defines the language of the message.
public abstract java.lang.String getFilePath(java.lang.String path)
path
-
public java.lang.String getProperty(java.lang.String propName)
propName
-
public java.util.Set<java.lang.String> getPropertyKeys()
public java.util.Map<java.lang.String,java.lang.String> getAvailableLocales()
public java.lang.String getDefaultLocale()
public abstract java.lang.String getLocale()
public java.lang.String toString()
toString
in class java.lang.Object
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.