Java Doc for CTUtils.java in  » Content-Management-System » webman » de » webman » form » eventhandler » 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 » Content Management System » webman » de.webman.form.eventhandler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.webman.form.eventhandler.CTUtils

CTUtils
public class CTUtils implements CTParameters,ParameterTypes,DatabaseDefaults(Code)
Provides convenience methods used by content type event handlers.
author:
   $Author: uli $
version:
   $Revision: 1.11 $


Field Summary
final public static  StringLANGUAGE_CONTEXT
     The language manager context.
final public static  StringPROPERTY_ENABLE_SLOPPY_NAMING
     The enable sloppy naming property.
final public static  StringPROPERTY_ENABLE_UNSAFE_MODIFICATION
     The enable unsafe modification property.
final public static  StringPROPERTY_GROUP_FORM_PROCESSING
     The form processing property group.


Method Summary
public static  booleanexists(Integer id, String name, String value)
     Checks wether the specified form definition exists.
Parameters:
  id - the excluded id of the form definition (may benull).
Parameters:
  name - the name of the search parameter.
Parameters:
  value - the value of the search parameter.
public static  StringgenerateFieldName(String description, int length)
     Generates a field name from the field description.

The field name will be the URL-encoded form of the description and not exceed th specified length.
Parameters:
  description - the field description.
Parameters:
  length - the maximum length of the field name.

public static  StringgetFormTypeDescription(Form form)
     Returns the form type description of the specified form.
Parameters:
  form - the form.
public static  TKVectorgetParameterList(TKHashtable parameters)
     Returns a parameter list from the specified event parameters.
Parameters:
  parameters - the event parameters.
public static  TKBaseFieldgetStructure(int type)
     Creates the top-level field structure based on the given form type.
Parameters:
  type - the form type.
public static  booleanisAmbiguousFormDescription(Integer id, String description)
     Checks wether the specified form description is ambiguous.
Parameters:
  id - the optional form id to be excluded from the check.
Parameters:
  description - the description name to be checked.
public static  booleanisAmbiguousFormName(Integer id, String name)
     Checks wether the specified form name is ambiguous.
Parameters:
  id - the optional form id to be excluded from the check.
Parameters:
  name - the form name to be checked.
public static  booleanisSloppyNamingEnabled()
     Checks wether sloppy naming is enabled.
public static  booleanisUnsafeFormModification(TKEvent event)
     Checks wether the specified event may cause an unsafe modification.
Parameters:
  event - the event to be checked.
public static  booleanisUnsafeModificationEnabled()
     Checks wether unsafe modification is enabled.
public static  voidkeepCTContext(TKEvent event, TKHTMLTemplate template)
     Keeps the context by passing all parameters of the event into the given template.
public static  voidswitchTest(TKHTMLTemplate template, boolean test)
     Switches between normal and testing mode by setting the according parameters in the template.

Field Detail
LANGUAGE_CONTEXT
final public static String LANGUAGE_CONTEXT(Code)
The language manager context.



PROPERTY_ENABLE_SLOPPY_NAMING
final public static String PROPERTY_ENABLE_SLOPPY_NAMING(Code)
The enable sloppy naming property.



PROPERTY_ENABLE_UNSAFE_MODIFICATION
final public static String PROPERTY_ENABLE_UNSAFE_MODIFICATION(Code)
The enable unsafe modification property.



PROPERTY_GROUP_FORM_PROCESSING
final public static String PROPERTY_GROUP_FORM_PROCESSING(Code)
The form processing property group.





Method Detail
exists
public static boolean exists(Integer id, String name, String value) throws TKException(Code)
Checks wether the specified form definition exists.
Parameters:
  id - the excluded id of the form definition (may benull).
Parameters:
  name - the name of the search parameter.
Parameters:
  value - the value of the search parameter. true if the specified form definition exists,otherwise false.
throws:
  TKException - if an error occurred during the check.



generateFieldName
public static String generateFieldName(String description, int length)(Code)
Generates a field name from the field description.

The field name will be the URL-encoded form of the description and not exceed th specified length.
Parameters:
  description - the field description.
Parameters:
  length - the maximum length of the field name. a field name.




getFormTypeDescription
public static String getFormTypeDescription(Form form) throws TKException(Code)
Returns the form type description of the specified form.
Parameters:
  form - the form. the form type description of the specified form.
throws:
  TKException - if any error occurred during form typedescription lookup.



getParameterList
public static TKVector getParameterList(TKHashtable parameters)(Code)
Returns a parameter list from the specified event parameters.
Parameters:
  parameters - the event parameters. a parameter list from the specified event parameters.



getStructure
public static TKBaseField getStructure(int type) throws TKException(Code)
Creates the top-level field structure based on the given form type.
Parameters:
  type - the form type. the top-level field structure based on the given form type.
throws:
  TKException - if an error occurred during structure creation.



isAmbiguousFormDescription
public static boolean isAmbiguousFormDescription(Integer id, String description) throws TKException(Code)
Checks wether the specified form description is ambiguous.
Parameters:
  id - the optional form id to be excluded from the check.
Parameters:
  description - the description name to be checked. true if the specified form description is ambiguous,otherwise false.
throws:
  TKException - if an error occurred during the check.



isAmbiguousFormName
public static boolean isAmbiguousFormName(Integer id, String name) throws TKException(Code)
Checks wether the specified form name is ambiguous.
Parameters:
  id - the optional form id to be excluded from the check.
Parameters:
  name - the form name to be checked. true if the specified form name is ambiguous,otherwise false.
throws:
  TKException - if an error occurred during the check.



isSloppyNamingEnabled
public static boolean isSloppyNamingEnabled()(Code)
Checks wether sloppy naming is enabled. true if sloppy naming is enabled,otherwise false.



isUnsafeFormModification
public static boolean isUnsafeFormModification(TKEvent event)(Code)
Checks wether the specified event may cause an unsafe modification.
Parameters:
  event - the event to be checked. true if the specified event may cause an unsafe modification,otherwise false.



isUnsafeModificationEnabled
public static boolean isUnsafeModificationEnabled()(Code)
Checks wether unsafe modification is enabled. true if unsafe modification is enabled,otherwise false.



keepCTContext
public static void keepCTContext(TKEvent event, TKHTMLTemplate template)(Code)
Keeps the context by passing all parameters of the event into the given template.
Parameters:
  event - the event.
Parameters:
  template - the template.



switchTest
public static void switchTest(TKHTMLTemplate template, boolean test)(Code)
Switches between normal and testing mode by setting the according parameters in the template.
Parameters:
  template - the template.
Parameters:
  test - specifies the mode.



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.