Java Doc for Environment.java in  » Wiki-Engine » JAMWiki » org » jamwiki » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Wiki Engine » JAMWiki » org.jamwiki 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jamwiki.Environment

Environment
public class Environment (Code)
The Environment class is instantiated as a singleton to provides access to JAMWiki property values stored in the jamwiki.properties file.


Field Summary
final public static  StringPROP_BASE_COOKIE_EXPIRE
    
final public static  StringPROP_BASE_DEFAULT_TOPIC
    
final public static  StringPROP_BASE_FILE_DIR
    
final public static  StringPROP_BASE_INITIALIZED
    
final public static  StringPROP_BASE_LOGO_IMAGE
    
final public static  StringPROP_BASE_META_DESCRIPTION
    
final public static  StringPROP_BASE_PERSISTENCE_TYPE
    
final public static  StringPROP_BASE_SEARCH_ENGINE
    
final public static  StringPROP_BASE_USER_HANDLER
    
final public static  StringPROP_BASE_WIKI_VERSION
    
final public static  StringPROP_CACHE_INDIVIDUAL_SIZE
    
final public static  StringPROP_CACHE_MAX_AGE
    
final public static  StringPROP_CACHE_MAX_IDLE_AGE
    
final public static  StringPROP_CACHE_TOTAL_SIZE
    
final public static  StringPROP_DBCP_MAX_ACTIVE
    
final public static  StringPROP_DBCP_MAX_IDLE
    
final public static  StringPROP_DBCP_MIN_EVICTABLE_IDLE_TIME
    
final public static  StringPROP_DBCP_NUM_TESTS_PER_EVICTION_RUN
    
final public static  StringPROP_DBCP_TEST_ON_BORROW
    
final public static  StringPROP_DBCP_TEST_ON_RETURN
    
final public static  StringPROP_DBCP_TEST_WHILE_IDLE
    
final public static  StringPROP_DBCP_TIME_BETWEEN_EVICTION_RUNS
    
final public static  StringPROP_DBCP_WHEN_EXHAUSTED_ACTION
    
final public static  StringPROP_DB_DRIVER
    
final public static  StringPROP_DB_PASSWORD
    
final public static  StringPROP_DB_TYPE
    
final public static  StringPROP_DB_URL
    
final public static  StringPROP_DB_USERNAME
    
final public static  StringPROP_EMAIL_REPLY_ADDRESS
    
final public static  StringPROP_EMAIL_SMTP_HOST
    
final public static  StringPROP_EMAIL_SMTP_PASSWORD
    
final public static  StringPROP_EMAIL_SMTP_USERNAME
    
final public static  StringPROP_ENCRYPTION_ALGORITHM
    
final public static  StringPROP_EXTERNAL_LINK_NEW_WINDOW
    
final public static  StringPROP_FILE_BLACKLIST
    
final public static  StringPROP_FILE_BLACKLIST_TYPE
    
final public static  StringPROP_FILE_DIR_FULL_PATH
    
final public static  StringPROP_FILE_DIR_RELATIVE_PATH
    
final public static  StringPROP_FILE_MAX_FILE_SIZE
    
final public static  StringPROP_FILE_WHITELIST
    
final public static  StringPROP_IMAGE_RESIZE_INCREMENT
    
final public static  StringPROP_LDAP_CONTEXT
    
final public static  StringPROP_LDAP_FACTORY_CLASS
    
final public static  StringPROP_LDAP_FIELD_EMAIL
    
final public static  StringPROP_LDAP_FIELD_FIRST_NAME
    
final public static  StringPROP_LDAP_FIELD_LAST_NAME
    
final public static  StringPROP_LDAP_FIELD_USERID
    
final public static  StringPROP_LDAP_LOGIN
    
final public static  StringPROP_LDAP_PASSWORD
    
final public static  StringPROP_LDAP_SECURITY_AUTHENTICATION
    
final public static  StringPROP_LDAP_URL
    
final public static  StringPROP_PARSER_ALLOW_HTML
    
final public static  StringPROP_PARSER_ALLOW_JAVASCRIPT
    
final public static  StringPROP_PARSER_ALLOW_TEMPLATES
    
final public static  StringPROP_PARSER_CLASS
    
final public static  StringPROP_PARSER_SIGNATURE_DATE_PATTERN
    
final public static  StringPROP_PARSER_SIGNATURE_USER_PATTERN
    
final public static  StringPROP_PARSER_TOC
    
final public static  StringPROP_PARSER_TOC_DEPTH
    
final public static  StringPROP_PATTERN_INVALID_ROLE_NAME
    
