|
||||||||||
| 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 above| Method Detail |
|---|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansException
public CapabilityMap getCapabilityMap(java.lang.String userAgent)
throws UnableToBuildCapabilityMapException
Capabilities
getCapabilityMap in interface CapabilitiesuserAgent - Agent from the request
null
UnableToBuildCapabilityMapExceptionorg.apache.jetspeed.services.capability.CapabilityService#getCapabilityMap(java.lang.String)public Client findClient(java.lang.String userAgent)
findClient in interface Capabilitiesuseragent - the useragent to match
org.apache.jetspeed.capabilities.CapabilityService#findClient(java.lang.String)public java.util.Iterator getClients()
Capabilities
getClients in interface Capabilitiespublic java.util.Collection getMediaTypesForMimeTypes(java.util.Iterator mimetypes)
Capabilities
getMediaTypesForMimeTypes in interface Capabilitiespublic void deleteCapabilityMapCache()
Capabilities
deleteCapabilityMapCache in interface Capabilitiespublic MediaType getMediaType(java.lang.String mediaType)
Capabilities
getMediaType in interface CapabilitiesmediaType - The string representation of a media type.
public MediaType getMediaTypeForMimeType(java.lang.String mimeTypeName)
getMediaTypeForMimeType in interface CapabilitiesmimeType - to use for lookup
public java.util.Iterator getCapabilities()
getCapabilities in interface CapabilitiesCapabilitypublic java.util.Iterator getMimeTypes()
getMimeTypes in interface CapabilitiesMimeTypepublic java.util.Iterator getMediaTypes()
getMediaTypes in interface CapabilitiesMediaTypepublic java.lang.String getMimeTypeBeanName()
Capabilities
getMimeTypeBeanName in interface Capabilitiespublic void setMimeTypeBeanName(java.lang.String mimeTypeBeanName)
Capabilities
setMimeTypeBeanName in interface CapabilitiesmimeTypeBeanName - The ref-id of the mimeType bean.public java.lang.String getClientBeanName()
Capabilities
getClientBeanName in interface Capabilitiespublic void setClientBeanName(java.lang.String clientBeanName)
Capabilities
setClientBeanName in interface CapabilitiesclientBeanName - The ref-id of the client bean.public java.lang.String getMediaTypeBeanName()
Capabilities
getMediaTypeBeanName in interface Capabilitiespublic void setMediaTypeBeanName(java.lang.String mediaTypeBeanName)
Capabilities
setMediaTypeBeanName in interface CapabilitiesmediaTypeBeanName - The ref-id of the mediaType bean.public java.lang.String getCapabilityBeanName()
Capabilities
getCapabilityBeanName in interface Capabilitiespublic void setCapabilityBeanName(java.lang.String capabilityBeanName)
Capabilities
setCapabilityBeanName in interface CapabilitiescapabilityBeanName - The ref-id of the capability bean.
public MimeType createMimeType(java.lang.String mimeType)
throws java.lang.ClassNotFoundException
Capabilities
createMimeType in interface CapabilitiesmimeType - The string describing the mimeType
java.lang.ClassNotFoundException
public Capability createCapability(java.lang.String capabilityName)
throws java.lang.ClassNotFoundException
Capabilities
createCapability in interface CapabilitiescapabilityName - The string describing the capability
java.lang.ClassNotFoundException
public MediaType createMediaType(java.lang.String mediaTypeName)
throws java.lang.ClassNotFoundException
Capabilities
createMediaType in interface CapabilitiesmediaTypeName - The string describing the mediaType
java.lang.ClassNotFoundException
public Client createClient(java.lang.String clientName)
throws java.lang.ClassNotFoundException
Capabilities
createClient in interface CapabilitiesclientName - The string describing the client
java.lang.ClassNotFoundExceptionpublic MimeType getMimeType(java.lang.String mimeType)
Capabilities
getMimeType in interface CapabilitiesmimeType - The string representation of a mime type.
public Client getClient(java.lang.String clientName)
Capabilities
getClient in interface CapabilitiesclientName - The name of the client.
public Capability getCapability(java.lang.String capability)
Capabilities
getCapability in interface Capabilitiescapability - The string representation of a capability.
public void storeMediaType(MediaType mediaType)
throws CapabilitiesException
Capabilities
storeMediaType in interface CapabilitiesmediaType - valid mediatype object
CapabilitiesException
public void deleteMediaType(MediaType mediaType)
throws CapabilitiesException
Capabilities
deleteMediaType in interface CapabilitiesmediaType - valid mediatype object
CapabilitiesException
public void storeCapability(Capability capability)
throws CapabilitiesException
Capabilities
storeCapability in interface Capabilitiescapability - valid capability object
CapabilitiesException
public void deleteCapability(Capability capability)
throws CapabilitiesException
Capabilities
deleteCapability in interface Capabilitiescapability - valid capability object
CapabilitiesException
public void storeMimeType(MimeType mimeType)
throws CapabilitiesException
Capabilities
storeMimeType in interface CapabilitiesmimeType - valid mimetype object
CapabilitiesException
public void deleteMimeType(MimeType mimeType)
throws CapabilitiesException
Capabilities
deleteMimeType in interface CapabilitiesmimeType - valid mimetype object
CapabilitiesException
public void storeClient(Client client)
throws CapabilitiesException
Capabilities
storeClient in interface Capabilitiesclient - valid Client object
CapabilitiesException
public void deleteClient(Client client)
throws CapabilitiesException
Capabilities
deleteClient in interface Capabilitiesclient - valid client object
CapabilitiesException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||