|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.BrandService
com.nitido.nimx.services.brand.sysdefault.BrandServiceImpl
public class BrandServiceImpl
Field Summary |
---|
Fields inherited from class com.nitido.nim.BrandService |
---|
_confService |
Constructor Summary | |
---|---|
BrandServiceImpl(NiMKernelServiceVisa visa)
|
Method Summary | |
---|---|
java.util.List<Application> |
getApplications(java.util.List<java.lang.String> appIDs,
Entity entity)
Getting a list of application object based on the provided appIDs. |
Brand |
getBrand(NimletInput input,
Entity user)
Returns a brand object for this user. |
Brand |
getDomainBrand(java.lang.String domain)
Get a brand object for a given domain without relying on input or an authenticated entity. |
java.lang.String |
getMessage(java.lang.String domainID,
java.lang.String brandID,
java.lang.String msgID,
java.lang.String locale,
java.lang.Object... msgParams)
Translates a message to given locale based on the brand's dictionary |
protected java.util.List<Application> |
getSysDefaultApplicationList()
|
Brand |
getSystemDefaultBrand()
Getting the system default brand. |
java.lang.String |
getSystemDefaultLocale()
Getting the system default locale string. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
protected void |
preloadLangBundles()
|
Methods inherited from class com.nitido.nim.BrandService |
---|
getBooleanPropertyWithDefault, getLongProperty, getLongPropertyWithDefault, getStringProperty, getStringPropertyWithDefault, loadLocaleMap, loadSysDefaultApps |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrandServiceImpl(NiMKernelServiceVisa visa)
Method Detail |
---|
protected void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
NiMKernelService
init
in class BrandService
kernel
- Reference to the NiMKernel object that instantiated the
service.confService
- A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException
- If unable to initialize the kernel service.
NiMException
- If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.protected void preloadLangBundles()
public Brand getBrand(NimletInput input, Entity user)
BrandService
getBrand
in class BrandService
input
- the current request's nimlet input object. If this brand object is
required for an unauthenticated entity it may be left null.user
- the current user
public Brand getDomainBrand(java.lang.String domain)
BrandService
getDomainBrand
in class BrandService
domain
- domain whose default brand is to be retrieved
public Brand getSystemDefaultBrand()
BrandService
getSystemDefaultBrand
in class BrandService
public java.lang.String getMessage(java.lang.String domainID, java.lang.String brandID, java.lang.String msgID, java.lang.String locale, java.lang.Object... msgParams)
BrandService
getMessage
in class BrandService
domainID
- the requesting user's domainID (used for fail over forbrandID
- the ID of the brand (this brand's dictionary will be used
to retrieve the message)
the error message)msgID
- the ID of the messagelocale
- the locale for which to retrieve this messagemsgParams
- variable argument which can take an array of objects, or
1 or more objects, or not be supplied at all
public java.lang.String getSystemDefaultLocale()
BrandService
getSystemDefaultLocale
in class BrandService
protected java.util.List<Application> getSysDefaultApplicationList()
public java.util.List<Application> getApplications(java.util.List<java.lang.String> appIDs, Entity entity)
BrandService
getApplications
in class BrandService
appIDs
- the list of application IDs to be retrieved.
If this parameter is null, the method should use the system default
application ID list instead.entity
- the User's entity object. It is used to populate the
user specific preference for each application. If this parameter is
null, the method should use the system default preference for the
application.
|
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.