public class MDSRepository
extends java.lang.Object
implements oracle.mds.notifications.MOChangeListener
MDSRepository
instance represents an MDS configuration
for an application. That configuration is established in the adf-config.xml
file packaged with the application. An instance is obtained from
Repositories
. It has methods for
DictionaryFinder
,DictionaryExplorer
,DictionaryUpdater
,MDSSandbox for sandbox support
,MDSRepository
.Modifier and Type | Method and Description |
---|---|
DictionaryExplorer |
getExplorer(java.util.Locale locale,
java.security.Principal principal)
Get a DictionaryExplorer for this MDS repository.
|
DictionaryExplorer |
getExplorer(java.util.Locale locale,
java.security.Principal principal,
boolean forceTip,
java.lang.String sandboxName)
Get a DictionaryExplorer for this MDS repository.
|
AbstractDictionaryFinder |
getFinder(java.util.Locale locale)
Get an AbstractDictionaryFinder for this MDS repository.
|
AbstractDictionaryFinder |
getFinder(java.util.Locale locale,
boolean forceTip,
java.lang.String sandboxName)
Get an AbstractDictionaryFinder for this MDS repository.
|
java.lang.String |
getName()
Get the name of this MDSRepository instance.
|
MDSSandbox |
getSandboxSupport()
Get access to MDS sandbox support for this MDS repository.
|
DictionaryUpdater |
getUpdater(java.util.Locale locale,
java.security.Principal principal)
Get a DictionaryUpdater for this MDS repository.
|
DictionaryUpdater |
getUpdater(java.util.Locale locale,
java.security.Principal principal,
boolean forceTip,
java.lang.String sandboxName)
Get a DictionaryUpdater for this MDS repository.
|
boolean |
isSandboxSupported()
Determine if MDS sandboxes are supported.
|
void |
registerListener(MDSRepositoryListener listener)
Register a listener with this MDS repository.
|
void |
unregisterListener(MDSRepositoryListener listener)
Unregister a listener with this MDS repository.
|
public DictionaryExplorer getExplorer(java.util.Locale locale, java.security.Principal principal) throws RepositoryException
locale
- The specific locale to use. If null, the default is used.principal
- The identity to associate with changes. May be null.RepositoryException
- if an error occurspublic DictionaryExplorer getExplorer(java.util.Locale locale, java.security.Principal principal, boolean forceTip, java.lang.String sandboxName) throws RepositoryException
locale
- The specific locale to use. If null, the default is used.principal
- The identity to associate with changes. May be null.forceTip
- A value of true will ignore labels specified in the MDS
configuration so that the latest version, the tip, may
be accessed.sandboxName
- The name of the MDS sandbox to access. May be null.RepositoryException
- if an error occurspublic AbstractDictionaryFinder getFinder(java.util.Locale locale) throws RepositoryException
locale
- The specific locale to use. If null, the default is used.RepositoryException
- if an error occurspublic AbstractDictionaryFinder getFinder(java.util.Locale locale, boolean forceTip, java.lang.String sandboxName) throws RepositoryException
locale
- The specific locale to use. If null, the default is used.forceTip
- A value of true will ignore labels specified in the MDS
configuration so that the latest version, the tip, may
be accessed.sandboxName
- The name of the MDS sandbox to access. May be null.RepositoryException
- if an error occurspublic DictionaryUpdater getUpdater(java.util.Locale locale, java.security.Principal principal) throws RepositoryException
locale
- The specific locale to use. If null, the default is used.principal
- The identity to associate with changes. May be null.RepositoryException
- if an error occurspublic DictionaryUpdater getUpdater(java.util.Locale locale, java.security.Principal principal, boolean forceTip, java.lang.String sandboxName) throws RepositoryException
locale
- The specific locale to use. If null, the default is used.principal
- The identity to associate with changes. May be null.forceTip
- A value of true will ignore labels specified in the MDS
configuration so that the latest version, the tip, may
be accessed.sandboxName
- The name of the MDS sandbox to access. May be null.RepositoryException
- if an error occurspublic MDSSandbox getSandboxSupport()
RepositoryException
- if an error occurspublic void registerListener(MDSRepositoryListener listener) throws RepositoryException
listener
- The MDSRepositoryListener implementation that will
receive notifications of changes to the repository.RepositoryException
- if an error occurspublic void unregisterListener(MDSRepositoryListener listener) throws RepositoryException
listener
- The MDSRepositoryListener implementation to unregister.RepositoryException
- if an error occurspublic java.lang.String getName()
public boolean isSandboxSupported()