|
Oracle® WebCenter Content Java API Reference for Imaging 11g Release 1 (11.1.1) E12853-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PreferenceService
The service for interacting with preferences. The methods on this service are related to storage and retrieval of state information that is needed for later user. Even though any string can be used in this manager it is preferable that this be XML data. Using XML will allow for later debugging of data and ease of correcting if needed. The information stored can be as much, as little, as specific, or as generic as the implementer requires. Storing and retrieval of this information is broken down into two different types: - The first is the system level preferences. These generic preferences that only system level configuration administrators be able to save but that all users can access. For instance, the perferred color scheme for the overall application. - The second is the user level preferences that only the current user of the system can save or access their specific preference information. For instance, saving the perferred view of a document.
Method Summary | |
---|---|
java.lang.String[] |
getInputDirectories() getInputDirectories is a convience method that returnes the typed and split up list of input directories that is currently saved in the system. |
java.lang.String |
getSystemPreference(java.lang.String context) Loads the generic system level preferences specified. |
java.lang.String |
getUserPreference(java.lang.String context) Loads the user level preferences specified. |
void |
setInputDirectories(java.lang.String[] directories) This is a convience method to save an input directory list to the configuration table for Input Agent to use. |
void |
setSystemPreference(java.lang.String context, java.lang.String preferences) Saves the generic system level preferences specified. |
void |
setUserPreference(java.lang.String context, java.lang.String preferences) Saves the user level preferences specified. |
Method Detail |
---|
void setSystemPreference(java.lang.String context, java.lang.String preferences) throws ImagingException
context
- The unique value used to save the system preferences. For example, this string could be 'System Colors'.preferences
- The persistent information to store. This should be an XML file that contains the persistent information, but can be any character based value(s) as well. Passing a null value will remove the preference file if one exist.ImagingException
java.lang.String getSystemPreference(java.lang.String context) throws ImagingException
context
- The unique value used to load the system preferences. This is the same value used during the setSystemPreference method.ImagingException
void setInputDirectories(java.lang.String[] directories) throws ImagingException
directories
- - The set of directories to save.ImagingException
java.lang.String[] getInputDirectories() throws ImagingException
ImagingException
void setUserPreference(java.lang.String context, java.lang.String preferences) throws ImagingException
context
- The unique value used to save the user preferences. For example, this string could be 'System Colors'.preferences
- The persistent information to store. This should be an XML file that contains the persistent information, but can be any character based value(s) as well. Passing a null value will remove the preference file if one exist.ImagingException
java.lang.String getUserPreference(java.lang.String context) throws ImagingException
context
- The unique value used to load the user preferences. This is the same value used during the setSystemPreference method.ImagingException
|
Oracle® WebCenter Content Java API Reference for Imaging 11g Release 1 (11.1.1) E12853-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |