org.pdfsam.guiclient.configuration.services
Interface ConfigurationService

All Known Implementing Classes:
XmlConfigurationService

public interface ConfigurationService

configuration service

Author:
Andrea Vacondio

Method Summary
 java.lang.String getConfigurationInformations()
           
 org.pdfsam.console.business.ConsoleServicesFacade getConsoleServicesFacade()
           
 java.lang.String getDefaultEnvironment()
           
 java.lang.String getDefaultWorkingDirectory()
           
 java.util.ResourceBundle getI18nResourceBundle()
           
 java.lang.String getLanguage()
           
 int getLoggingLevel()
           
 int getLookAndFeel()
           
 java.lang.String getPluginAbsolutePath()
           
 int getTheme()
           
 int getThumbCreatorPoolSize()
           
 java.lang.String getThumbnailsCreatorIdentifier()
           
 int getThumbnailSize()
           
 boolean isAskOverwriteConfirmation()
           
 boolean isCheckForUpdates()
           
 boolean isHighQualityThumbnils()
           
 boolean isPlaySounds()
           
 void save()
          save the configuration
 void setAskOverwriteConfirmation(boolean askConfirmation)
          set the ask for confirmation flag
 void setCheckForUpdates(boolean checkForUpdateds)
          set the checl for updates flag
 void setDefaultEnvironment(java.lang.String path)
          set the path for the default environment
 void setDefaultWorkingDirectory(java.lang.String path)
          set the path to the default working directory
 void setLanguage(java.lang.String language)
          Set the language
 void setLoggingLevel(int level)
          Set the logging level
 void setLookAndFeel(int lookAndFeel)
          Set the look and feel
 void setPlaySounds(boolean playSounds)
          Set the play sounds flag
 void setTheme(int theme)
          Set the theme
 void setThumbnailsCreatorIdentifier(java.lang.String identifier)
          Set the thumbnail creator identifier
 

Method Detail

getConsoleServicesFacade

org.pdfsam.console.business.ConsoleServicesFacade getConsoleServicesFacade()
Returns:
facade for the console services

getDefaultEnvironment

java.lang.String getDefaultEnvironment()
Returns:
path to the default environment

setDefaultEnvironment

void setDefaultEnvironment(java.lang.String path)
set the path for the default environment

Parameters:
path -

getDefaultWorkingDirectory

java.lang.String getDefaultWorkingDirectory()
Returns:
path to te default working directory

setDefaultWorkingDirectory

void setDefaultWorkingDirectory(java.lang.String path)
set the path to the default working directory

Parameters:
path -

getI18nResourceBundle

java.util.ResourceBundle getI18nResourceBundle()
Returns:
internationalization resource bundle

getLoggingLevel

int getLoggingLevel()
Returns:
logging level

setLoggingLevel

void setLoggingLevel(int level)
Set the logging level

Parameters:
level -

getThumbCreatorPoolSize

int getThumbCreatorPoolSize()
Returns:
size of the threadpool used by the thumbnails creator

isHighQualityThumbnils

boolean isHighQualityThumbnils()
Returns:
true if the thumbnails should be generated in high quality

getThumbnailSize

int getThumbnailSize()
Returns:
the size of the thumbnails

getThumbnailsCreatorIdentifier

java.lang.String getThumbnailsCreatorIdentifier()
Returns:
identifier of the thumbnails creator to use

setThumbnailsCreatorIdentifier

void setThumbnailsCreatorIdentifier(java.lang.String identifier)
Set the thumbnail creator identifier

Parameters:
identifier -

isCheckForUpdates

boolean isCheckForUpdates()
Returns:
the checkForUpdates

setCheckForUpdates

void setCheckForUpdates(boolean checkForUpdateds)
set the checl for updates flag

Parameters:
checkForUpdateds -

isPlaySounds

boolean isPlaySounds()
Returns:
the playSounds

setPlaySounds

void setPlaySounds(boolean playSounds)
Set the play sounds flag

Parameters:
playSounds -

getConfigurationInformations

java.lang.String getConfigurationInformations()
Returns:
information about the configuration service to be displayed

getLookAndFeel

int getLookAndFeel()
Returns:
the look and feel

setLookAndFeel

void setLookAndFeel(int lookAndFeel)
Set the look and feel

Parameters:
lookAndFeel -

getTheme

int getTheme()
Returns:
the theme

setTheme

void setTheme(int theme)
Set the theme

Parameters:
theme -

getLanguage

java.lang.String getLanguage()
Returns:
String representation of the language

setLanguage

void setLanguage(java.lang.String language)
Set the language

Parameters:
language -

getPluginAbsolutePath

java.lang.String getPluginAbsolutePath()
Returns:
the plugin absolute path

isAskOverwriteConfirmation

boolean isAskOverwriteConfirmation()
Returns:
true to ask for confirmation when overwriting check box is selected

setAskOverwriteConfirmation

void setAskOverwriteConfirmation(boolean askConfirmation)
set the ask for confirmation flag

Parameters:
askConfirmation -

save

void save()
          throws java.io.IOException
save the configuration

Throws:
java.io.IOException - in case of error saving the configuration