|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.persistence.gui.CustomObjectManagerImpl
The implementation of CustomObjectManager interface to assist in saving and loading objects from the repository.
Constructor Summary | |
CustomObjectManagerImpl(BIContext userRootContext) Constructor. | |
CustomObjectManagerImpl(BIContext userRootContext, java.lang.String favoritePath) Constructor. | |
CustomObjectManagerImpl(BIContext userRootContext, java.lang.String favoritePath, BIContext[] initContextPaths) Constructor. |
Method Summary | |
boolean |
deleteObject(ObjectBinding obj) Deletes the object from the persistence storage. |
ErrorHandler |
getErrorHandler() Returns and ErrorHandler object that's used for logging errors. |
oracle.bali.ewt.help.HelpProvider |
getHelpProvider() Retrieves the HelpProvider. |
java.util.Locale |
getLocale() Retrieves the locale that has been specified for this component. |
java.lang.String |
getSelectedName() Returns the name of the currently selected object. |
java.lang.String |
getSelectedPath() Returns the full path of the currently selected object. |
java.util.Vector |
listAllObjects(java.lang.String objectType) Provides a list of ObjectBindings of all objects of the given type that are found in the persistence storage (given the filters set on the persistence manager by the application that set permissions, roots, etc.). |
ObjectBinding |
loadObjectByType(java.lang.String objectType) Retrives from the persistence storage an object of a given type. |
ObjectBinding |
saveObjectByType(java.lang.String objectType, StringXMLizable objectToBeSaved) Saves an object of a given type in the persistence storage. |
void |
setErrorHandler(ErrorHandler errorHandler) Sets an ErrorHandler object that's used for logging errors. |
void |
setHelpProvider(oracle.bali.ewt.help.HelpProvider helpProvider) Specifies the HelpProvider. |
void |
setLocale(java.util.Locale locale) Specifies the locale for this component. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CustomObjectManagerImpl(BIContext userRootContext) throws BINoInitialContextException
userRootContext
- BIContext
object representing the top-most folder (root) within which we can search for objects and save objectsBINoInitialContextException
- if userRootContext
is null
public CustomObjectManagerImpl(BIContext userRootContext, java.lang.String favoritePath) throws BINoInitialContextException
userRootContext
- BIContext
object representing the top-most folder (root) within which we can search for objects and save objectsfavoritePath
- a String
representing the default folder (relative to userRootContext
) where the user will be taken automatically when evoking saving/loading dialogsBINoInitialContextException
- if userRootContext
is null
public CustomObjectManagerImpl(BIContext userRootContext, java.lang.String favoritePath, BIContext[] initContextPaths) throws BINoInitialContextException
userRootContext
- BIContext
object representing the top-most folder (root) within which we can search for objects and save objectsfavoritePath
- a String
representing the default folder (relative to userRootContext
) where the user will be taken automatically when evoking saving/loading dialogsinitContextPath
- a vector of BIContext
each of which represents a folder where objects will be loaded from at the initial stageBINoInitialContextException
- if userRootContext
is null
Method Detail |
public java.util.Vector listAllObjects(java.lang.String objectType)
listAllObjects
in interface CustomObjectManager
objectType
- a string representing the type of the objects that we are looking forpublic ObjectBinding loadObjectByType(java.lang.String objectType)
loadObjectByType
in interface CustomObjectManager
objectType
- a string representing the type of the object that we are looking for; if it's null or an empty string, no search filter will be provided in the FileChooser UI and the user will be able to select an object of any type.public ObjectBinding saveObjectByType(java.lang.String objectType, StringXMLizable objectToBeSaved)
saveObjectByType
in interface CustomObjectManager
objectType
- a string representing the type of the object that we are savingobjectToBeSaved
- an object that we are savingpublic boolean deleteObject(ObjectBinding obj)
deleteObject
in interface CustomObjectManager
obj
- an ObjectBinding representing the object to be deletedtrue
if deleting succeed false
if deleting failedpublic java.lang.String getSelectedPath()
getSelectedPath
in interface CustomObjectManager
public java.lang.String getSelectedName()
getSelectedName
in interface CustomObjectManager
public oracle.bali.ewt.help.HelpProvider getHelpProvider()
public void setHelpProvider(oracle.bali.ewt.help.HelpProvider helpProvider)
helpProvider
- The HelpProvider.public java.util.Locale getLocale()
setLocale
method or the default locale if none are specified.setLocale(java.util.Locale)
public void setLocale(java.util.Locale locale)
java.lang.util.Locale.setLocale
method, in that this method sets the locale only for this instance of the CustomObjectManagerImpl
.
The locale setting affects the text that is displayed and the date format, when details are displayed.
locale
- The locale for this component to use.public void setErrorHandler(ErrorHandler errorHandler)
ErrorHandler
object that's used for logging errors. If an error handler has been set, then this CustomObjectManagerImpl
reports error conditions to the handler. Otherwise, it prints the stack trace.errorHandler
- ErrorHandler
public ErrorHandler getErrorHandler()
ErrorHandler
object that's used for logging errors.ErrorHandler
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |