|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.collab.CollaborationManager
public class CollaborationManager
Maintains a registry of API providers and related information.
Default Locale
s can be set for the API using this class. By
default, the value of Locale.getDefault()
is used unless there
is no translation available for this locale, in which case
Locale.US
is used.
Method Summary | |
---|---|
void |
addDefaultLogListener(ILogListener listener)
Adds a log listener that is used by default on every session on which the log listeners have not been changed. |
Map |
getAllCapabilities()
Gets all of the capabilities defined that a provider can choose to support. |
String |
getAllProvidersString()
Gets all of the providers in the provider registry as a comma separated list. |
static Locale |
getDefaultAdminLocale()
Gets the default Locale for administrators. |
LogLevel |
getDefaultLogLevel()
Gets the default log level. |
static Locale |
getDefaultProgrammerLocale()
Gets the default Locale for programmers. |
static Locale |
getDefaultUserLocale()
Gets the default Locale for users. |
Locale[] |
getLocales()
Gets the list of locales that API translations are available for. |
IProvider |
getProvider(String sInternalName)
Gets a provider by its internal name. |
IProvider[] |
getProviders()
Gets all of the providers. |
IProvider[] |
getProviders(Locale locale)
Gets all of the providers that have translations for the specified locale. |
IProvider[] |
getProviders(String sSchema)
Gets all of the providers that support the specified schema. |
Schema |
getSchema(String sInternalName)
Gets a schema by its internal name. |
Schema[] |
getSchemas()
Gets all of the schemas. |
static CollaborationManager |
i()
Gets the singleton instance of this class. |
static void |
main(String[] args)
Main. |
boolean |
removeDefaultLogListener(ILogListener listener)
Removes a log listener from every session. |
void |
setDefaultAdminLocale(Locale locale)
Sets the default Locale for administrators. |
void |
setDefaultLogLevel(LogLevel level)
Sets the log level that is used by all sessions that use the default log level. |
void |
setDefaultProgrammerLocale(Locale locale)
Sets the default Locale for programmers. |
void |
setDefaultUserLocale(Locale locale)
Sets the default Locale for users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setDefaultLogLevel(LogLevel level)
Logger.setLogLevel(LogLevel)
is called on
the logger on the session.
level
- the default log level (not null
)Logger.setDefaultLogLevel(LogLevel)
public LogLevel getDefaultLogLevel()
null
)Logger.getDefaultLogLevel()
public void addDefaultLogListener(ILogListener listener)
listener
- the listener to add (not null
)public boolean removeDefaultLogListener(ILogListener listener)
listener
- the listener to remove
true
if the listener was removed, or
false
if it did not exist in the listpublic void setDefaultUserLocale(Locale locale) throws CollaborationException
Locale
for users. When a new
Session
is instantiated and no Locale
is supplied
for the user, this is the one that is used.
locale
- the default user locale (if null
, then
the Locale.US
(US/English) locale is used)
CollaborationException
- if there is no API translation available
for the supplied locale (use getLocales()
to get a
list of available locales for the API)public static Locale getDefaultUserLocale()
Locale
for users.
null
)public void setDefaultAdminLocale(Locale locale) throws CollaborationException
Locale
for administrators. When a new
Session
is instantiated and no Locale
is supplied
for the administrator, this is the one that is used.
locale
- the default admin locale (if null
, then
the Locale.US
(US/English) locale is used)
CollaborationException
- if there is no API translation available
for the supplied locale (use getLocales()
to get a
list of available locales for the API)public static Locale getDefaultAdminLocale()
Locale
for administrators.
null
)public void setDefaultProgrammerLocale(Locale locale) throws CollaborationException
Locale
for programmers. When a new
Session
is instantiated and no Locale
is supplied
for the programmer, this is the one that is used.
locale
- the default programmer locale (if null
, then
the Locale.US
(US/English) locale is used)
CollaborationException
- if there is no API translation available
for the supplied locale (use getLocales()
to get a
list of available locales for the API)public static Locale getDefaultProgrammerLocale()
Locale
for programmers.
null
)public Schema[] getSchemas()
null
)public Schema getSchema(String sInternalName)
sInternalName
- the schema internal name
null
if no schema with the
given name is registeredpublic IProvider[] getProviders()
null
)public IProvider[] getProviders(Locale locale)
null
)public IProvider[] getProviders(String sSchema)
sSchema
- the internal name of the desired schema support
(not null
)
null
)public String getAllProvidersString()
public IProvider getProvider(String sInternalName)
sInternalName
- the provider internal name
null
if no provider with the
given name is registeredpublic static CollaborationManager i() throws CollaborationException
CollaborationException
public Locale[] getLocales()
Locale
s (not null
)public Map getAllCapabilities()
public static void main(String[] args) throws Throwable
args
- command line arguments
Throwable
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |