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


org.apache.jetspeed.profiler.Profiler

All known Subclasses:   org.apache.jetspeed.profiler.impl.JetspeedProfilerImpl,
Profiler
public interface Profiler (Code)
ProfilerService Jetspeed-2 Profiler service. Locates portal resources given a set of request parameters, properties, and attributes The Profiler is invoked during the request processing pipeline. It requires that the request context is already populated with the portal request and response, and capability and user information. The request context parameters, properties and attributes make up the profile criterion which the profiler uses to locate portal resources: 1. page 2. navigations 3. document lists In all cases, a fallback algorithm should be applied to fallback to default portal resources.
author:
   David Sean Taylor
version:
   $Id: Profiler.java 516881 2007-03-11 10:34:21Z ate $




Method Summary
 ProfileLocatorcreateLocator(RequestContext context)
    
public  PrincipalRulecreatePrincipalRule()
     Factory for PrincipalRule, the container to connect profiling rule and (user) prinicpal

Replaces the previous Class.forName and .instantiate logic with the Spring based factory.

public  ProfilingRulecreateProfilingRule(boolean standard)
     Factory for Profiling Rule.
public  RuleCriterioncreateRuleCriterion()
    
 voiddeletePrincipalRule(PrincipalRule rule)
    
 voiddeleteProfilingRule(ProfilingRule rule)
    
 ProfileLocatorgetDefaultProfile(RequestContext context, String locatorName)
    

getDefaultProfile

Intstead of using the princpal found within the request, the DEFAULT_RULE_PRINCIPAL is used.
Parameters:
  context - The request context
Parameters:
  locatorName - The name of the profile locator to find i.e.
 MapgetDefaultProfileLocators(RequestContext context)
    
 ProfilingRulegetDefaultRule()
     Lookup the portal's default profiling rule.
 String[]getLocatorNamesForPrincipal(Principal principal)
     For a given principal, find all supported locators and return a string array of locator names.
Parameters:
  principal - The given principal.
 ProfileLocatorgetProfile(RequestContext context, String locatorName)
     Get the Profile object using the request parameters.
Parameters:
  context - The request context
Parameters:
  locatorName - The name of the profile locator to find i.e.
 ProfileLocatorgetProfile(RequestContext context, ProfilingRule rule)
     Get the Profile object using the request parameters and the rule.
 MapgetProfileLocators(RequestContext context, Principal principal)
     Gets all supported locators for a principal.
 ProfilingRulegetRule(String id)
    
 ProfilingRulegetRuleForPrincipal(Principal principal, String locatorName)
     For a given principal, lookup the associated profiling rule to that principal name.
Parameters:
  principal - Lookup the profiling rule based on this principal.
 CollectiongetRules()
    
 CollectiongetRulesForPrincipal(Principal principal)
     For a given principal, find all supported locators and return a collection of principal rules.
Parameters:
  principal - The given principal.
public  voidsetDefaultRule(String defaultRule)
    
 voidsetRuleForPrincipal(Principal principal, ProfilingRule rule, String locatorName)
     For a given principal, associate a profiling rule to that principal name.
 voidstorePrincipalRule(PrincipalRule rule)
    
 voidstoreProfilingRule(ProfilingRule rule)
    



Method Detail
createLocator
ProfileLocator createLocator(RequestContext context)(Code)
Creates a new ProfileLocator object that can be managed by the current Profiler implementation
Parameters:
  context - The request context A new ProfileLocator object



createPrincipalRule
public PrincipalRule createPrincipalRule() throws ClassNotFoundException(Code)
Factory for PrincipalRule, the container to connect profiling rule and (user) prinicpal

Replaces the previous Class.forName and .instantiate logic with the Spring based factory. New instance of a principal rule
throws:
  ClassNotFoundException - if the beanfactory couldn't instantiate the bean




createProfilingRule
public ProfilingRule createProfilingRule(boolean standard) throws ClassNotFoundException(Code)
Factory for Profiling Rule. The boolean argument specifies whether to obtain a new instance of a standard profiling rule or of a fallback rule.
Parameters:
  standard - true if standard rule is requested, false if fallback New instance of a (standard or fallback) Profiling Rule