final public static  StringPROP_PATTERN_INVALID_TOPIC_NAME
    
final public static  StringPROP_PATTERN_VALID_USER_LOGIN
    
final public static  StringPROP_PRINT_NEW_WINDOW
    
final public static  StringPROP_RECENT_CHANGES_NUM
    
final public static  StringPROP_RSS_ALLOWED
    
final public static  StringPROP_RSS_TITLE
    
final public static  StringPROP_TOPIC_FORCE_USERNAME
    
final public static  StringPROP_TOPIC_NON_ADMIN_TOPIC_MOVE
    
final public static  StringPROP_TOPIC_SPAM_FILTER
    
final public static  StringPROP_TOPIC_USE_PREVIEW
    
final public static  StringPROP_TOPIC_WYSIWYG
    


Method Summary
public static  booleangetBooleanValue(String name)
     Get the value of a boolean property. Returns true if the property is equal, ignoring case, to the string "true". Returns false in all other cases (eg: "false", "yes", "1")
Parameters:
  name - The name of the property whose value is to be retrieved.
public static  PropertiesgetInstance()
     Return an instance of the current properties object.
public static  intgetIntValue(String name)
     Get the value of an integer property.
Parameters:
  name - The name of the property whose value is to be retrieved.
public static  longgetLongValue(String name)
     Get the value of a long property.
Parameters:
  name - The name of the property whose value is to be retrieved.
public static  StringgetValue(String name)
     Returns the value of a property.
Parameters:
  name - The name of the property whose value is to be retrieved.
public static  SortedPropertiesloadProperties(String propertyFile)
     Given a property file name, load the property file and return an object representing the property values.
Parameters:
  propertyFile - The name of the property file to load.
public static  SortedPropertiesloadProperties(String propertyFile, Properties def)
     Given a property file name, load the property file and return an object representing the property values.
Parameters:
  propertyFile - The name of the property file to load.
Parameters:
  def - Default property values, or null if there are no defaults.
public static  voidsaveProperties()
     Save the current Wiki system properties to the filesystem.
public static  voidsaveProperties(String propertyFile, SortedProperties properties, String comments)
     Save the specified property values to the filesystem.
public static  voidsetBooleanValue(String name, boolean value)
     Set a new boolean value for the given property name.
public static  voidsetIntValue(String name, int value)
     Sets a new integer value for the given property name.
public static  voidsetValue(String name, String value)
     Sets a new value for the given property name.

Field Detail
PROP_BASE_COOKIE_EXPIRE
final public static String PROP_BASE_COOKIE_EXPIRE(Code)



PROP_BASE_DEFAULT_TOPIC
final public static String PROP_BASE_DEFAULT_TOPIC(Code)



PROP_BASE_FILE_DIR
final public static String PROP_BASE_FILE_DIR(Code)



PROP_BASE_INITIALIZED
final public static String PROP_BASE_INITIALIZED(Code)



PROP_BASE_LOGO_IMAGE
final public static String PROP_BASE_LOGO_IMAGE(Code)



PROP_BASE_META_DESCRIPTION
final public static String PROP_BASE_META_DESCRIPTION(Code)



PROP_BASE_PERSISTENCE_TYPE
final public static String PROP_BASE_PERSISTENCE_TYPE(Code)



PROP_BASE_SEARCH_ENGINE
final public static String PROP_BASE_SEARCH_ENGINE(Code)



PROP_BASE_USER_HANDLER
final public static String PROP_BASE_USER_HANDLER(Code)



PROP_BASE_WIKI_VERSION
final public static String PROP_BASE_WIKI_VERSION(Code)



PROP_CACHE_INDIVIDUAL_SIZE
final public static String PROP_CACHE_INDIVIDUAL_SIZE(Code)



PROP_CACHE_MAX_AGE
final public static String PROP_CACHE_MAX_AGE(Code)



PROP_CACHE_MAX_IDLE_AGE
final public static String PROP_CACHE_MAX_IDLE_AGE(Code)



PROP_CACHE_TOTAL_SIZE
final public static String PROP_CACHE_TOTAL_SIZE(Code)



PROP_DBCP_MAX_ACTIVE
final public static String PROP_DBCP_MAX_ACTIVE(Code)



PROP_DBCP_MAX_IDLE
final public static String PROP_DBCP_MAX_IDLE(Code)



PROP_DBCP_MIN_EVICTABLE_IDLE_TIME
final public static String PROP_DBCP_MIN_EVICTABLE_IDLE_TIME(Code)



PROP_DBCP_NUM_TESTS_PER_EVICTION_RUN
final public static String PROP_DBCP_NUM_TESTS_PER_EVICTION_RUN(Code)



