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


com.sun.portal.wsrp.consumer.producermanager.ProducerEntityManager

All known Subclasses:   com.sun.portal.wsrp.consumer.producermanager.impl.ProducerEntityManagerImpl,  com.sun.portal.wsrp.consumer.producermanager.impl.PropertiesProducerEntityManagerImpl,
ProducerEntityManager
public interface ProducerEntityManager (Code)
ProducerEntityManager interface contains methods needed by the administrator to administer remote web services offered by the producers. In addition, this interface is also used by the markup manager to obtain information about each producer. In terms of WSRP, this interface does the behind-scene work for the ServiceDescription and the Registration port types.




Method Summary
public  StringaddProducerEntity(String producerName, URL producerURL, String identityPropagationType, RegistrationData data, Map userCategories, Map allowedUserProfiles, Map customUserProfiles)
     Add the producer entity to the data storage.
public  StringaddProducerEntity(String producerName, URL producerURL, String identityPropagationType, String regHandle, Map userCategories, Map allowedUserProfiles, Map customUserProfiles)
     Add the producer entity to the data storage using out-of-band mechanism.
public  voideliminateProducerEntity(String producerEntityId)
     Remove the producer entity from the local data storage only.
public  StringgetConsumerName()
     Get the name given to the consumer.
public  RegistrationDatagetDefaultRegistrationData()
     Get default RegistrationData.
public  ListgetEndpoints(URL url)
    
public  ProducerEntitygetProducerEntity(String producerEntityId)
     Retrieve the ProducerEntity object from the local data storage.
Parameters:
  producerEntityId - a String of the producer entity.
public  SetgetProducerEntityIds()
     Get a set of ID's of the producer entities from the data storage.
public  ServiceDescriptiongetServiceDescription(URL producerURL)
     Given the producer URL, make a connection to the producer end to fetch the service description describing web service(s) offered by the producer.
public  MapgetStandardUserProfileMapping()
     Get the standard user profile mapping.
public  voidinit(String consumerId, HttpServletRequest request)
     Initialize the ProducerEntityManager from a servlet.
public  voidinit(String consumerId, String username, String password)
     Initialize the ProducerEntityManager by supplying the credential in a form of username and password.
public  voidinit(SSOToken ssoToken, String portalId, String consumerId)
     Initialize the ProducerEntityManager by supplying the credential in a form of SSOToken.
public  booleanisActivated()
     Is WSRP consumer currently activated? All callers of the ProducerEntityManager is adviced to check this before initiating any action.
public  booleanisInbandRegistrationSupported(URL producerURL)
     Given the producer URL, make a connection to the producer end to determine if in-band registration is supported.
public  voidmodifyRegistration(String producerEntityId, RegistrationData data)
     Modify registration information for the given producer entity.
public  voidremoveProducerEntity(String producerEntityId)
     Make a connection to producer and deregister.
public  voidsetAllowedUserProfileMapping(String producerEntityId, Map allowedUserProfileMap)
     Set allowed user profile mapping which contains entries for mapping a producer-generated user profile to a local user profile value.
public  voidsetConsumerName(String consumerName)
     Set the consumer name.
public  voidsetCustomUserProfileMapping(String producerEntityId, Map customUserProfileMap)
     Set the custom user profile mapping which contains entries for mapping a producer-generated user profile to a local user profile value.
public  voidsetDefaultRegistrationData(RegistrationData rd)
     Sets the default registration data.
public  voidsetIdentityPropagationType(String prducerEntityId, String type)
     Set the identity propagation type of the producer entity.
public  voidsetName(String prducerEntityId, String name)
     Set the name of the producer entity.
public  voidsetStandardUserProfileMapping(Map standardUserProfileMap)
     Sets the map of standard user profile mapping.
public  voidsetStatus(String producerEntityId, ProducerEntityStatus status)
     Set status of the producer entity.
public  voidsetUserCategoryMapping(String producerEntityId, Map userCategoryMap)
     Set the mapping of remote user categories to the local infrastructure roles.
Parameters:
  producerEntityId - ID of the producer entity
Parameters:
  userCategoryMap - map of remote user categories to the localinfrastructure roles.
public  voidupdateServiceDescription(String producerEntityId)
     Update service description data by first making connection to the producer end then updating local data storage with the fresh data.
Parameters:
  producerEntityId - a String of the producer entity.



Method Detail
addProducerEntity
public String addProducerEntity(String producerName, URL producerURL, String identityPropagationType, RegistrationData data, Map userCategories, Map allowedUserProfiles, Map customUserProfiles) throws WSRPConsumerException, InbandRegistrationNotSupportedException(Code)
Add the producer entity to the data storage. It first makes a connection to the producer end to fetch all neccessary information before establishing a producer entity in the local data storage.
Parameters:
  producerName - name of the producer
Parameters:
  producerURL - URL endpoint of the producer
Parameters:
  data - registration data
Parameters:
  userCategories - user category mapping
Parameters:
  allowedUserProfiles - allowed user profile mapping
Parameters:
  customUserProfiles - custom user profile mapping ID of the added producer entity
exception:
  WSRPConsumerException - if an error occurs
exception:
  InbandRegistrationNotSupportedException - if the registration port on the producer end is not available which in most cases indicates that in-band registration is unavailable and that the consumer should use out-of-band mechanism to establish registration.



addProducerEntity
public String addProducerEntity(String producerName, URL producerURL, String identityPropagationType, String regHandle, Map userCategories, Map allowedUserProfiles, Map customUserProfiles) throws WSRPConsumerException, InbandRegistrationNotSupportedException(Code)
Add the producer entity to the data storage using out-of-band mechanism. It first makes a connection to the producer end using the registration handle that was pre-established via the out-of-band process. After gathering the information from the producer, it creates a producer entity in the local data storage.
Parameters:
  producerName - name of the producer
Parameters:
  producerURL - URL endpoint of the producer
Parameters:
  data - registration data
Parameters:
  regHandle - registration handle which was obtained via the out-of-band mechanism
Parameters:
  userCategories - user category mapping
Parameters:
  allowedUserProfiles - allowed user profile mapping
Parameters:
  customUserProfiles - custom user profile mapping ID of the added producer entity
exception:
  WSRPConsumerException - if an error occurs



eliminateProducerEntity
public void eliminateProducerEntity(String producerEntityId) throws WSRPConsumerException(Code)
Remove the producer entity from the local data storage only. Note that this method does not deregister the consumer from the producer - deregistration is expected to take place out-of-band.
Parameters:
  producerEntityId - ID of the producer entity to be removed.
exception:
  WSRPConsumerException - if an error occurs



getConsumerName
public String getConsumerName() throws WSRPConsumerException(Code)
Get the name given to the consumer. This name gets used when the consumer registers with the producer. a name of the given consumer.



getDefaultRegistrationData
public RegistrationData getDefaultRegistrationData() throws WSRPConsumerException(Code)
Get default RegistrationData. a RegistrationData containing the default values.
exception:
  WSRPConsumerException - if an error occurs



getEndpoints
public List getEndpoints(URL url) throws WSRPConsumerException(Code)
Gets the endPoint urls for the given producer URL



getProducerEntity
public ProducerEntity getProducerEntity(String producerEntityId) throws WSRPConsumerException(Code)
Retrieve the ProducerEntity object from the local data storage.
Parameters:
  producerEntityId - a String of the producer entity. a ProducerEntity for the given producer entity id.
exception:
  WSRPConsumerException - if an error occurs



getProducerEntityIds
public Set getProducerEntityIds() throws WSRPConsumerException(Code)
Get a set of ID's of the producer entities from the data storage. a Set containing producer entity id's.
exception:
  WSRPConsumerException - if an error occurs



getServiceDescription
public ServiceDescription getServiceDescription(URL producerURL) throws WSRPConsumerException(Code)
Given the producer URL, make a connection to the producer end to fetch the service description describing web service(s) offered by the producer.
Parameters:
  producerURL - the URL where producer is located. a ServiceDescription which describes the service(s) offered by the producer.



getStandardUserProfileMapping
public Map getStandardUserProfileMapping() throws WSRPConsumerException(Code)
Get the standard user profile mapping. The user profiles as predefined by the WSRP spec are mapped to the local portal user attributes. map containing the mapping.



init
public void init(String consumerId, HttpServletRequest request) throws WSRPConsumerException(Code)
Initialize the ProducerEntityManager from a servlet.
Parameters:
  consumerId - a String value identifying the consumer entity.
Parameters:
  request - a HttpServletRequest value
exception:
  WSRPConsumerException - if an error occurs



init
public void init(String consumerId, String username, String password) throws WSRPConsumerException(Code)
Initialize the ProducerEntityManager by supplying the credential in a form of username and password.
Parameters:
  consumerId - a String identifying the consumer entity.
Parameters:
  username - user id for establishing user context.
Parameters:
  password - user password to be used for establishing user context.
exception:
  WSRPConsumerException - if an error occurs



init
public void init(SSOToken ssoToken, String portalId, String consumerId) throws WSRPConsumerException(Code)
Initialize the ProducerEntityManager by supplying the credential in a form of SSOToken.
Parameters:
  ssoToken - a SSOToken
Parameters:
  portalId - a String identifying the portal
Parameters:
  consumerId - consumer id for identifying the consumer entity.
exception:
  WSRPConsumerException - if an error occurs



