Java Doc for AttributeHandler.java in  » Portal » Open-Portal » com » sun » portal » fabric » common » 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 » Open Portal » com.sun.portal.fabric.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.fabric.common.AttributeHandler

All known Subclasses:   com.sun.portal.sra.admin.attribute.handlers.GatewayAttributeHandler,  com.sun.portal.fabric.common.GenericDSAMEAttributeHandler,  com.sun.portal.sra.admin.attribute.handlers.BaseSraAttributeHandler,
AttributeHandler
public interface AttributeHandler (Code)
This interface needs to be implementing by all component specific attribute handlers.




Method Summary
 ListgetAttribute(Map optionsMap)
    
 StringgetAttributeName(String userFriendlyName)
     Maps the user friendly name of the attribute to its real name.
 MapgetAttributes(Map optionsMap)
    
 StringgetComponentName(String userFriendlyName)
     Maps the user friendly name of the component to its real name.
 voidinit(String component, String domainId, String portalId)
    
 MaplistAttributes(Map optionsMap)
     Returns a map where the key is the user friendly name of the attribute and the value is a list. The list consists of the following in this order:
  • type as defined in AttributeInfo (mandatory)
  • i18n key for description like range of values etc.
 voidsetAttribute(List values, Map optionsMap)
    
 voidsetAttributes(Map nameValues, Map optionsMap)
     Sets the value(s) for multiple attributes passed in the map This method does not support add/remove/inherit.
 voidvalidate(List values, Map optionsMap)
     Performs validation of the options in the map This method supports validating values only for singular set operation.



Method Detail
getAttribute
List getAttribute(Map optionsMap) throws PSMBeanException(Code)
Returns a list of values for the attribute name passed in the map The optionsMap contains these in addition to component specific options operation = get //common basic options OPT_COMPONENT = "component"; OPT_ATTR_NAME = "attribute-name"; OPT_DN = "dn"; OPT_GLOBAL = "global"; OPT_ORG = "org"; //set operation options OPT_INHERIT = "inherit"; OPT_ADD = "add"; OPT_REMOVE = "remove";
Parameters:
  optionsMap - a map containing key-value pairs for options list of values for the attribute
throws:
  PSMBeanException - if there was error in retrieving the value



getAttributeName
String getAttributeName(String userFriendlyName)(Code)
Maps the user friendly name of the attribute to its real name.
Parameters:
  userFriendlyName - string passed in a name of the attribute real name of the attribute in backend or null if such attributedoes not exist



getAttributes
Map getAttributes(Map optionsMap) throws PSMBeanException(Code)
Returns attributes at the specific dn or at top level If global, then dn should not be specified If org and dn is not specified, then its org default If neither global nor org, then its dynamic If neither global nor org and no dn, then its dynamic default If neither global nor org and dn is user dn, then its user attrs The optionsMap contains these in addition to component specific options operation = get //common basic options OPT_COMPONENT = "component"; OPT_ATTR_NAMES = "attribute-names" OPT_DN = "dn"; OPT_GLOBAL = "global"; OPT_ORG = "org"; OPT_ATTR_NAMES should be a String Set of friendly attr names The returned Map contains these attr names as keys and the values are List objects
Parameters:
  optionsMap - a map containing key-value pairs for options map of name-ListValues for the attribute
throws:
  PSMBeanException - if there was error in retrieving the value



getComponentName
String getComponentName(String userFriendlyName)(Code)
Maps the user friendly name of the component to its real name.
Parameters:
  userFriendlyName - string passed in a name of the component real name of the component in backend such as the service name



init
void init(String component, String domainId, String portalId) throws PSMBeanException(Code)
Initializes the handler
Parameters:
  component - string representing the user friendly component name
Parameters:
  domainId - string representing the portal domain
Parameters:
  portalId - string representing the identifier for portal
throws:
  PSMBeanException - if there was error in initilization



listAttributes
Map listAttributes(Map optionsMap) throws PSMBeanException(Code)
Returns a map where the key is the user friendly name of the attribute and the value is a list. The list consists of the following in this order:
  • type as defined in AttributeInfo (mandatory)
  • i18n key for description like range of values etc. (optional)
  • r/w/ro/wo privilege (optional, default is r/w) as defined in AttributeInfo
  • i18n key for example (optional)
The list is always in this order and if some info is not applicable then a null is specified for it. For example, if there is no descrition but privilege is specified, then a null in inserted for description. If only type is specified, then the list size may be "1".
Parameters:
  optionsMap - a map containing key-value pairs for options map containing attribute-name and information about it
throws:
  PSMBeanException - if the there was an error



setAttribute
void setAttribute(List values, Map optionsMap) throws PSMBeanException(Code)
Sets the value(s) for the attribute name passed in the map The optionsMap contains these in addition to component specific options operation = set //common basic options OPT_COMPONENT = "component"; OPT_ATTR_NAME = "attribute-name"; OPT_DN = "dn"; OPT_GLOBAL = "global"; OPT_ORG = "org"; //set operation options OPT_INHERIT = "inherit"; OPT_ADD = "add"; OPT_REMOVE = "remove"; OPT_COMPONENT is the friendly service name OPT_ATTR_NAME is the friendly attr name
Parameters:
  values - list of values to be set for the component
Parameters:
  optionsMap - a map containing key-value pairs for options
throws:
  PSMBeanException - if there was an error in setting the value



setAttributes
void setAttributes(Map nameValues, Map optionsMap) throws PSMBeanException(Code)
Sets the value(s) for multiple attributes passed in the map This method does not support add/remove/inherit. It is only to set the values. The optionsMap contains these in addition to component specific options operation = set //common basic options OPT_COMPONENT = "component"; OPT_DN = "dn"; OPT_GLOBAL = "global"; OPT_ORG = "org"; OPT_COMPONENT is the friendly service name The nameValues map consists of mapping between friendly attr name and its value which is a List
Parameters:
  nameValues - map of name-ListValues of attrs
Parameters:
  optionsMap - a map containing key-value pairs for options
throws:
  PSMBeanException - if there was an error in setting the value



validate
void validate(List values, Map optionsMap) throws PSMBeanException(Code)
Performs validation of the options in the map This method supports validating values only for singular set operation. For setting values for multiple attrs, pass in null for values and do validation before actually setting the specific attr in the attr set.
throws:
  PSMBeanException - if the validation failed



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