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(ServiceConfigurationBase config)
           
 
Method Summary
 String getApplicationPath()
          Get application path
 String getAsposeLicensePath()
          Path to Aspose license file
 String getBasePath()
          Path to file storage
 ServiceConfigurationBase 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()
           
 String getUploadPath()
           
 Integer getWidth()
          Get default image width
 void initLinkManager()
           
 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
equals, 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(ServiceConfigurationBase 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 ServiceConfigurationBase getConfig()
Get UI configuration

Returns:
UI configuration

getLinkManager

public com.groupdocs.viewer.db.manager.LinkManager getLinkManager()
Returns:

initLinkManager

public void initLinkManager()

getUploadPath

public String getUploadPath()
Returns:


Copyright © 2014. All rights reserved.