Java Doc for ProfileLocator.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.ProfileLocator

ProfileLocator
public interface ProfileLocator (Code)

Profile Locators are used to locate profiled portal resources such as pages, documents, and fragments. A locator contains properties describing the actually resource to be located. Since the locator is based on properties that are usually related to a user or other subject's profile, it is referred to as a profile locator.

Profiles can be created from a normalized Profile Locator Path The format of the path is name/value pairs of all property, separated by a path separator. An example locator path:

page:default.psml:artist:al-stewart:song:on-the-border
path:/sports/football/nfl/chiefs:language:en

author:
   David Sean Taylor
version:
   $Id: ProfileLocator.java 516448 2007-03-09 16:25:47Z ate $


Field Summary
final public static  StringPAGE_LOCATOR
    
final public static  StringPATH_SEPARATOR
    
final public static  StringSECURITY_LOCATOR
    


Method Summary
 voidadd(RuleCriterion criterion, boolean isControl, boolean isNavigation, String value)
     Add a property based on a @link org.apache.jetspeed.profiler.rules.RuleCriterion and a value.
 voidadd(String name, boolean isControl, boolean isNavigation, String value)
     Add a property based on a Simple name and value.
 voidadd(String name, String value)
     Add a property based on a Simple name and value assumed to be control property.
 voidcreateFromLocatorPath(String path)
    

Profiles can be created from a normalized Profile Locator Path The format of the path is name:value pairs of all property, separated by a path separator.

 StringgetLocatorPath()
    

Profiles can be converted to a normalized Profile Locator Path The format of the path is name/value pairs of all property, separated by a path separator.

 StringgetLocatorPath(ProfileLocatorProperty[] properties)
    

Normalize profile properties obtained from profile locator iterators into a Profile Locator Path.


Parameters:
  properties - The array of profile properties.
 StringgetRequestPath()
    
 StringgetValue(String name)
    
 voidinit(Profiler profiler, String requestPath)
     Initialize this page context.
 booleanisControl(String name)
     For a given property name, return control status of property.
 booleanisNavigation(String name)
     For a given property name, return navigation status of property.
 Iteratoriterator()
     Get an iterator over the locator's properties. Elements are returned as @link ProfileLocatorProperty array.
 StringtoString()
     Returns a normalized path.

Field Detail
PAGE_LOCATOR
final public static String PAGE_LOCATOR(Code)



PATH_SEPARATOR
final public static String PATH_SEPARATOR(Code)



SECURITY_LOCATOR
final public static String SECURITY_LOCATOR(Code)





Method Detail
add
void add(RuleCriterion criterion, boolean isControl, boolean isNavigation, String value)(Code)
Add a property based on a @link org.apache.jetspeed.profiler.rules.RuleCriterion and a value. Rule criteria are templates for locating profile properties. The value is combined with the rule to create a property.
Parameters:
  criterion - The rule criterion on which this property is based.
Parameters:
  isControl - The control classification for property.
Parameters:
  isNavigation - The navigation classification for property.
Parameters:
  value - The value to set on the property.



add
void add(String name, boolean isControl, boolean isNavigation, String value)(Code)
Add a property based on a Simple name and value.
Parameters:
  name - The name of the property.
Parameters:
  isControl - The control classification for property.
Parameters:
  isNavigation - The control classification for property.
Parameters:
  value - The value to set on the property.



add
void add(String name, String value)(Code)
Add a property based on a Simple name and value assumed to be control property.
Parameters:
  name - The name of the property.
Parameters:
  value - The value to set on the property.



createFromLocatorPath
void createFromLocatorPath(String path)(Code)

Profiles can be created from a normalized Profile Locator Path The format of the path is name:value pairs of all property, separated by a path separator. Note: all locator property elements are assumed to be control properties. An example locator path:

:page:default.psml:artist:air:song:all-i-need

Parameters:
  path - The normalized path as shown above from which the locator is created.



getLocatorPath
String getLocatorPath()(Code)

Profiles can be converted to a normalized Profile Locator Path The format of the path is name/value pairs of all property, separated by a path separator. An example locator path:

:page:default.psml:artist:joni-mitchell:song:cary
The normalized path as shown above.



getLocatorPath
String getLocatorPath(ProfileLocatorProperty[] properties)(Code)

Normalize profile properties obtained from profile locator iterators into a Profile Locator Path.


Parameters:
  properties - The array of profile properties. The normalized path for properties.



getRequestPath
String getRequestPath()(Code)

Locators are intended to be sufficient to locate managed pages, so the request path must be generally available in the event it is not otherwise captured in a rule criterion.

The request path.



getValue
String getValue(String name)(Code)
For a given property name, get a property of type @link ProfileLocatorProperty
Parameters:
  name - The name of the property a property of type @link ProfileLocatorProperty



init
void init(Profiler profiler, String requestPath)(Code)
Initialize this page context.
Parameters:
  profiler - The profiler initializing this locator.
Parameters:
  requestPath - The request path used to create this locator.



isControl
boolean isControl(String name)(Code)
For a given property name, return control status of property.
Parameters:
  name - The name of the property control classification flag



isNavigation
boolean isNavigation(String name)(Code)
For a given property name, return navigation status of property.
Parameters:
  name - The name of the property navigation classification flag



iterator
Iterator iterator()(Code)
Get an iterator over the locator's properties. Elements are returned as @link ProfileLocatorProperty array. an iterator over the profile locator properties



toString
String toString()(Code)
Returns a normalized path. @see #getLocatorPath() The normalized path representation of this locator.



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