Java Doc for RegistrationPolicy.java in  » Portal » jboss-portal-2.6.4 » org » jboss » portal » registration » 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 » jboss portal 2.6.4 » org.jboss.portal.registration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.portal.registration.RegistrationPolicy

All known Subclasses:   org.jboss.portal.registration.policies.DefaultRegistrationPolicy,  org.jboss.portal.test.wsrp.config.TestRegistrationPolicy,
RegistrationPolicy
public interface RegistrationPolicy (Code)
An interface allowing users of the Registration service to customize different aspects of how Consumers are handled. Methods of this interface are used by RegistrationManager to make appropriate decisions. Implementations of this interface MUST provide a no-argument constructor for instantiation from the class name.
author:
   Chris Laprun
version:
   $Revision: 9177 $
since:
   2.6




Method Summary
 StringcreateRegistrationHandleFor(String registrationId)
     Generates a registration handle based on the database identity of the Registration.
 StringgetAutomaticGroupNameFor(String consumerName)
     Determines the ConsumerGroup name to which the Consumer associated with the specified name should be assigned with or null if the Consumer should not be automatically assigned to a ConsumerGroup.
 StringgetConsumerIdFrom(String consumerName, Map registrationProperties)
     Obtains a consumer identity which uniquely identifies a Consumer in function of the consumer name and registration properties.
 RegistrationManagergetManager()
     Retrieves the RegistrationManager with which this RegistrationPolicy is associated.
 voidsetExpectations(Map<QName, ? extends PropertyDescription> registrationPropertyDescriptions)
     Define what the expectations are as far as acceptable registration properties go.
 voidsetManager(RegistrationManager manager)
     Associates this RegistrationPolicy with the specified RegistrationManager.
 voidvalidateConsumerGroupName(String groupName)
     Determines if the specified ConsumerGroup name is acceptable.
 voidvalidateConsumerName(String consumerName)
     Determines if the specified Consumer name is acceptable.
 voidvalidateRegistrationDataFor(Map registrationProperties, String consumerIdentity)
     Examines and determines whether the given registration properties are adequate for the Consumer associated with the given identity.



Method Detail
createRegistrationHandleFor
String createRegistrationHandleFor(String registrationId) throws IllegalArgumentException(Code)
Generates a registration handle based on the database identity of the Registration. This allows users to customize the registration handle format if they want to prevent exposure of database-related data.
Parameters:
  registrationId - the database identity of the Registration for which a handle is required. a registration handle for the Registration associated with the specified identifier.
throws:
  IllegalArgumentException - if the specified registration identity if null or empty



getAutomaticGroupNameFor
String getAutomaticGroupNameFor(String consumerName) throws IllegalArgumentException(Code)
Determines the ConsumerGroup name to which the Consumer associated with the specified name should be assigned with or null if the Consumer should not be automatically assigned to a ConsumerGroup. This method is called during the Consumer creation process to see if the Consumer should be automatically added to a ConsumerGroup.
Parameters:
  consumerName - the name of the Consumer being created the name of the ConsumerGroup the Consumer must be automatically added to or null if theConsumer will not be automatically to a ConsumerGroup at creation
throws:
  IllegalArgumentException - if the specified Consumer name if null or empty



getConsumerIdFrom
String getConsumerIdFrom(String consumerName, Map registrationProperties) throws IllegalArgumentException, InvalidConsumerDataException(Code)
Obtains a consumer identity which uniquely identifies a Consumer in function of the consumer name and registration properties. This is potentially necessary because Consumer names are not guaranteed to be unique (even though the specification states that they should).
Parameters:
  consumerName - the consumer name
Parameters:
  registrationProperties - a Map containing the registration properties in the form of property name (QName) -property value (Object) mappings. Producer implementations might use theregistration properties to provide secure Consumer identity. the consumer identity
throws:
  InvalidConsumerDataException - if the Policy examines the specified registration properties to determine theConsumer identity and decides that they are not in a proper state
throws:
  IllegalArgumentException - if the specified Consumer name if null or empty



getManager
RegistrationManager getManager()(Code)
Retrieves the RegistrationManager with which this RegistrationPolicy is associated. the RegistrationManager with which this RegistrationPolicy is associated.



setExpectations
void setExpectations(Map<QName, ? extends PropertyDescription> registrationPropertyDescriptions)(Code)
Define what the expectations are as far as acceptable registration properties go.
Parameters:
  registrationPropertyDescriptions - a map of containing the description of expected registrations
since:
   2.6.3



setManager
void setManager(RegistrationManager manager)(Code)
Associates this RegistrationPolicy with the specified RegistrationManager. This method should not be called directly by client code as it used in the wiring process of the Registration service.
Parameters:
  manager - the RegistrationManager with which this RegistrationPolicy should be associated.



validateConsumerGroupName
void validateConsumerGroupName(String groupName) throws IllegalArgumentException, RegistrationException(Code)
Determines if the specified ConsumerGroup name is acceptable. This method is called before a ConsumerGroup is created.
Parameters:
  groupName - the name of the ConsumerGroup to be created
throws:
  IllegalArgumentException - if the specified ConsumerGroup name if null or empty
throws:
  RegistrationException - if an exception occurred in the Registration service



validateConsumerName
void validateConsumerName(String consumerName) throws IllegalArgumentException, RegistrationException(Code)
Determines if the specified Consumer name is acceptable. This method is called before a Consumer is created and before a unique Consumer identity is created. This is in particular used if the Policy mandates that Consumer names must be unique.
Parameters:
  consumerName - the name of the Consumer as passed during the registration process
throws:
  IllegalArgumentException - if the specified Consumer name if null or empty
throws:
  RegistrationException - if an exception occurred in the Registration service



validateRegistrationDataFor
void validateRegistrationDataFor(Map registrationProperties, String consumerIdentity) throws IllegalArgumentException, RegistrationException(Code)
Examines and determines whether the given registration properties are adequate for the Consumer associated with the given identity. This method is called before a Registration is created and thus allows users to decide whether or not to reject a given registration if not satisfied with the given registration properties.
Parameters:
  registrationProperties - a Map containing the registration properties in the form of property name (QName) -property value (Object) mappings
Parameters:
  consumerIdentity - the Consumer identity (as returned by RegistrationPolicy.getConsumerIdFrom(String,java.util.Map)) for which the registration properties must be ascertained
throws:
  IllegalArgumentException - if any of the registration properties is invalid for the specified Consumer
throws:
  RegistrationException - if an exception occured in the registration service



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