net.fckeditor.handlers
Class PropertiesLoader

java.lang.Object
  extended by net.fckeditor.handlers.PropertiesLoader

public class PropertiesLoader
extends Object

Manages FCKeditor.Java properties files.

It manages/loads the properties files in the following order:

  1. the default properties as defined here,
  2. the user-defined properties (fckeditor.properties) if present.
This means that user-defined properties override default ones. In the backend it utilizes the regular Properties class.

Moreover, you can set properties programmatically too but make sure to override them before the first call of that specific property.

Version:
$Id: PropertiesLoader.java 4785 2009-12-21 20:10:28Z mosipov $

Constructor Summary
PropertiesLoader()
           
 
Method Summary
static String getConnectorImpl()
          Returns connector.impl property
static String getEditorBasePath()
          Returns fckeditor.basePath property
static String getEditorHeight()
          Returns fckeditor.height property
static String getEditorToolbarSet()
          Returns fckeditor.toolbarSet property
static String getEditorWidth()
          Returns fckeditor.width property
static String getFileResourceTypeAllowedExtensions()
          Returns connector.resourceType.file.extensions.allowed property
static String getFileResourceTypeDeniedExtensions()
          Returns connector.resourceType.file.extensions.denied property
static String getFileResourceTypePath()
          Returns connector.resourceType.file.path property
static String getFlashResourceTypeAllowedExtensions()
          Returns connector.resourceType.flash.extensions.allowed property
static String getFlashResourceTypeDeniedExtensions()
          Returns connector.resourceType.flash.extensions.denied property
static String getFlashResourceTypePath()
          Returns connector.resourceType.flash.path property
static String getImageResourceTypeAllowedExtensions()
          Returns connector.resourceType.image.extensions.allowed property
static String getImageResourceTypeDeniedExtensions()
          Returns connector.resourceType.image.extensions.denied property
static String getImageResourceTypePath()
          Returns connector.resourceType.image.path property
static String getLocaleResolverImpl()
          Returns connector.localeResolverImpl property
static String getMediaResourceTypeAllowedExtensions()
          Returns connector.resourceType.media.extensions.allowed property
static String getMediaResourceTypeDeniedExtensions()
          Returns connector.resourceType.media.extensions.denied property
static String getMediaResourceTypePath()
          Returns connector.resourceType.media.path property
static String getProperty(String key)
          Searches for the property with the specified key in this property list.
static String getUserActionImpl()
          Returns connector.userActionImpl property
static String getUserFilesAbsolutePath()
          Returns connector.userFilesAbsolutePath property
static String getUserFilesPath()
          Returns connector.userFilesPath property
static String getUserPathBuilderImpl()
          Returns connector.userPathBuilderImpl property
static boolean isForceSingleExtension()
          Returns connector.forceSingleExtension property
static boolean isSecureImageUploads()
          Returns connector.secureImageUploads property
static void setProperty(String key, String value)
          Sets the property with the specified key in this property list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesLoader

public PropertiesLoader()
Method Detail

getProperty

public static String getProperty(String key)
Searches for the property with the specified key in this property list.

See Also:
Properties.getProperty(String)

setProperty

public static void setProperty(String key,
                               String value)
Sets the property with the specified key in this property list.

See Also:
Properties.setProperty(String, String)

getEditorToolbarSet

public static String getEditorToolbarSet()
Returns fckeditor.toolbarSet property


getEditorWidth

public static String getEditorWidth()
Returns fckeditor.width property


getEditorHeight

public static String getEditorHeight()
Returns fckeditor.height property


getEditorBasePath

public static String getEditorBasePath()
Returns fckeditor.basePath property


getFileResourceTypePath

public static String getFileResourceTypePath()
Returns connector.resourceType.file.path property


getFlashResourceTypePath

public static String getFlashResourceTypePath()
Returns connector.resourceType.flash.path property


getImageResourceTypePath

public static String getImageResourceTypePath()
Returns connector.resourceType.image.path property


getMediaResourceTypePath

public static String getMediaResourceTypePath()
Returns connector.resourceType.media.path property


getFileResourceTypeAllowedExtensions

public static String getFileResourceTypeAllowedExtensions()
Returns connector.resourceType.file.extensions.allowed property


getFileResourceTypeDeniedExtensions

public static String getFileResourceTypeDeniedExtensions()
Returns connector.resourceType.file.extensions.denied property


getFlashResourceTypeAllowedExtensions

public static String getFlashResourceTypeAllowedExtensions()
Returns connector.resourceType.flash.extensions.allowed property


getFlashResourceTypeDeniedExtensions

public static String getFlashResourceTypeDeniedExtensions()
Returns connector.resourceType.flash.extensions.denied property


getImageResourceTypeAllowedExtensions

public static String getImageResourceTypeAllowedExtensions()
Returns connector.resourceType.image.extensions.allowed property


getImageResourceTypeDeniedExtensions

public static String getImageResourceTypeDeniedExtensions()
Returns connector.resourceType.image.extensions.denied property


getMediaResourceTypeAllowedExtensions

public static String getMediaResourceTypeAllowedExtensions()
Returns connector.resourceType.media.extensions.allowed property


getMediaResourceTypeDeniedExtensions

public static String getMediaResourceTypeDeniedExtensions()
Returns connector.resourceType.media.extensions.denied property


getUserFilesPath

public static String getUserFilesPath()
Returns connector.userFilesPath property


getUserFilesAbsolutePath

public static String getUserFilesAbsolutePath()
Returns connector.userFilesAbsolutePath property


isForceSingleExtension

public static boolean isForceSingleExtension()
Returns connector.forceSingleExtension property


isSecureImageUploads

public static boolean isSecureImageUploads()
Returns connector.secureImageUploads property


getConnectorImpl

public static String getConnectorImpl()
Returns connector.impl property


getUserActionImpl

public static String getUserActionImpl()
Returns connector.userActionImpl property


getUserPathBuilderImpl

public static String getUserPathBuilderImpl()
Returns connector.userPathBuilderImpl property


getLocaleResolverImpl

public static String getLocaleResolverImpl()
Returns connector.localeResolverImpl property



Copyright © 2004-2010 Frederico Caldeira Knabben. All Rights Reserved.