|
||||||||||
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.capabilities.impl.JetspeedCapabilities
public class JetspeedCapabilities
Jetspeed Capabilities
Field Summary | |
---|---|
static java.lang.String |
AGENT_XML
|
static java.lang.String |
DEFAULT_AGENT
|
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
repositoryPath |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
JetspeedCapabilities(java.lang.String repositoryPath,
java.util.Properties properties)
Deprecated. As of release 2.1, property-based class references replaced by container managed bean factory |
|
JetspeedCapabilities(java.lang.String repositoryPath,
java.lang.String clientBeanName,
java.lang.String mediaTypeBeanName,
java.lang.String mimeTypeBeanName,
java.lang.String capabilityBeanName)
|
Method Summary | |
---|---|
Capability |
createCapability(java.lang.String capabilityName)
Create a new capability in the system or return the existing one if already exists |
Client |
createClient(java.lang.String clientName)
Create a new client in the system or return the existing one if already exists |
MediaType |
createMediaType(java.lang.String mediaTypeName)
Create a new mediaType in the system or return the existing one if already exists |
MimeType |
createMimeType(java.lang.String mimeType)
Create a new mimetype in the system or return the existing one if already exists |
void |
deleteCapability(Capability capability)
delete existing capability from backend storage |
void |
deleteCapabilityMapCache()
Clears CapabilityMap cache TODO: Roger, why is this on the public interface. |
void |
deleteClient(Client client)
delete existing client from backend storage |
void |
deleteMediaType(MediaType mediaType)
delete existing media type from backend storage |
void |
deleteMimeType(MimeType mimeType)
delete existing mime type from backend storage |
Client |
findClient(java.lang.String userAgent)
Returns the client which matches the given useragent string. |
java.util.Iterator |
getCapabilities()
Obtain an iterator of all existing capabilities. |
Capability |
getCapability(java.lang.String capability)
Given a capability string, look up the corresponding capability object. |
java.lang.String |
getCapabilityBeanName()
Obtain the name of the CapabilityBean reference |
CapabilityMap |
getCapabilityMap(java.lang.String userAgent)
Creates a Capability Map with Capabilities, Mimetypes and mediaTypes for the given UserAgentPattern |
Client |
getClient(java.lang.String clientName)
Given a client name, look up the corresponding client object. |
java.lang.String |
getClientBeanName()
Obtain the name of the ClientBean reference |
java.util.Iterator |
getClients()
Obtain an iterator of all existing clients. |
MediaType |
getMediaType(java.lang.String mediaType)
Given a media type string, look up the corresponding media type object. |
java.lang.String |
getMediaTypeBeanName()
Obtain the name of the Media Type reference |
MediaType |
getMediaTypeForMimeType(java.lang.String mimeTypeName)
getMediaTypeForMimeType |
java.util.Iterator |
getMediaTypes()
Obtain an iterator of all existing media types. |
java.util.Collection |
getMediaTypesForMimeTypes(java.util.Iterator mimetypes)
Returns a collection of MediaTypes that matches the MimeTypes defined in the mimetype parameter |
MimeType |
getMimeType(java.lang.String mimeType)
Given a mime type string, look up the corresponding mime type object. |
java.lang.String |
getMimeTypeBeanName()
Obtain the name of the Mime Type reference |
java.util.Iterator |
getMimeTypes()
Obtain an iterator of all existing mime types. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setCapabilityBeanName(java.lang.String capabilityBeanName)
Set the name of the CapabilityBean reference - used exclusively in IoC |
void |
setClientBeanName(java.lang.String clientBeanName)
Set the name of the ClientBean reference - used exclusively in IoC |
void |
setMediaTypeBeanName(java.lang.String mediaTypeBeanName)
Set the name of the MediaType bean reference - used exclusively in IoC |
void |
setMimeTypeBeanName(java.lang.String mimeTypeBeanName)
Set the name of the MimeType bean reference - used exclusively in IoC |
void |
storeCapability(Capability capability)
Save capability to backend storage |
void |
storeClient(Client client)
Save client to backend storage |
void |
storeMediaType(MediaType mediaType)
Save media type to backend storage |
void |
storeMimeType(MimeType mimeType)
Save mime type to backend storage |
Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
init |
Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
---|
checkDaoConfig, closePersistenceBrokerIfNecessary, 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 java.lang.String DEFAULT_AGENT
public static final java.lang.String AGENT_XML
Constructor Detail |
---|
public JetspeedCapabilities(java.lang.String repositoryPath, java.lang.String clientBeanName, java.lang.String mediaTypeBeanName, java.lang.String mimeTypeBeanName, java.lang.String capabilityBeanName)
public JetspeedCapabilities(java.lang.String repositoryPath, java.util.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
public CapabilityMap getCapabilityMap(java.lang.String userAgent) throws UnableToBuildCapabilityMapException
Capabilities
getCapabilityMap
in interface Capabilities
userAgent
- Agent from the request
null
UnableToBuildCapabilityMapException
org.apache.jetspeed.services.capability.CapabilityService#getCapabilityMap(java.lang.String)
public Client findClient(java.lang.String userAgent)
findClient
in interface Capabilities
useragent
- the useragent to match
org.apache.jetspeed.capabilities.CapabilityService#findClient(java.lang.String)
public java.util.Iterator getClients()
Capabilities
getClients
in interface Capabilities
public java.util.Collection getMediaTypesForMimeTypes(java.util.Iterator mimetypes)
Capabilities
getMediaTypesForMimeTypes
in interface Capabilities
public void deleteCapabilityMapCache()
Capabilities
deleteCapabilityMapCache
in interface Capabilities
public MediaType getMediaType(java.lang.String mediaType)
Capabilities
getMediaType
in interface Capabilities
mediaType
- The string representation of a media type.
public MediaType getMediaTypeForMimeType(java.lang.String mimeTypeName)
getMediaTypeForMimeType
in interface Capabilities
mimeType
- to use for lookup
public java.util.Iterator getCapabilities()
getCapabilities
in interface Capabilities
Capability
public java.util.Iterator getMimeTypes()
getMimeTypes
in interface Capabilities
MimeType
public java.util.Iterator getMediaTypes()
getMediaTypes
in interface Capabilities
MediaType
public java.lang.String getMimeTypeBeanName()
Capabilities
getMimeTypeBeanName
in interface Capabilities
public void setMimeTypeBeanName(java.lang.String mimeTypeBeanName)
Capabilities
setMimeTypeBeanName
in interface Capabilities
mimeTypeBeanName
- The ref-id of the mimeType bean.public java.lang.String getClientBeanName()
Capabilities
getClientBeanName
in interface Capabilities
public void setClientBeanName(java.lang.String clientBeanName)
Capabilities
setClientBeanName
in interface Capabilities
clientBeanName
- The ref-id of the client bean.public java.lang.String getMediaTypeBeanName()
Capabilities
getMediaTypeBeanName
in interface Capabilities
public void setMediaTypeBeanName(java.lang.String mediaTypeBeanName)
Capabilities
setMediaTypeBeanName
in interface Capabilities
mediaTypeBeanName
- The ref-id of the mediaType bean.public java.lang.String getCapabilityBeanName()
Capabilities
getCapabilityBeanName
in interface Capabilities
public void setCapabilityBeanName(java.lang.String capabilityBeanName)
Capabilities
setCapabilityBeanName
in interface Capabilities
capabilityBeanName
- The ref-id of the capability bean.public MimeType createMimeType(java.lang.String mimeType) throws java.lang.ClassNotFoundException
Capabilities
createMimeType
in interface Capabilities
mimeType
- The string describing the mimeType
java.lang.ClassNotFoundException
public Capability createCapability(java.lang.String capabilityName) throws java.lang.ClassNotFoundException
Capabilities
createCapability
in interface Capabilities
capabilityName
- The string describing the capability
java.lang.ClassNotFoundException
public MediaType createMediaType(java.lang.String mediaTypeName) throws java.lang.ClassNotFoundException
Capabilities
createMediaType
in interface Capabilities
mediaTypeName
- The string describing the mediaType
java.lang.ClassNotFoundException
public Client createClient(java.lang.String clientName) throws java.lang.ClassNotFoundException
Capabilities
createClient
in interface Capabilities
clientName
- The string describing the client
java.lang.ClassNotFoundException
public MimeType getMimeType(java.lang.String mimeType)
Capabilities
getMimeType
in interface Capabilities
mimeType
- The string representation of a mime type.
public Client getClient(java.lang.String clientName)
Capabilities
getClient
in interface Capabilities
clientName
- The name of the client.
public Capability getCapability(java.lang.String capability)
Capabilities
getCapability
in interface Capabilities
capability
- The string representation of a capability.
public void storeMediaType(MediaType mediaType) throws CapabilitiesException
Capabilities
storeMediaType
in interface Capabilities
mediaType
- valid mediatype object
CapabilitiesException
public void deleteMediaType(MediaType mediaType) throws CapabilitiesException
Capabilities
deleteMediaType
in interface Capabilities
mediaType
- valid mediatype object
CapabilitiesException
public void storeCapability(Capability capability) throws CapabilitiesException
Capabilities
storeCapability
in interface Capabilities
capability
- valid capability object
CapabilitiesException
public void deleteCapability(Capability capability) throws CapabilitiesException
Capabilities
deleteCapability
in interface Capabilities
capability
- valid capability object
CapabilitiesException
public void storeMimeType(MimeType mimeType) throws CapabilitiesException
Capabilities
storeMimeType
in interface Capabilities
mimeType
- valid mimetype object
CapabilitiesException
public void deleteMimeType(MimeType mimeType) throws CapabilitiesException
Capabilities
deleteMimeType
in interface Capabilities
mimeType
- valid mimetype object
CapabilitiesException
public void storeClient(Client client) throws CapabilitiesException
Capabilities
storeClient
in interface Capabilities
client
- valid Client object
CapabilitiesException
public void deleteClient(Client client) throws CapabilitiesException
Capabilities
deleteClient
in interface Capabilities
client
- valid client object
CapabilitiesException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |