org.apache.jetspeed.capabilities.impl
Class JetspeedCapabilities
java.lang.Object
org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.capabilities.impl.JetspeedCapabilities
- All Implemented Interfaces:
- org.apache.jetspeed.capabilities.Capabilities
- public class JetspeedCapabilities
- extends org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
- implements org.apache.jetspeed.capabilities.Capabilities
Jetspeed Capabilities
- Version:
- $Id: JetspeedCapabilities.java 202439 2005-06-29 21:46:22Z taylor $
- Author:
- David Sean Taylor, Roger Ruttimann
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
repositoryPath |
Fields inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
logger |
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 |
originalAlias
private String originalAlias
log
private static final org.apache.commons.logging.Log log
DEFAULT_AGENT
public static final String DEFAULT_AGENT
- See Also:
- Constant Field Values
AGENT_XML
public static final String AGENT_XML
- See Also:
- Constant Field Values
capabilityMapCache
Hashtable capabilityMapCache
clients
private Collection clients
clientClass
private Class clientClass
capabilityClass
private Class capabilityClass
mimeTypeClass
private Class mimeTypeClass
mediaTypeClass
private Class mediaTypeClass
JetspeedCapabilities
public JetspeedCapabilities(String repositoryPath)
JetspeedCapabilities
public JetspeedCapabilities(String repositoryPath,
Properties properties)
- Create a JetspeedProfiler with properties. Expected properties are:
defaultRule = the default profiling rule
anonymousUser = the name of the anonymous user
persistenceStoreName = The name of the persistence persistenceStore component to connect to
services.profiler.locator.impl = the pluggable Profile Locator impl
services.profiler.principalRule.impl = the pluggable Principal Rule impl
services.profiler.profilingRule.impl = the pluggable Profiling Rule impl
- Parameters:
properties
- Properties for this component described above
initModelClasses
private void initModelClasses(Properties properties)
getCapabilityMap
public org.apache.jetspeed.capabilities.CapabilityMap getCapabilityMap(String userAgent)
throws org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException
- Specified by:
getCapabilityMap
in interface org.apache.jetspeed.capabilities.Capabilities
- Parameters:
userAgent
- Agent from the request
- Throws:
org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException
- See Also:
org.apache.jetspeed.services.capability.CapabilityService#getCapabilityMap(java.lang.String)
findClient
public org.apache.jetspeed.capabilities.Client findClient(String userAgent)
- Returns the client which matches the given useragent string.
- Specified by:
findClient
in interface org.apache.jetspeed.capabilities.Capabilities
- Returns:
- the found client or null if the user-agent does not match any
defined client
- See Also:
org.apache.jetspeed.capabilities.CapabilityService#findClient(java.lang.String)
getClients
public Iterator getClients()
- Specified by:
getClients
in interface org.apache.jetspeed.capabilities.Capabilities
getMediaTypesForMimeTypes
public Collection getMediaTypesForMimeTypes(Iterator mimetypes)
- Specified by:
getMediaTypesForMimeTypes
in interface org.apache.jetspeed.capabilities.Capabilities
deleteCapabilityMapCache
public void deleteCapabilityMapCache()
- Specified by:
deleteCapabilityMapCache
in interface org.apache.jetspeed.capabilities.Capabilities
getMediaType
public org.apache.jetspeed.capabilities.MediaType getMediaType(String mediaType)
- Specified by:
getMediaType
in interface org.apache.jetspeed.capabilities.Capabilities
getMediaTypeForMimeType
public org.apache.jetspeed.capabilities.MediaType getMediaTypeForMimeType(String mimeTypeName)
- getMediaTypeForMimeType
- Specified by:
getMediaTypeForMimeType
in interface org.apache.jetspeed.capabilities.Capabilities
- Returns:
- MediaTypeEntry that matches the lookup in the MEDIATYPE_TO_MIMETYPE table
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.