|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.profiler.impl.JetspeedProfilerImpl
public class JetspeedProfilerImpl
JetspeedTransactionalProfiler
Field Summary | |
---|---|
private org.springframework.beans.factory.BeanFactory |
beanFactory
added support for bean factory to create profile rules |
static String |
DEFAULT_RULE
The default rule. |
static Principal |
DEFAULT_RULE_PRINCIPAL
This is the princapl that is used if there are no principal to rule associations for the current principal |
private String |
defaultRule
The configured default rule for this portal |
private String |
locatorBean
The default locator class implementation |
protected static org.apache.commons.logging.Log |
log
Commons logging |
private String |
principalRuleBean
|
private Map |
principalRules
|
private Class |
profilingRuleClass
The base (abstract) profilingRule class implementation |
private String |
profilingRuleFallbackBean
The base (abstract) profilingRule class implementation |
private String |
profilingRuleStandardBean
The base (abstract) profilingRule class implementation |
private Class |
prRuleClass
The default principalRule association class implementation |
private org.apache.jetspeed.profiler.rules.ProfileResolvers |
resolvers
|
private String |
ruleCriterionBean
the default criterion bean name |
private Map |
rulesPerPrincipal
|
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
repositoryPath |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
JetspeedProfilerImpl(String repositoryPath,
org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers)
|
|
JetspeedProfilerImpl(String repositoryPath,
String defaultRule,
org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers)
Create a JetspeedProfiler with properties. |
|
JetspeedProfilerImpl(String repositoryPath,
String defaultRule,
org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers,
Map ruleConstructors,
String ruleCriterionBean)
support passing of rule creation classes |
|
JetspeedProfilerImpl(String repositoryPath,
String defaultRule,
Properties properties,
org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers)
Deprecated. As of release 2.1, property-based class references replaced by container managed bean factory |
Method Summary | |
---|---|
org.apache.jetspeed.profiler.ProfileLocator |
createLocator(org.apache.jetspeed.request.RequestContext context)
|
org.apache.jetspeed.profiler.rules.PrincipalRule |
createPrincipalRule()
|
org.apache.jetspeed.profiler.rules.ProfilingRule |
createProfilingRule(boolean standard)
|
org.apache.jetspeed.profiler.rules.RuleCriterion |
createRuleCriterion()
|
void |
deletePrincipalRule(org.apache.jetspeed.profiler.rules.PrincipalRule rule)
|
void |
deleteProfilingRule(org.apache.jetspeed.profiler.rules.ProfilingRule rule)
|
org.apache.jetspeed.profiler.ProfileLocator |
getDefaultProfile(org.apache.jetspeed.request.RequestContext context,
String locatorName)
|
Map |
getDefaultProfileLocators(org.apache.jetspeed.request.RequestContext context)
|
org.apache.jetspeed.profiler.rules.ProfilingRule |
getDefaultRule()
|
String[] |
getLocatorNamesForPrincipal(Principal principal)
|
private Class |
getPrincipalRuleClass()
Internal method to ensure we have a valid principalRule class for queries |
org.apache.jetspeed.profiler.ProfileLocator |
getProfile(org.apache.jetspeed.request.RequestContext context,
org.apache.jetspeed.profiler.rules.ProfilingRule rule)
|
org.apache.jetspeed.profiler.ProfileLocator |
getProfile(org.apache.jetspeed.request.RequestContext context,
String locatorName)
|
Map |
getProfileLocators(org.apache.jetspeed.request.RequestContext context,
Principal principal)
|
org.apache.jetspeed.profiler.rules.ProfilingRule |
getRule(String id)
|
org.apache.jetspeed.profiler.rules.ProfilingRule |
getRuleForPrincipal(Principal principal,
String locatorName)
|
Collection |
getRules()
|
Collection |
getRulesForPrincipal(Principal principal)
|
private void |
initModelClasses(Properties properties)
Deprecated. As of release 2.1, property-based class references replaced by container managed bean factory |
private void |
initRuleClasses(Map beans)
added logic to get the settings for creating the various rule related instances |
private org.apache.jetspeed.profiler.rules.PrincipalRule |
lookupPrincipalRule(String principal,
String locatorName)
Helper function to lookup principal rule associations by principal |
private String |
makePrincipalRuleKey(String principal,
String locator)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setDefaultRule(String defaultRule)
|
void |
setRuleForPrincipal(Principal principal,
org.apache.jetspeed.profiler.rules.ProfilingRule rule,
String locatorName)
|
void |
storePrincipalRule(org.apache.jetspeed.profiler.rules.PrincipalRule rule)
|
void |
storeProfilingRule(org.apache.jetspeed.profiler.rules.ProfilingRule rule)
|
Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
init |
Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
---|
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_RULE
protected static final org.apache.commons.logging.Log log
public static final Principal DEFAULT_RULE_PRINCIPAL
private String locatorBean
private Class prRuleClass
private String principalRuleBean
private String profilingRuleStandardBean
private String profilingRuleFallbackBean
private Class profilingRuleClass
private String defaultRule
private Map principalRules
private Map rulesPerPrincipal
private org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers
private String ruleCriterionBean
private org.springframework.beans.factory.BeanFactory beanFactory
Constructor Detail |
---|
public JetspeedProfilerImpl(String repositoryPath, org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers)
public JetspeedProfilerImpl(String repositoryPath, String defaultRule, org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers) throws ClassNotFoundException
properties
- Properties for this component described above
ClassNotFoundException
- if any the implementation classes defined within the
properties
argument could not be found.public JetspeedProfilerImpl(String repositoryPath, String defaultRule, Properties properties, org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers) throws ClassNotFoundException
ClassNotFoundException
public JetspeedProfilerImpl(String repositoryPath, String defaultRule, org.apache.jetspeed.profiler.rules.ProfileResolvers resolvers, Map ruleConstructors, String ruleCriterionBean) throws ClassNotFoundException
ClassNotFoundException
Method Detail |
---|
public void setDefaultRule(String defaultRule)
setDefaultRule
in interface org.apache.jetspeed.profiler.Profiler
defaultRule
- The default rule to set.private void initModelClasses(Properties properties) throws ClassNotFoundException
ClassNotFoundException
public org.apache.jetspeed.profiler.ProfileLocator getProfile(org.apache.jetspeed.request.RequestContext context, String locatorName) throws org.apache.jetspeed.profiler.ProfilerException
getProfile
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public org.apache.jetspeed.profiler.ProfileLocator getDefaultProfile(org.apache.jetspeed.request.RequestContext context, String locatorName) throws org.apache.jetspeed.profiler.ProfilerException
getDefaultProfile
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public org.apache.jetspeed.profiler.ProfileLocator getProfile(org.apache.jetspeed.request.RequestContext context, org.apache.jetspeed.profiler.rules.ProfilingRule rule) throws org.apache.jetspeed.profiler.ProfilerException
getProfile
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public org.apache.jetspeed.profiler.rules.ProfilingRule getRuleForPrincipal(Principal principal, String locatorName)
getRuleForPrincipal
in interface org.apache.jetspeed.profiler.Profiler
private Class getPrincipalRuleClass()
public void setRuleForPrincipal(Principal principal, org.apache.jetspeed.profiler.rules.ProfilingRule rule, String locatorName)
setRuleForPrincipal
in interface org.apache.jetspeed.profiler.Profiler
private String makePrincipalRuleKey(String principal, String locator)
private org.apache.jetspeed.profiler.rules.PrincipalRule lookupPrincipalRule(String principal, String locatorName)
principal
- The string representation of the principal name.
public org.apache.jetspeed.profiler.rules.ProfilingRule getDefaultRule()
getDefaultRule
in interface org.apache.jetspeed.profiler.Profiler
public Collection getRules()
getRules
in interface org.apache.jetspeed.profiler.Profiler
public org.apache.jetspeed.profiler.rules.ProfilingRule getRule(String id)
getRule
in interface org.apache.jetspeed.profiler.Profiler
public String[] getLocatorNamesForPrincipal(Principal principal)
getLocatorNamesForPrincipal
in interface org.apache.jetspeed.profiler.Profiler
public Collection getRulesForPrincipal(Principal principal)
getRulesForPrincipal
in interface org.apache.jetspeed.profiler.Profiler
public Map getProfileLocators(org.apache.jetspeed.request.RequestContext context, Principal principal) throws org.apache.jetspeed.profiler.ProfilerException
getProfileLocators
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public Map getDefaultProfileLocators(org.apache.jetspeed.request.RequestContext context) throws org.apache.jetspeed.profiler.ProfilerException
getDefaultProfileLocators
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public void storeProfilingRule(org.apache.jetspeed.profiler.rules.ProfilingRule rule) throws org.apache.jetspeed.profiler.ProfilerException
storeProfilingRule
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public void deleteProfilingRule(org.apache.jetspeed.profiler.rules.ProfilingRule rule) throws org.apache.jetspeed.profiler.ProfilerException
deleteProfilingRule
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public void storePrincipalRule(org.apache.jetspeed.profiler.rules.PrincipalRule rule) throws org.apache.jetspeed.profiler.ProfilerException
storePrincipalRule
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public void deletePrincipalRule(org.apache.jetspeed.profiler.rules.PrincipalRule rule) throws org.apache.jetspeed.profiler.ProfilerException
deletePrincipalRule
in interface org.apache.jetspeed.profiler.Profiler
org.apache.jetspeed.profiler.ProfilerException
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
private void initRuleClasses(Map beans) throws ClassNotFoundException
classes
-
ClassNotFoundException
public org.apache.jetspeed.profiler.rules.ProfilingRule createProfilingRule(boolean standard) throws ClassNotFoundException
createProfilingRule
in interface org.apache.jetspeed.profiler.Profiler
ClassNotFoundException
public org.apache.jetspeed.profiler.ProfileLocator createLocator(org.apache.jetspeed.request.RequestContext context)
createLocator
in interface org.apache.jetspeed.profiler.Profiler
public org.apache.jetspeed.profiler.rules.PrincipalRule createPrincipalRule() throws ClassNotFoundException
createPrincipalRule
in interface org.apache.jetspeed.profiler.Profiler
ClassNotFoundException
public org.apache.jetspeed.profiler.rules.RuleCriterion createRuleCriterion() throws ClassNotFoundException
createRuleCriterion
in interface org.apache.jetspeed.profiler.Profiler
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |