com.groupdocs.viewer.config
Class ServiceConfiguration

java.lang.Object
  extended by com.groupdocs.viewer.config.ServiceConfiguration

public class ServiceConfiguration
extends Object

Viewer configuration data container with all required information to initialize Viewer object

Author:
Alex Bobkov

Field Summary
static String TEMP
           
 
Constructor Summary
ServiceConfiguration(IServiceConfiguration config)
           
 
Method Summary
 String getApplicationPath()
          Get application path
 IServiceConfiguration getConfig()
          Get UI configuration
 com.groupdocs.viewer.db.manager.LinkManager getLinkManager()
          Get files path manager object
 com.groupdocs.viewer.db.manager.PageRotationManager getPageRotationManager()
          Get page rotation manager
 String getRootDir()
          Path to file storage
 String getStorageDir()
          Path to files directory, starting from root path
 String getTempDir()
          Path to temp directory where all generated images will be stored
 String getUploadPath()
          Get upload path
By default upload path is set in storage path
 void initLinkManager()
          Initialization of files path manager
 void initPageRotationManager()
          Initialization of page rotation manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMP

public static final String TEMP
See Also:
Constant Field Values
Constructor Detail

ServiceConfiguration

public ServiceConfiguration(IServiceConfiguration config)
Method Detail

getApplicationPath

public String getApplicationPath()
Get application path

Returns:
application path

getRootDir

public String getRootDir()
Path to file storage

Returns:
Path to file storage

getTempDir

public String getTempDir()
Path to temp directory where all generated images will be stored

Returns:
Path to temp directory

getStorageDir

public String getStorageDir()
Path to files directory, starting from root path

Returns:
Path to files directory

getUploadPath

public String getUploadPath()
Get upload path
By default upload path is set in storage path

Returns:

getConfig

public IServiceConfiguration getConfig()
Get UI configuration

Returns:
UI configuration

getLinkManager

public com.groupdocs.viewer.db.manager.LinkManager getLinkManager()
Get files path manager object

Returns:
path manager

getPageRotationManager

public com.groupdocs.viewer.db.manager.PageRotationManager getPageRotationManager()
Get page rotation manager

Returns:

initLinkManager

public void initLinkManager()
Initialization of files path manager


initPageRotationManager

public void initPageRotationManager()
Initialization of page rotation manager



Copyright © 2015. All rights reserved.