isActivated
public boolean isActivated() throws WSRPConsumerException(Code)
Is WSRP consumer currently activated? All callers of the ProducerEntityManager is adviced to check this before initiating any action. a boolean value indicating whether wsrp consumer is activated or not.
exception:
  WSRPConsumerException - if an error occurs



isInbandRegistrationSupported
public boolean isInbandRegistrationSupported(URL producerURL) throws WSRPConsumerException(Code)
Given the producer URL, make a connection to the producer end to determine if in-band registration is supported. This is done by checking to see if the registration port is available or not.
Parameters:
  producerURL - the URL where producer is located. a boolean value indicating whether in-band registration is available or not.



modifyRegistration
public void modifyRegistration(String producerEntityId, RegistrationData data) throws WSRPConsumerException, InbandRegistrationNotSupportedException(Code)
Modify registration information for the given producer entity.
Parameters:
  producerEntityId - ID of the producer entity to be modified.
Parameters:
  data - a new RegistrationData
exception:
  WSRPConsumerException - if an error occurs
exception:
  InbandRegistrationUnsupportedException - if the registration port on the producer end is not available which in most cases indicates that in-band registration is unavailable and that the consumer should use out-of-band mechanism to establish registration.



removeProducerEntity
public void removeProducerEntity(String producerEntityId) throws WSRPConsumerException, InbandRegistrationNotSupportedException(Code)
Make a connection to producer and deregister. Then remove the producer entity from the local data storage.
Parameters:
  producerEntityId - ID of the producer entity to be removed.
exception:
  WSRPConsumerException - if an error occurs
exception:
  InbandRegistrationUnsupportedException - if the registration port on the producer end is not available which in most cases indicates that in-band deregistration is unavailable and that the consumer should use out-of-band mechanism to establish deregistration.



setAllowedUserProfileMapping
public void setAllowedUserProfileMapping(String producerEntityId, Map allowedUserProfileMap) throws WSRPConsumerException(Code)
Set allowed user profile mapping which contains entries for mapping a producer-generated user profile to a local user profile value. This is a subset of the standard user profile mappings and contains only the mapping that's allowed for the given producer.
Parameters:
  producerEntityId - a String value
Parameters:
  allowedUserProfileMap - a Map value
exception:
  WSRPConsumerException - if an error occurs



setConsumerName
public void setConsumerName(String consumerName) throws WSRPConsumerException(Code)
Set the consumer name.
Parameters:
  consumerName - a new name of the given consumer.



setCustomUserProfileMapping
public void setCustomUserProfileMapping(String producerEntityId, Map customUserProfileMap) throws WSRPConsumerException(Code)
Set the custom user profile mapping which contains entries for mapping a producer-generated user profile to a local user profile value.
Parameters:
  producerEntityId - a String value
Parameters:
  customUserProfileMap - a Map value
exception:
  WSRPConsumerException - if an error occurs



setDefaultRegistrationData
public void setDefaultRegistrationData(RegistrationData rd) throws WSRPConsumerException(Code)
Sets the default registration data. Default registration data is considered very static and is not meant to change. Should there be an update to this data, server restart would be needed.
exception:
  WSRPConsumerException - if an error occurs



setIdentityPropagationType
public void setIdentityPropagationType(String prducerEntityId, String type) throws WSRPConsumerException(Code)
Set the identity propagation type of the producer entity.
Parameters:
  producerEntityId - ID of the producer entity type, new type to be used for the producer entity.



setName
public void setName(String prducerEntityId, String name) throws WSRPConsumerException(Code)
Set the name of the producer entity.
Parameters:
  producerEntityId - ID of the producer entity
Parameters:
  name - new name to be used for the producer entity.



setStandardUserProfileMapping
public void setStandardUserProfileMapping(Map standardUserProfileMap) throws WSRPConsumerException(Code)
Sets the map of standard user profile mapping. Standard user profile mapping is considered very static and is not meant to change. Should there be an update to this map, server restart would be needed.
exception:
  WSRPConsumerException - if an error occurs



setStatus
public void setStatus(String producerEntityId, ProducerEntityStatus status) throws WSRPConsumerException(Code)
Set status of the producer entity.
Parameters:
  producerEntityId - ID of the producer entity
Parameters:
  status - the new status



setUserCategoryMapping
public void setUserCategoryMapping(String producerEntityId, Map userCategoryMap) throws WSRPConsumerException(Code)
Set the mapping of remote user categories to the local infrastructure roles.
Parameters:
  producerEntityId - ID of the producer entity
Parameters:
  userCategoryMap - map of remote user categories to the localinfrastructure roles.



updateServiceDescription
public void updateServiceDescription(String producerEntityId) throws WSRPConsumerException(Code)
Update service description data by first making connection to the producer end then updating local data storage with the fresh data.
Parameters:
  producerEntityId - a String of the producer entity. a ProducerEntity for the given producer entity id.
exception:
  WSRPConsumerException - if an error occurs



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