|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProfilingRule
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.
Field Summary | |
---|---|
static java.lang.String |
CCPP_PROPERTY
Composite Capabilities and Preference Profile as defined http://www.w3.org/TR/NOTE-CCPP/ |
static java.lang.String |
REQUEST_ATTRIBUTE
Request attributes as defined in the Portlet spec 1.0 PLT.11.1.3 |
static java.lang.String |
REQUEST_PARAMETER
Request parameters as defined in the Portlet spec 1.0 PLT.11.1.1 |
static java.lang.String |
SESSION_ATTRIBUTE
Session Attribute |
static java.lang.String |
STANDARD
Standard rule criteria used by Jetspeed traditionally such as media type, language, username, role |
static java.lang.String |
STANDARD_COUNTRY
|
static java.lang.String |
STANDARD_GROUP
|
static java.lang.String |
STANDARD_GROUP_ROLE_USER
|
static java.lang.String |
STANDARD_LANGUAGE
|
static java.lang.String |
STANDARD_MEDIATYPE
|
static java.lang.String |
STANDARD_PAGE
Standard properties used traditionally in Jetspeed |
static java.lang.String |
STANDARD_ROLE
|
static java.lang.String |
STANDARD_ROLE_FALLBACK
|
static java.lang.String |
STANDARD_USER
|
static java.lang.String |
USER_ATTRIBUTE
User attributes as defined in the Portlet spec 1.0 PLT.17 |
Method Summary | |
---|---|
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. |
java.lang.String |
getId()
Gets the unique identifier for this rule |
RuleCriterionResolver |
getResolver(java.lang.String name)
Given a criterion name, look up a value resolver |
ProfileResolvers |
getResolvers()
|
java.util.Collection<RuleCriterion> |
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. |
Field Detail |
---|
static final java.lang.String STANDARD
static final java.lang.String REQUEST_PARAMETER
static final java.lang.String REQUEST_ATTRIBUTE
static final java.lang.String SESSION_ATTRIBUTE
static final java.lang.String USER_ATTRIBUTE
static final java.lang.String CCPP_PROPERTY
static final java.lang.String STANDARD_PAGE
static final java.lang.String STANDARD_GROUP_ROLE_USER
static final java.lang.String STANDARD_USER
static final java.lang.String STANDARD_GROUP
static final java.lang.String STANDARD_ROLE
static final java.lang.String STANDARD_MEDIATYPE
static final java.lang.String STANDARD_COUNTRY
static final java.lang.String STANDARD_LANGUAGE
static final java.lang.String STANDARD_ROLE_FALLBACK
Method Detail |
---|
RuleCriterionResolver getResolver(java.lang.String name)
name
- The name of the criterion
ProfileLocator apply(RequestContext context, Profiler service)
context
- service
-
java.util.Collection<RuleCriterion> getRuleCriteria()
java.lang.String getId()
void setId(java.lang.String id)
id
- The unique identifierjava.lang.String getTitle()
void setTitle(java.lang.String title)
title
- The title of this rule.java.lang.String getClassname()
void setClassname(java.lang.String classname)
classname
- The classname of this instance.ProfileResolvers getResolvers()
void setResolvers(ProfileResolvers resolvers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |