|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.profiler.rules.impl.AbstractProfilingRule
public abstract class AbstractProfilingRule
ProfilingRuleImpl
Field Summary | |
---|---|
protected java.util.Collection |
criteria
|
protected java.lang.String |
id
|
protected java.util.Map |
locators
Map of profile locators kept around for reuse TODO: evict entries after max size reached |
protected java.lang.String |
ojbConcreteClass
|
protected ProfileResolvers |
resolvers
Map of resolver rules for criteria. |
protected java.lang.String |
title
|
Fields inherited from interface org.apache.jetspeed.profiler.rules.ProfilingRule |
---|
CCPP_PROPERTY, REQUEST_ATTRIBUTE, REQUEST_PARAMETER, SESSION_ATTRIBUTE, STANDARD, STANDARD_COUNTRY, STANDARD_GROUP, STANDARD_GROUP_ROLE_USER, STANDARD_LANGUAGE, STANDARD_MEDIATYPE, STANDARD_PAGE, STANDARD_ROLE, STANDARD_ROLE_FALLBACK, STANDARD_USER, USER_ATTRIBUTE |
Constructor Summary | |
---|---|
AbstractProfilingRule()
|
|
AbstractProfilingRule(ProfileResolvers resolvers)
|
Method Summary | |
---|---|
protected void |
addLocatorToCache(java.lang.String key,
ProfileLocator locator)
|
abstract ProfileLocator |
apply(RequestContext context,
Profiler service)
Applying the profiling rule generates a generic profile locator. |
java.lang.String |
getClassname()
Get the implementing classname of this rule from the database. |
RuleCriterionResolver |
getDefaultResolver()
|
java.lang.String |
getId()
Gets the unique identifier for this rule |
protected ProfileLocator |
getLocatorFromCache(java.lang.String key)
|
RuleCriterionResolver |
getResolver(java.lang.String name)
Given a criterion name, look up a value resolver |
ProfileResolvers |
getResolvers()
|
java.util.Collection |
getRuleCriteria()
Returns a sorted map (ordered) of rule criteria. |
java.lang.String |
getTitle()
Gets the title used for with the rule for displaying descriptive text. |
void |
setClassname(java.lang.String classname)
Sets the implementing classname of this rule from the database. |
void |
setId(java.lang.String id)
Sets the unique identifier for this rule |
void |
setResolvers(ProfileResolvers resolvers)
|
void |
setTitle(java.lang.String title)
Set the title used for with the rule for displaying descriptive text. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Collection criteria
protected java.lang.String id
protected java.lang.String title
protected java.lang.String ojbConcreteClass
protected java.util.Map locators
protected ProfileResolvers resolvers
Constructor Detail |
---|
public AbstractProfilingRule()
public AbstractProfilingRule(ProfileResolvers resolvers)
Method Detail |
---|
protected ProfileLocator getLocatorFromCache(java.lang.String key)
protected void addLocatorToCache(java.lang.String key, ProfileLocator locator)
public RuleCriterionResolver getResolver(java.lang.String name)
ProfilingRule
getResolver
in interface ProfilingRule
name
- The name of the criterion
public RuleCriterionResolver getDefaultResolver()
public abstract ProfileLocator apply(RequestContext context, Profiler service)
ProfilingRule
apply
in interface ProfilingRule
public java.util.Collection getRuleCriteria()
ProfilingRule
getRuleCriteria
in interface ProfilingRule
public java.lang.String getId()
ProfilingRule
getId
in interface ProfilingRule
public void setId(java.lang.String id)
ProfilingRule
setId
in interface ProfilingRule
id
- The unique identifierpublic java.lang.String getTitle()
ProfilingRule
getTitle
in interface ProfilingRule
public void setTitle(java.lang.String title)
ProfilingRule
setTitle
in interface ProfilingRule
title
- The title of this rule.public java.lang.String getClassname()
ProfilingRule
getClassname
in interface ProfilingRule
public void setClassname(java.lang.String classname)
ProfilingRule
setClassname
in interface ProfilingRule
classname
- The classname of this instance.public java.lang.String toString()
toString
in class java.lang.Object
public ProfileResolvers getResolvers()
getResolvers
in interface ProfilingRule
public void setResolvers(ProfileResolvers resolvers)
setResolvers
in interface ProfilingRule
resolvers
- The resolvers to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |