Java Doc for PortletUtil.java in  » Portal » stringbeans-3.5 » com » nabhinc » portlet » portletadmin » 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 » Portal » stringbeans 3.5 » com.nabhinc.portlet.portletadmin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.nabhinc.portlet.portletadmin.PortletUtil

PortletUtil
public class PortletUtil (Code)

author:
   Padmanabh Dabke

author:
   (c) 2003 Nabh Information Systems, Inc. All Rights Reserved.




Method Summary
public static  PortletTypecreatePortletType(String portletName, String className)
     Create PortletType of specified portlet class and name.
public static  StringgetDescription(PortletConfigInfo pcInfo)
     Returns a default description from PortletConfigInfo, if provided.
public static  HashMapgetDescriptionMap(PortletType pType)
     Return a map of locale language code and description value.
public static  StringgetDisplayName(PortletConfigInfo pcInfo)
     Returns a default display name from PortletConfigInfo, if provided.
public static  HashMapgetDisplayNameMap(PortletType pType)
     Returns a map of locale language code(s) and display name(s). Default language has empty language code.
public static  StringgetErrorStackTrace(Throwable ex)
    
public static  HashtablegetInitParams(PortletType pType)
     Sets init parameters.
public static  HashtablegetInitParams(PortletConfigInfo pcInfo)
    
public static  StringgetPortletParameter(String paramName, PortletRequest rReq, PortletSession pSession)
    
public static  HashtablegetPreferenceMap(PortletType pType)
     Returns a Hashtable that maps preference's name and a list (java.util.List) of preference values.
public static  String[]getPreferenceValues(PortletType pType, String prefName)
     Returns an array of values of the specified preference name.
public static  String[]getSupportedMimeTypes(PortletType pType)
     Returns all supported mime types.
public static  HashtablegetSupportsMap(PortletType pType)
     Returns a Hashtable that maps a mime-type to an array (of String) of supported modes.
public static  booleanisPreferenceReadOnly(PortletType pType, String prefName)
     Checks if the specified preference is read only.
public static  voidsetDescription(String descr, PortletType pType)
     Sets descriptions of default language (empty language code).
public static  voidsetDescription(HashMap descrs, PortletType pType)
     Sets descriptions of multiple languages.
public static  voidsetDisplayName(String displayName, PortletType pType)
    
public static  voidsetDisplayName(HashMap displayNameMap, PortletType pType)
     Sets display names of multiple languages.
public static  voidsetExpirationCache(int exp, PortletType pType)
     Sets the expiration cache.
public static  voidsetInitParams(Hashtable initParamsMap, PortletType pType)
     Sets init parameters.
public static  voidsetKeywords(String keywords, PortletType pType)
    
public static  voidsetPreferences(Hashtable prefMap, PortletType pType)
     Sets the portlet preferences.
public static  voidsetPreferences(List prefNames, List prefValues, List readOnly, String validatorName, PortletType pType)
     Sets the preferences.
public static  voidsetResourceBundle(String resourceBundleName, PortletType pType)
    
public static  voidsetSecurityConstraint(PortletApp portletApp, Set portletNames, String transportGuarantee, String displayName)
    
Parameters:
  portletApp - Portlet configuration.
Parameters:
  portletNames - Array of portlet names.
public static  voidsetSecurityRoleReference(HashMap securityRoles, PortletType pType)
    
public static  voidsetShortTitle(String portletShortTitle, PortletType pType)
    
public static  voidsetSupportedLocales(String[] locales, PortletType pType)
     Sets supported locales.
public static  voidsetSupports(String[] modes, String[] mimeTypes, PortletType pType)
     Sets supported mime types and portlet modes. Possible supported portlet modes are "edit" and "help". The mime types can be any mime-types supported by http's accept header, e.g.
public static  voidsetSupports(String[] modes, String mimeType, PortletType pType)
     Sets a supported mime type and portlet modes. Possible supported portlet modes are "edit" and "help". The mime type can be any mime-types supported by http's accept header, e.g.
public static  voidsetTitle(String portletTitle, PortletType pType)
    



Method Detail
createPortletType
public static PortletType createPortletType(String portletName, String className)(Code)
Create PortletType of specified portlet class and name.
Parameters:
  portletName - The portlet's name.
Parameters:
  className - The portlet class name.



getDescription
public static String getDescription(PortletConfigInfo pcInfo)(Code)
Returns a default description from PortletConfigInfo, if provided. Otherwise, try to get a localized description. If none of them is defined, empty string is returned. The order of localized description might not be preserved, if more than one are defined.
Parameters:
  pcInfo -



getDescriptionMap
public static HashMap getDescriptionMap(PortletType pType)(Code)
Return a map of locale language code and description value. Default language has empty language code.
Parameters:
  descrs - A map of locale language code (String) and description (String).
Parameters:
  pType -



getDisplayName
public static String getDisplayName(PortletConfigInfo pcInfo)(Code)
Returns a default display name from PortletConfigInfo, if provided. Otherwise, returns to get a localized display name. If none of them defined, empty string is returned. The order of localized display name might not be preserved, if more than one are defined.
Parameters:
  pcInfo -



getDisplayNameMap
public static HashMap getDisplayNameMap(PortletType pType)(Code)
Returns a map of locale language code(s) and display name(s). Default language has empty language code.
Parameters:
  pType -



getErrorStackTrace
public static String getErrorStackTrace(Throwable ex)(Code)



getInitParams
public static Hashtable getInitParams(PortletType pType)(Code)
Sets init parameters.
Parameters:
  initParamsMap - Init param name/value pair map.
Parameters:
  pType -



getInitParams
public static Hashtable getInitParams(PortletConfigInfo pcInfo)(Code)



getPortletParameter
public static String getPortletParameter(String paramName, PortletRequest rReq, PortletSession pSession)(Code)



getPreferenceMap
public static Hashtable getPreferenceMap(PortletType pType)(Code)
Returns a Hashtable that maps preference's name and a list (java.util.List) of preference values.
Parameters:
  portletApp -
Parameters:
  portletNames -
Parameters:
  transportGuarantee -
Parameters:
  displayName -



getPreferenceValues
public static String[] getPreferenceValues(PortletType pType, String prefName)(Code)
Returns an array of values of the specified preference name.
Parameters:
  pType -
Parameters:
  prefName - The preference of interest.



getSupportedMimeTypes
public static String[] getSupportedMimeTypes(PortletType pType)(Code)
Returns all supported mime types.
Parameters:
  pType -



getSupportsMap
public static Hashtable getSupportsMap(PortletType pType)(Code)
Returns a Hashtable that maps a mime-type to an array (of String) of supported modes.
Parameters:
  pType -



isPreferenceReadOnly
public static boolean isPreferenceReadOnly(PortletType pType, String prefName)(Code)
Checks if the specified preference is read only.
Parameters:
  pType -
Parameters:
  prefName - true if the preference is read only (not modifiable).



setDescription
public static void setDescription(String descr, PortletType pType)(Code)
Sets descriptions of default language (empty language code).
Parameters:
  descr - The descriptions.
Parameters:
  pType -



setDescription
public static void setDescription(HashMap descrs, PortletType pType)(Code)
Sets descriptions of multiple languages.
Parameters:
  descrs - A map of locale language code (String) and description (String).
Parameters:
  pType -



setDisplayName
public static void setDisplayName(String displayName, PortletType pType)(Code)
Sets display name of default language (empty language code)
Parameters:
  displayName -
Parameters:
  pType -



setDisplayName
public static void setDisplayName(HashMap displayNameMap, PortletType pType)(Code)
Sets display names of multiple languages.
Parameters:
  displayNameMap - A map of locale language codes (String) and display names (String).
Parameters:
  pType -



setExpirationCache
public static void setExpirationCache(int exp, PortletType pType)(Code)
Sets the expiration cache.
Parameters:
  exp -
Parameters:
  pType -



setInitParams
public static void setInitParams(Hashtable initParamsMap, PortletType pType)(Code)
Sets init parameters.
Parameters:
  initParamsMap - Init param name/value pair map.
Parameters:
  pType -



setKeywords
public static void setKeywords(String keywords, PortletType pType)(Code)
Sets portlets Category or keywords
Parameters:
  keywords - A comma separated category keywords.



setPreferences
public static void setPreferences(Hashtable prefMap, PortletType pType)(Code)
Sets the portlet preferences. A preference can have a list of values (more than one values). Note read only field is ignored (false by default) using this method.
Parameters:
  prefMap - A table that map a preference name with a list (java.util.List) of preference value.
Parameters:
  pType -



setPreferences
public static void setPreferences(List prefNames, List prefValues, List readOnly, String validatorName, PortletType pType)(Code)
Sets the preferences. Note that the size of the names, values and readonly list must be the same.
Parameters:
  prefNames - List of Preference names.
Parameters:
  prefValues - List of Preference value vectors.
Parameters:
  readOnly - List of Preference read only flags (String).
Parameters:
  validatorName - The preference validator class name. Optional.
Parameters:
  pType -



setResourceBundle
public static void setResourceBundle(String resourceBundleName, PortletType pType)(Code)
Sets resource bundle
Parameters:
  resourceBundleName -
Parameters:
  pType -



setSecurityConstraint
public static void setSecurityConstraint(PortletApp portletApp, Set portletNames, String transportGuarantee, String displayName)(Code)

Parameters:
  portletApp - Portlet configuration.
Parameters:
  portletNames - Array of portlet names. Set to null will remove the security constraint.
Parameters:
  transportGuarantee - Transport layer describes the user data constraint for the portlets collection.Possible values: CONFIDENTIAL, INTEGRAL. Default is CONFIDENTIAL.
Parameters:
  displayname - Name of the security constraint. Default name: Secure Portlets.



setSecurityRoleReference
public static void setSecurityRoleReference(HashMap securityRoles, PortletType pType)(Code)
Sets Security Role Reference
Parameters:
  securityRoles - A map of Role name (String) and Role Link (String)
Parameters:
  pType -



setShortTitle
public static void setShortTitle(String portletShortTitle, PortletType pType)(Code)
Sets portlet short title
Parameters:
  portletShortTitle -
Parameters:
  pType -



setSupportedLocales
public static void setSupportedLocales(String[] locales, PortletType pType)(Code)
Sets supported locales.
Parameters:
  locales -
Parameters:
  pType -



setSupports
public static void setSupports(String[] modes, String[] mimeTypes, PortletType pType)(Code)
Sets supported mime types and portlet modes. Possible supported portlet modes are "edit" and "help". The mime types can be any mime-types supported by http's accept header, e.g. text/html, application/vnd.wap.xhtml+xml
Note that this method will set all mime types have the same modes. Use PortletUtil.setSupports(String[],String,PortletType) setSupports(String[], String, PortletType) method instead.
Parameters:
  modes - Portlet modes. Possible values: "edit" and "help".
Parameters:
  mimeTypes - Mime types supported by HTTP accept header.
Parameters:
  pType - PortletType



setSupports
public static void setSupports(String[] modes, String mimeType, PortletType pType)(Code)
Sets a supported mime type and portlet modes. Possible supported portlet modes are "edit" and "help". The mime type can be any mime-types supported by http's accept header, e.g. text/html, application/vnd.wap.xhtml+xml
Note that this method will set a mime-type with its supported portlet modes at a time.
Parameters:
  modes - Portlet modes. Possible values: "edit" and "help".
Parameters:
  mimeType - Mime type supported by HTTP accept header.
Parameters:
  pType - PortletType



setTitle
public static void setTitle(String portletTitle, PortletType pType)(Code)
Sets portlet title
Parameters:
  portletTitle -
Parameters:
  pType -



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.