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 FILES
           
static String IMAGES
           
 
Constructor Summary
ServiceConfiguration(IServiceConfiguration config)
           
 
Method Summary
 String getApplicationPath()
          Get application path
 String getAsposeLicensePath()
          Path to Aspose license file
 String getBasePath()
          Path to file storage
 IServiceConfiguration getConfig()
          Get UI configuration
 String getEncryptionKey()
          Get encryption key
 String getFilesPath()
          Path to files directory, starting from root path
 String getImagesPath()
          Path to temp directory where all generated images will be stored
 String getLicensePath()
          Path to license file
 com.groupdocs.viewer.db.manager.LinkManager getLinkManager()
          Get files path manager object
 String getUploadPath()
          Get upload path
By default upload path is set in storage path
 Integer getWidth()
          Get default image width
 void initLinkManager()
          Initialization of files path manager
 boolean isAuth()
          Authorization flag, if authorization will be implemented
 Boolean isUseCache()
          Verifies to generate cache images file or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGES

public static final String IMAGES
See Also:
Constant Field Values

FILES

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

ServiceConfiguration

public ServiceConfiguration(IServiceConfiguration config)
Method Detail

getApplicationPath

public String getApplicationPath()
Get application path

Returns:
application path

getBasePath

public String getBasePath()
Path to file storage

Returns:
Path to file storage

getLicensePath

public String getLicensePath()
Path to license file

Returns:
Path to license file

isAuth

public boolean isAuth()
Authorization flag, if authorization will be implemented

Returns:
true or false

getAsposeLicensePath

public String getAsposeLicensePath()
Path to Aspose license file

Returns:
Path to Aspose license file

getImagesPath

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

Returns:
Path to temp directory

getFilesPath

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

Returns:
Path to files directory

isUseCache

public Boolean isUseCache()
Verifies to generate cache images file or not

Returns:
True or false

getWidth

public Integer getWidth()
Get default image width

Returns:
width

getEncryptionKey

public String getEncryptionKey()
Get encryption key

Returns:
key

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

initLinkManager

public void initLinkManager()
Initialization of files path manager


getUploadPath

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

Returns:


Copyright © 2014. All rights reserved.