|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.profiler.impl.JetspeedProfilerImpl
JetspeedTransactionalProfiler
Field Summary | |
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 Class |
locatorClass
The default locator class implementation |
protected static org.apache.commons.logging.Log |
log
Commons logging |
private Class |
principalRuleClass
The default principalRule association class implementation |
private Map |
principalRules
|
private Class |
profilingRuleClass
The base (abstract) profilingRule class implementation |
private Map |
rulesPerPrincipal
|
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
repositoryPath |
Fields inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
logger |
Constructor Summary | |
JetspeedProfilerImpl(String repositoryPath)
|
|
JetspeedProfilerImpl(String repositoryPath,
String defaultRule)
Create a JetspeedProfiler with properties. |
|
JetspeedProfilerImpl(String repositoryPath,
String defaultRule,
Properties properties)
|
Method Summary | |
org.apache.jetspeed.profiler.ProfileLocator |
createLocator(org.apache.jetspeed.request.RequestContext context)
|
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)
|
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)
|
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 |
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 |
afterPropertiesSet, closePersistenceBrokerIfNecessary, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, initDao, setJcdAlias, setPersistenceBrokerTemplate |
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 Class locatorClass
private Class principalRuleClass
private Class profilingRuleClass
private String defaultRule
private Map principalRules
private Map rulesPerPrincipal
Constructor Detail |
public JetspeedProfilerImpl(String repositoryPath)
public JetspeedProfilerImpl(String repositoryPath, String defaultRule) throws ClassNotFoundException
ClassNotFoundException
- if any the implementation classes defined within the properties
argument could not be
found.public JetspeedProfilerImpl(String repositoryPath, String defaultRule, Properties properties) throws ClassNotFoundException
Method Detail |
public void setDefaultRule(String defaultRule)
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.ProfileLocator createLocator(org.apache.jetspeed.request.RequestContext context)
createLocator
in interface org.apache.jetspeed.profiler.Profiler
public org.apache.jetspeed.profiler.rules.ProfilingRule getRuleForPrincipal(Principal principal, String locatorName)
getRuleForPrincipal
in interface org.apache.jetspeed.profiler.Profiler
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |