|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.profiler.impl.JetspeedProfileLocator
public class JetspeedProfileLocator
ProfileLocatorImpl
Field Summary |
---|
Fields inherited from interface org.apache.jetspeed.profiler.ProfileLocator |
---|
PAGE_LOCATOR, PATH_SEPARATOR, SECURITY_LOCATOR |
Constructor Summary | |
---|---|
JetspeedProfileLocator()
|
Method Summary | |
---|---|
void |
add(RuleCriterion criterion,
boolean isControl,
boolean isNavigation,
java.lang.String value)
Add a property based on a @link org.apache.jetspeed.profiler.rules.RuleCriterion and a value. |
void |
add(java.lang.String name,
boolean isControl,
boolean isNavigation,
java.lang.String value)
Add a property based on a Simple name and value. |
void |
add(java.lang.String name,
java.lang.String value)
Add a property based on a Simple name and value assumed to be control property. |
void |
createFromLocatorPath(java.lang.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. |
java.util.List |
getElements()
|
java.lang.String |
getLocatorPath()
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. |
java.lang.String |
getLocatorPath(ProfileLocatorProperty[] properties)
Normalize profile properties obtained from profile locator iterators into a Profile Locator Path. |
java.lang.String |
getRequestPath()
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. |
java.lang.String |
getValue(java.lang.String name)
For a given property name, get a property of type @link ProfileLocatorProperty |
void |
init(Profiler profiler,
java.lang.String requestPath)
Initialize this page context. |
boolean |
isControl(java.lang.String name)
For a given property name, return control status of property. |
boolean |
isNavigation(java.lang.String name)
For a given property name, return navigation status of property. |
java.util.Iterator |
iterator()
Get an iterator over the locator's properties. |
java.lang.String |
toString()
Returns a normalized path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JetspeedProfileLocator()
Method Detail |
---|
public java.util.List getElements()
getElements
in interface ProfileLocatorControl
public void init(Profiler profiler, java.lang.String requestPath)
ProfileLocator
init
in interface ProfileLocator
profiler
- The profiler initializing this locator.requestPath
- The request path used to create this locator.public java.util.Iterator iterator()
ProfileLocator
iterator
in interface ProfileLocator
public java.lang.String getValue(java.lang.String name)
ProfileLocator
getValue
in interface ProfileLocator
name
- The name of the property
public boolean isControl(java.lang.String name)
ProfileLocator
isControl
in interface ProfileLocator
name
- The name of the property
public boolean isNavigation(java.lang.String name)
ProfileLocator
isNavigation
in interface ProfileLocator
name
- The name of the property
public void add(RuleCriterion criterion, boolean isControl, boolean isNavigation, java.lang.String value)
ProfileLocator
add
in interface ProfileLocator
criterion
- The rule criterion on which this property is based.isControl
- The control classification for property.isNavigation
- The navigation classification for property.value
- The value to set on the property.public void add(java.lang.String name, boolean isControl, boolean isNavigation, java.lang.String value)
ProfileLocator
add
in interface ProfileLocator
name
- The name of the property.isControl
- The control classification for property.isNavigation
- The control classification for property.value
- The value to set on the property.public void add(java.lang.String name, java.lang.String value)
ProfileLocator
add
in interface ProfileLocator
name
- The name of the property.value
- The value to set on the property.public void createFromLocatorPath(java.lang.String path)
ProfileLocator
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
createFromLocatorPath
in interface ProfileLocator
path
- The normalized path as shown above from which the locator is created.public java.lang.String getLocatorPath()
ProfileLocator
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
getLocatorPath
in interface ProfileLocator
public java.lang.String getLocatorPath(ProfileLocatorProperty[] properties)
ProfileLocator
Normalize profile properties obtained from profile locator iterators into a Profile Locator Path.
getLocatorPath
in interface ProfileLocator
properties
- The array of profile properties.
public java.lang.String toString()
ProfileLocator
toString
in interface ProfileLocator
toString
in class java.lang.Object
public java.lang.String getRequestPath()
ProfileLocator
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.
getRequestPath
in interface ProfileLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |