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