public interface ProfilingRule extends Serializable
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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 resolver
|
ProfileResolvers |
getResolvers()
Returns the mapping of resolver names to criterion resolvers for building profiling rules
|
Collection<RuleCriterion> |
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 |
setResolvers(ProfileResolvers resolvers)
Sets the mapping of resolver names to criterion resolvers for building profiling rules
|
void |
setTitle(String title)
Set the title used for with the rule for displaying descriptive text.
|
static final String STANDARD
static final String REQUEST_PARAMETER
static final String REQUEST_ATTRIBUTE
static final String SESSION_ATTRIBUTE
static final String USER_ATTRIBUTE
static final String CCPP_PROPERTY
static final String STANDARD_PAGE
static final String STANDARD_GROUP_ROLE_USER
static final String STANDARD_USER
static final String STANDARD_GROUP
static final String STANDARD_ROLE
static final String STANDARD_MEDIATYPE
static final String STANDARD_COUNTRY
static final String STANDARD_LANGUAGE
static final String STANDARD_ROLE_FALLBACK
RuleCriterionResolver getResolver(String name)
name
- The name of the criterionProfileLocator apply(RequestContext context, Profiler service)
context
- the request context holding runtime request parameters to be normalizedservice
- the profiler service to be called backCollection<RuleCriterion> getRuleCriteria()
String getId()
void setId(String id)
id
- The unique identifierString getTitle()
void setTitle(String title)
title
- The title of this rule.String getClassname()
void setClassname(String classname)
classname
- The classname of this instance.ProfileResolvers getResolvers()
void setResolvers(ProfileResolvers resolvers)
resolvers
- the mapping of resolver names to criterion resolversCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.