PROP_DBCP_TEST_ON_BORROW
final public static String PROP_DBCP_TEST_ON_BORROW(Code)



PROP_DBCP_TEST_ON_RETURN
final public static String PROP_DBCP_TEST_ON_RETURN(Code)



PROP_DBCP_TEST_WHILE_IDLE
final public static String PROP_DBCP_TEST_WHILE_IDLE(Code)



PROP_DBCP_TIME_BETWEEN_EVICTION_RUNS
final public static String PROP_DBCP_TIME_BETWEEN_EVICTION_RUNS(Code)



PROP_DBCP_WHEN_EXHAUSTED_ACTION
final public static String PROP_DBCP_WHEN_EXHAUSTED_ACTION(Code)



PROP_DB_DRIVER
final public static String PROP_DB_DRIVER(Code)



PROP_DB_PASSWORD
final public static String PROP_DB_PASSWORD(Code)



PROP_DB_TYPE
final public static String PROP_DB_TYPE(Code)



PROP_DB_URL
final public static String PROP_DB_URL(Code)



PROP_DB_USERNAME
final public static String PROP_DB_USERNAME(Code)



PROP_EMAIL_REPLY_ADDRESS
final public static String PROP_EMAIL_REPLY_ADDRESS(Code)



PROP_EMAIL_SMTP_HOST
final public static String PROP_EMAIL_SMTP_HOST(Code)



PROP_EMAIL_SMTP_PASSWORD
final public static String PROP_EMAIL_SMTP_PASSWORD(Code)



PROP_EMAIL_SMTP_USERNAME
final public static String PROP_EMAIL_SMTP_USERNAME(Code)



PROP_ENCRYPTION_ALGORITHM
final public static String PROP_ENCRYPTION_ALGORITHM(Code)



PROP_EXTERNAL_LINK_NEW_WINDOW
final public static String PROP_EXTERNAL_LINK_NEW_WINDOW(Code)



PROP_FILE_BLACKLIST
final public static String PROP_FILE_BLACKLIST(Code)



PROP_FILE_BLACKLIST_TYPE
final public static String PROP_FILE_BLACKLIST_TYPE(Code)



PROP_FILE_DIR_FULL_PATH
final public static String PROP_FILE_DIR_FULL_PATH(Code)



PROP_FILE_DIR_RELATIVE_PATH
final public static String PROP_FILE_DIR_RELATIVE_PATH(Code)



PROP_FILE_MAX_FILE_SIZE
final public static String PROP_FILE_MAX_FILE_SIZE(Code)



PROP_FILE_WHITELIST
final public static String PROP_FILE_WHITELIST(Code)



PROP_IMAGE_RESIZE_INCREMENT
final public static String PROP_IMAGE_RESIZE_INCREMENT(Code)



PROP_LDAP_CONTEXT
final public static String PROP_LDAP_CONTEXT(Code)



PROP_LDAP_FACTORY_CLASS
final public static String PROP_LDAP_FACTORY_CLASS(Code)



PROP_LDAP_FIELD_EMAIL
final public static String PROP_LDAP_FIELD_EMAIL(Code)



PROP_LDAP_FIELD_FIRST_NAME
final public static String PROP_LDAP_FIELD_FIRST_NAME(Code)



PROP_LDAP_FIELD_LAST_NAME
final public static String PROP_LDAP_FIELD_LAST_NAME(Code)



PROP_LDAP_FIELD_USERID
final public static String PROP_LDAP_FIELD_USERID(Code)



PROP_LDAP_LOGIN
final public static String PROP_LDAP_LOGIN(Code)



PROP_LDAP_PASSWORD
final public static String PROP_LDAP_PASSWORD(Code)



PROP_LDAP_SECURITY_AUTHENTICATION
final public static String PROP_LDAP_SECURITY_AUTHENTICATION(Code)



PROP_LDAP_URL
final public static String PROP_LDAP_URL(Code)



PROP_PARSER_ALLOW_HTML
final public static String PROP_PARSER_ALLOW_HTML(Code)



PROP_PARSER_ALLOW_JAVASCRIPT
final public static String PROP_PARSER_ALLOW_JAVASCRIPT(Code)



PROP_PARSER_ALLOW_TEMPLATES
final public static String PROP_PARSER_ALLOW_TEMPLATES(Code)



PROP_PARSER_CLASS
final public static String PROP_PARSER_CLASS(Code)



PROP_PARSER_SIGNATURE_DATE_PATTERN
final public static String PROP_PARSER_SIGNATURE_DATE_PATTERN(Code)