throws:
  ClassNotFoundException - if the beanfactory couldn't instantiate the bean



createRuleCriterion
public RuleCriterion createRuleCriterion() throws ClassNotFoundException(Code)
Factory for Rule Criterion

New instance of a rule criterion
throws:
  ClassNotFoundException - if the beanfactory couldn't instantiate the bean




deletePrincipalRule
void deletePrincipalRule(PrincipalRule rule) throws ProfilerException(Code)



deleteProfilingRule
void deleteProfilingRule(ProfilingRule rule) throws ProfilerException(Code)



getDefaultProfile
ProfileLocator getDefaultProfile(RequestContext context, String locatorName) throws ProfilerException(Code)

getDefaultProfile

Intstead of using the princpal found within the request, the DEFAULT_RULE_PRINCIPAL is used.
Parameters:
  context - The request context
Parameters:
  locatorName - The name of the profile locator to find i.e. "page", "docset", ... a new Profile Locator object or null if failed to find a appropriate locator.



getDefaultProfileLocators
Map getDefaultProfileLocators(RequestContext context) throws ProfilerException(Code)

getDefaultProfileLocators

Gets all the supported locators for the DEFAULT_RULE_PRINCIPAL
Parameters:
  context -
throws:
  ProfilerException -



getDefaultRule
ProfilingRule getDefaultRule()(Code)
Lookup the portal's default profiling rule. The portal's default profiling rule.



getLocatorNamesForPrincipal
String[] getLocatorNamesForPrincipal(Principal principal)(Code)
For a given principal, find all supported locators and return a string array of locator names.
Parameters:
  principal - The given principal. array of String locator names



getProfile
ProfileLocator getProfile(RequestContext context, String locatorName) throws ProfilerException(Code)
Get the Profile object using the request parameters.
Parameters:
  context - The request context
Parameters:
  locatorName - The name of the profile locator to find i.e. "page", "docset", ... a new Profile Locator object or null if failed to find a appropriate locator.



getProfile
ProfileLocator getProfile(RequestContext context, ProfilingRule rule) throws ProfilerException(Code)
Get the Profile object using the request parameters and the rule.
Parameters:
  context - The request context a new Profile Locator object or null if failed to find a appropriate locator.



getProfileLocators
Map getProfileLocators(RequestContext context, Principal principal) throws ProfilerException(Code)
Gets all supported locators for a principal.
Parameters:
  context -
Parameters:
  principal -
throws:
  ProfilerException -



getRule
ProfilingRule getRule(String id)(Code)
Given a rule id, get the rule
Parameters:
  id - the rule



getRuleForPrincipal
ProfilingRule getRuleForPrincipal(Principal principal, String locatorName)(Code)
For a given principal, lookup the associated profiling rule to that principal name.
Parameters:
  principal - Lookup the profiling rule based on this principal.
Parameters:
  locatorName - the unique name of a locator for this principal/rule/locator The rule found or null if not found



getRules
Collection getRules()(Code)



getRulesForPrincipal
Collection getRulesForPrincipal(Principal principal)(Code)
For a given principal, find all supported locators and return a collection of principal rules.
Parameters:
  principal - The given principal. collection of PrincipalRules



setDefaultRule
public void setDefaultRule(String defaultRule)(Code)
Resets the default rule for this portal
Parameters:
  defaultRule - The default rule to set.



setRuleForPrincipal
void setRuleForPrincipal(Principal principal, ProfilingRule rule, String locatorName)(Code)
For a given principal, associate a profiling rule to that principal name. TODO: this API should be secured and require admin role
Parameters:
  principal - Lookup the profiling rule based on this principal.
Parameters:
  locatorName - the unique name of a locator for this principal/rule/locator
Parameters:
  The - rule used to find profiles for this user



storePrincipalRule
void storePrincipalRule(PrincipalRule rule) throws ProfilerException(Code)



storeProfilingRule
void storeProfilingRule(ProfilingRule rule) throws ProfilerException(Code)



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