Java Doc for ProfilingRule.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » profiler » rules » 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 » jetspeed 2.1.3 » org.apache.jetspeed.profiler.rules 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jetspeed.profiler.rules.ProfilingRule

All known Subclasses:   org.apache.jetspeed.profiler.rules.impl.RoleFallbackProfilingRule,  org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule,  org.apache.jetspeed.profiler.rules.impl.AbstractProfilingRule,
ProfilingRule
public interface ProfilingRule extends Serializable(Code)
A ProfilingRule defines a list of criteria used when evaluating a request to determine the location of a specific resource. Profiling rules are used by the Profiler Service to generically locate portal resources based on the decoupled criteria for known portlet request data. A rule consists of an ordered list of criteria which should be applied in the given order of the SortedMap provided by this rule. Following this order, fallback searches may be applied to find resources using a less-specific algorithm until the least specific resource criterion is considered. When all criteria are exhausted, the rule will fail.
author:
   David Sean Taylor
version:
   $Id: ProfilingRule.java 516448 2007-03-09 16:25:47Z ate $


Field Summary
final public static  StringCCPP_PROPERTY
    
final public static  StringREQUEST_ATTRIBUTE
    
final public static  StringREQUEST_PARAMETER
    
final public static  StringSESSION_ATTRIBUTE
    
final public static  StringSTANDARD
    
final public static  StringSTANDARD_COUNTRY
    
final public static  StringSTANDARD_GROUP
    
final public static  StringSTANDARD_GROUP_ROLE_USER
    
final public static  StringSTANDARD_LANGUAGE
    
final public static  StringSTANDARD_MEDIATYPE
    
final public static  StringSTANDARD_PAGE
    
final public static  StringSTANDARD_ROLE
    
final public static  StringSTANDARD_ROLE_FALLBACK
    
final public static  StringSTANDARD_USER
    
final public static  StringUSER_ATTRIBUTE
    


Method Summary
 ProfileLocatorapply(RequestContext context, Profiler service)
     Applying the profiling rule generates a generic profile locator.
 StringgetClassname()
     Get the implementing classname of this rule from the database.
 StringgetId()
    
 RuleCriterionResolvergetResolver(String name)
    
 ProfileResolversgetResolvers()
    
 CollectiongetRuleCriteria()
     Returns a sorted map (ordered) of rule criteria.
 StringgetTitle()
     Gets the title used for with the rule for displaying descriptive text.
 voidsetClassname(String classname)
     Sets the implementing classname of this rule from the database.
 voidsetId(String id)
    
 voidsetResolvers(ProfileResolvers resolvers)
    
 voidsetTitle(String title)
     Set the title used for with the rule for displaying descriptive text.

Field Detail
CCPP_PROPERTY
final public static String CCPP_PROPERTY(Code)
Composite Capabilities and Preference Profile as defined http://www.w3.org/TR/NOTE-CCPP/



REQUEST_ATTRIBUTE
final public static String REQUEST_ATTRIBUTE(Code)
Request attributes as defined in the Portlet spec 1.0 PLT.11.1.3



REQUEST_PARAMETER
final public static String REQUEST_PARAMETER(Code)
Request parameters as defined in the Portlet spec 1.0 PLT.11.1.1



SESSION_ATTRIBUTE
final public static String SESSION_ATTRIBUTE(Code)
Session Attribute



STANDARD
final public static String STANDARD(Code)
Standard rule criteria used by Jetspeed traditionally such as media type, language, username, role



STANDARD_COUNTRY
final public static String STANDARD_COUNTRY(Code)



STANDARD_GROUP
final public static String STANDARD_GROUP(Code)



STANDARD_GROUP_ROLE_USER
final public static String STANDARD_GROUP_ROLE_USER(Code)



STANDARD_LANGUAGE
final public static String STANDARD_LANGUAGE(Code)



STANDARD_MEDIATYPE
final public static String STANDARD_MEDIATYPE(Code)



STANDARD_PAGE
final public static String STANDARD_PAGE(Code)
Standard properties used traditionally in Jetspeed



STANDARD_ROLE
final public static String STANDARD_ROLE(Code)



STANDARD_ROLE_FALLBACK
final public static String STANDARD_ROLE_FALLBACK(Code)



STANDARD_USER
final public static String STANDARD_USER(Code)



USER_ATTRIBUTE
final public static String USER_ATTRIBUTE(Code)
User attributes as defined in the Portlet spec 1.0 PLT.17





Method Detail
apply
ProfileLocator apply(RequestContext context, Profiler service)(Code)
Applying the profiling rule generates a generic profile locator. With this locator we can then locate a profiling resource.
Parameters:
  context -
Parameters:
  service -



getClassname
String getClassname()(Code)
Get the implementing classname of this rule from the database. The class must exist in the hiearchy and in fact refers to itself when instantiated. The classname of this instance.



getId
String getId()(Code)
Gets the unique identifier for this rule The unique identifier



getResolver
RuleCriterionResolver getResolver(String name)(Code)
Given a criterion name, look up a value resolver
Parameters:
  name - The name of the criterion



getResolvers
ProfileResolvers getResolvers()(Code)



getRuleCriteria
Collection getRuleCriteria()(Code)
Returns a sorted map (ordered) of rule criteria. Each criteria consists of a normalized property/attribute/parameter associated with a request type. a sorted map of rule criteria.



getTitle
String getTitle()(Code)
Gets the title used for with the rule for displaying descriptive text. The title of this rule.



setClassname
void setClassname(String classname)(Code)
Sets the implementing classname of this rule from the database. The class must exist in the hiearchy and in fact refers to itself when instantiated.
Parameters:
  classname - The classname of this instance.



setId
void setId(String id)(Code)
Sets the unique identifier for this rule
Parameters:
  id - The unique identifier



setResolvers
void setResolvers(ProfileResolvers resolvers)(Code)



setTitle
void setTitle(String title)(Code)
Set the title used for with the rule for displaying descriptive text.
Parameters:
  title - The title of this rule.



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