PROP_PARSER_SIGNATURE_USER_PATTERN
final public static String PROP_PARSER_SIGNATURE_USER_PATTERN(Code)



PROP_PARSER_TOC
final public static String PROP_PARSER_TOC(Code)



PROP_PARSER_TOC_DEPTH
final public static String PROP_PARSER_TOC_DEPTH(Code)



PROP_PATTERN_INVALID_ROLE_NAME
final public static String PROP_PATTERN_INVALID_ROLE_NAME(Code)



PROP_PATTERN_INVALID_TOPIC_NAME
final public static String PROP_PATTERN_INVALID_TOPIC_NAME(Code)



PROP_PATTERN_VALID_USER_LOGIN
final public static String PROP_PATTERN_VALID_USER_LOGIN(Code)



PROP_PRINT_NEW_WINDOW
final public static String PROP_PRINT_NEW_WINDOW(Code)



PROP_RECENT_CHANGES_NUM
final public static String PROP_RECENT_CHANGES_NUM(Code)



PROP_RSS_ALLOWED
final public static String PROP_RSS_ALLOWED(Code)



PROP_RSS_TITLE
final public static String PROP_RSS_TITLE(Code)



PROP_TOPIC_FORCE_USERNAME
final public static String PROP_TOPIC_FORCE_USERNAME(Code)



PROP_TOPIC_NON_ADMIN_TOPIC_MOVE
final public static String PROP_TOPIC_NON_ADMIN_TOPIC_MOVE(Code)



PROP_TOPIC_SPAM_FILTER
final public static String PROP_TOPIC_SPAM_FILTER(Code)



PROP_TOPIC_USE_PREVIEW
final public static String PROP_TOPIC_USE_PREVIEW(Code)



PROP_TOPIC_WYSIWYG
final public static String PROP_TOPIC_WYSIWYG(Code)





Method Detail
getBooleanValue
public static boolean getBooleanValue(String name)(Code)
Get the value of a boolean property. Returns true if the property is equal, ignoring case, to the string "true". Returns false in all other cases (eg: "false", "yes", "1")
Parameters:
  name - The name of the property whose value is to be retrieved. The value of the property.



getInstance
public static Properties getInstance()(Code)
Return an instance of the current properties object. The property instance returned should not be directly modified. Returns an instance of the current system properties.



getIntValue
public static int getIntValue(String name)(Code)
Get the value of an integer property.
Parameters:
  name - The name of the property whose value is to be retrieved. The value of the property.



getLongValue
public static long getLongValue(String name)(Code)
Get the value of a long property.
Parameters:
  name - The name of the property whose value is to be retrieved. The value of the property.



getValue
public static String getValue(String name)(Code)
Returns the value of a property.
Parameters:
  name - The name of the property whose value is to be retrieved. The value of the property.



loadProperties
public static SortedProperties loadProperties(String propertyFile)(Code)
Given a property file name, load the property file and return an object representing the property values.
Parameters:
  propertyFile - The name of the property file to load. The loaded SortedProperties object.



loadProperties
public static SortedProperties loadProperties(String propertyFile, Properties def)(Code)
Given a property file name, load the property file and return an object representing the property values.
Parameters:
  propertyFile - The name of the property file to load.
Parameters:
  def - Default property values, or null if there are no defaults. The loaded SortedProperties object.



saveProperties
public static void saveProperties() throws IOException(Code)
Save the current Wiki system properties to the filesystem.
throws:
  IOException - Thrown if the file cannot be found or if an I/Oerror occurs.



saveProperties
public static void saveProperties(String propertyFile, SortedProperties properties, String comments) throws IOException(Code)
Save the specified property values to the filesystem.
Parameters:
  propertyFile - The name of the property file to save.
Parameters:
  properties - The properties object that is to be saved.
Parameters:
  comments - A comment to save in the properties file.
throws:
  IOException - Thrown if the file cannot be found or if an I/Oerror occurs.



setBooleanValue
public static void setBooleanValue(String name, boolean value)(Code)
Set a new boolean value for the given property name.
Parameters:
  name - The name of the property whose value is to be set.
Parameters:
  value - The value of the property being set.



setIntValue
public static void setIntValue(String name, int value)(Code)
Sets a new integer value for the given property name.
Parameters:
  name - The name of the property whose value is to be set.
Parameters:
  value - The value of the property being set.



setValue
public static void setValue(String name, String value)(Code)
Sets a new value for the given property name.
Parameters:
  name - The name of the property whose value is to be set.
Parameters:
  value - The value of the property being set.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.