|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport org.apache.jetspeed.capabilities.impl.JetspeedCapabilities
public class JetspeedCapabilities
Jetspeed Capabilities
Field Summary | |
---|---|
static String |
AGENT_XML
|
private org.springframework.beans.factory.BeanFactory |
beanFactory
added support for bean factory to create profile rules |
private String |
capabilityBeanName
|
private Class |
capabilityClass
|
(package private) Hashtable |
capabilityMapCache
|
private String |
clientBeanName
named bean references |
private Class |
clientClass
|
private Collection |
clients
|
static String |
DEFAULT_AGENT
|
private static org.apache.commons.logging.Log |
log
|
private String |
mediaTypeBeanName
|
private Class |
mediaTypeClass
|
private String |
mimeTypeBeanName
|
private Class |
mimeTypeClass
|
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
repositoryPath |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
JetspeedCapabilities(String repositoryPath,
Properties properties)
Deprecated. As of release 2.1, property-based class references replaced by container managed bean factory |
|
JetspeedCapabilities(String repositoryPath,
String clientBeanName,
String mediaTypeBeanName,
String mimeTypeBeanName,
String capabilityBeanName)
|
Method Summary | |
---|---|
org.apache.jetspeed.capabilities.Capability |
createCapability(String capabilityName)
|
org.apache.jetspeed.capabilities.Client |
createClient(String clientName)
|
org.apache.jetspeed.capabilities.MediaType |
createMediaType(String mediaTypeName)
|
org.apache.jetspeed.capabilities.MimeType |
createMimeType(String mimeType)
|
void |
deleteCapability(org.apache.jetspeed.capabilities.Capability capability)
|
void |
deleteCapabilityMapCache()
|
void |
deleteClient(org.apache.jetspeed.capabilities.Client client)
|
void |
deleteMediaType(org.apache.jetspeed.capabilities.MediaType mediaType)
|
void |
deleteMimeType(org.apache.jetspeed.capabilities.MimeType mimeType)
|
org.apache.jetspeed.capabilities.Client |
findClient(String userAgent)
Returns the client which matches the given useragent string. |
Iterator |
getCapabilities()
Obtain an iterator of all existing capabilities. |
org.apache.jetspeed.capabilities.Capability |
getCapability(String capability)
|
String |
getCapabilityBeanName()
|
private Class |
getCapabilityClass()
|
org.apache.jetspeed.capabilities.CapabilityMap |
getCapabilityMap(String userAgent)
|
org.apache.jetspeed.capabilities.Client |
getClient(String clientName)
|
String |
getClientBeanName()
|
private Class |
getClientClass()
|
Iterator |
getClients()
|
org.apache.jetspeed.capabilities.MediaType |
getMediaType(String mediaType)
|
String |
getMediaTypeBeanName()
|
private Class |
getMediaTypeClass()
|
org.apache.jetspeed.capabilities.MediaType |
getMediaTypeForMimeType(String mimeTypeName)
getMediaTypeForMimeType |
Iterator |
getMediaTypes()
Obtain an iterator of all existing media types. |
Collection |
getMediaTypesForMimeTypes(Iterator mimetypes)
|
org.apache.jetspeed.capabilities.MimeType |
getMimeType(String mimeType)
|
String |
getMimeTypeBeanName()
|
private Class |
getMimeTypeClass()
|
Iterator |
getMimeTypes()
Obtain an iterator of all existing mime types. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setCapabilityBeanName(String capabilityBeanName)
|
void |
setClientBeanName(String clientBeanName)
|
void |
setMediaTypeBeanName(String mediaTypeBeanName)
|
void |
setMimeTypeBeanName(String mimeTypeBeanName)
|
void |
storeCapability(org.apache.jetspeed.capabilities.Capability capability)
|
void |
storeClient(org.apache.jetspeed.capabilities.Client client)
|
void |
storeMediaType(org.apache.jetspeed.capabilities.MediaType mediaType)
|
void |
storeMimeType(org.apache.jetspeed.capabilities.MimeType mimeType)
|
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 |
---|
private static final org.apache.commons.logging.Log log
public static final String DEFAULT_AGENT
public static final String AGENT_XML
Hashtable capabilityMapCache
private Collection clients
private org.springframework.beans.factory.BeanFactory beanFactory
private String clientBeanName
private String capabilityBeanName
private String mimeTypeBeanName
private String mediaTypeBeanName
private Class clientClass
private Class capabilityClass
private Class mimeTypeClass
private Class mediaTypeClass
Constructor Detail |
---|
public JetspeedCapabilities(String repositoryPath, String clientBeanName, String mediaTypeBeanName, String mimeTypeBeanName, String capabilityBeanName)
public JetspeedCapabilities(String repositoryPath, Properties properties)
persistenceStore
- The persistence persistenceStoreproperties
- Properties for this component described aboveMethod Detail |
---|
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 Class getClientClass() throws ClassNotFoundException
ClassNotFoundException
private Class getMimeTypeClass() throws ClassNotFoundException
ClassNotFoundException
private Class getCapabilityClass() throws ClassNotFoundException
ClassNotFoundException
private Class getMediaTypeClass() throws ClassNotFoundException
ClassNotFoundException
public org.apache.jetspeed.capabilities.CapabilityMap getCapabilityMap(String userAgent) throws org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException
getCapabilityMap
in interface org.apache.jetspeed.capabilities.Capabilities
userAgent
- Agent from the request
org.apache.jetspeed.capabilities.UnableToBuildCapabilityMapException
org.apache.jetspeed.services.capability.CapabilityService#getCapabilityMap(java.lang.String)
public org.apache.jetspeed.capabilities.Client findClient(String userAgent)
findClient
in interface org.apache.jetspeed.capabilities.Capabilities
useragent
- the useragent to match
org.apache.jetspeed.capabilities.CapabilityService#findClient(java.lang.String)
public Iterator getClients()
getClients
in interface org.apache.jetspeed.capabilities.Capabilities
public Collection getMediaTypesForMimeTypes(Iterator mimetypes)
getMediaTypesForMimeTypes
in interface org.apache.jetspeed.capabilities.Capabilities
public void deleteCapabilityMapCache()
deleteCapabilityMapCache
in interface org.apache.jetspeed.capabilities.Capabilities
public org.apache.jetspeed.capabilities.MediaType getMediaType(String mediaType)
getMediaType
in interface org.apache.jetspeed.capabilities.Capabilities
public org.apache.jetspeed.capabilities.MediaType getMediaTypeForMimeType(String mimeTypeName)
getMediaTypeForMimeType
in interface org.apache.jetspeed.capabilities.Capabilities
mimeType
- to use for lookup
public Iterator getCapabilities()
getCapabilities
in interface org.apache.jetspeed.capabilities.Capabilities
Capability
public Iterator getMimeTypes()
getMimeTypes
in interface org.apache.jetspeed.capabilities.Capabilities
MimeType
public Iterator getMediaTypes()
getMediaTypes
in interface org.apache.jetspeed.capabilities.Capabilities
MediaType
public String getMimeTypeBeanName()
getMimeTypeBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public void setMimeTypeBeanName(String mimeTypeBeanName)
setMimeTypeBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public String getClientBeanName()
getClientBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public void setClientBeanName(String clientBeanName)
setClientBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public String getMediaTypeBeanName()
getMediaTypeBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public void setMediaTypeBeanName(String mediaTypeBeanName)
setMediaTypeBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public String getCapabilityBeanName()
getCapabilityBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public void setCapabilityBeanName(String capabilityBeanName)
setCapabilityBeanName
in interface org.apache.jetspeed.capabilities.Capabilities
public org.apache.jetspeed.capabilities.MimeType createMimeType(String mimeType) throws ClassNotFoundException
createMimeType
in interface org.apache.jetspeed.capabilities.Capabilities
ClassNotFoundException
public org.apache.jetspeed.capabilities.Capability createCapability(String capabilityName) throws ClassNotFoundException
createCapability
in interface org.apache.jetspeed.capabilities.Capabilities
ClassNotFoundException
public org.apache.jetspeed.capabilities.MediaType createMediaType(String mediaTypeName) throws ClassNotFoundException
createMediaType
in interface org.apache.jetspeed.capabilities.Capabilities
ClassNotFoundException
public org.apache.jetspeed.capabilities.Client createClient(String clientName) throws ClassNotFoundException
createClient
in interface org.apache.jetspeed.capabilities.Capabilities
ClassNotFoundException
public org.apache.jetspeed.capabilities.MimeType getMimeType(String mimeType)
getMimeType
in interface org.apache.jetspeed.capabilities.Capabilities
public org.apache.jetspeed.capabilities.Client getClient(String clientName)
getClient
in interface org.apache.jetspeed.capabilities.Capabilities
public org.apache.jetspeed.capabilities.Capability getCapability(String capability)
getCapability
in interface org.apache.jetspeed.capabilities.Capabilities
public void storeMediaType(org.apache.jetspeed.capabilities.MediaType mediaType) throws org.apache.jetspeed.capabilities.CapabilitiesException
storeMediaType
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void deleteMediaType(org.apache.jetspeed.capabilities.MediaType mediaType) throws org.apache.jetspeed.capabilities.CapabilitiesException
deleteMediaType
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void storeCapability(org.apache.jetspeed.capabilities.Capability capability) throws org.apache.jetspeed.capabilities.CapabilitiesException
storeCapability
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void deleteCapability(org.apache.jetspeed.capabilities.Capability capability) throws org.apache.jetspeed.capabilities.CapabilitiesException
deleteCapability
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void storeMimeType(org.apache.jetspeed.capabilities.MimeType mimeType) throws org.apache.jetspeed.capabilities.CapabilitiesException
storeMimeType
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void deleteMimeType(org.apache.jetspeed.capabilities.MimeType mimeType) throws org.apache.jetspeed.capabilities.CapabilitiesException
deleteMimeType
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void storeClient(org.apache.jetspeed.capabilities.Client client) throws org.apache.jetspeed.capabilities.CapabilitiesException
storeClient
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
public void deleteClient(org.apache.jetspeed.capabilities.Client client) throws org.apache.jetspeed.capabilities.CapabilitiesException
deleteClient
in interface org.apache.jetspeed.capabilities.Capabilities
org.apache.jetspeed.capabilities.CapabilitiesException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |