|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.dspace.app.xmlui.wing.AbstractWingTransformer
org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer
public abstract class AbstractDSpaceTransformer
| Field Summary | |
|---|---|
protected Context |
context
|
protected String |
contextPath
|
protected EPerson |
eperson
|
protected org.apache.cocoon.components.flow.WebContinuation |
knot
|
protected Map |
objectModel
|
protected org.apache.avalon.framework.parameters.Parameters |
parameters
|
protected String |
servletPath
|
protected String |
sitemapURI
|
protected String |
url
|
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDSpaceTransformer()
|
|
| Method Summary | |
|---|---|
void |
addBody(Body body)
What to add at the end of the body |
void |
addOptions(Options options)
What to add to the options list |
void |
addPageMeta(PageMeta pageMeta)
What page metadata to add to the document |
void |
addUserMeta(UserMeta userMeta)
What user metadata to add to the document |
static String |
decodeFromURL(String encodedString)
Decode the given string from URL transmission. |
void |
dispose()
Dispose |
static String |
encodeForURL(String unencodedString)
Encode the given string for URL transmission. |
static String |
generateURL(String baseURL,
Map<String,String> parameters)
Generate a URL for the given base URL with the given parameters. |
String |
getComponentName()
What is a unique name for this component? |
ObjectManager |
getObjectManager()
|
protected void |
handleException(Exception e)
|
void |
recycle()
Recyle |
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
|
| Methods inherited from class org.dspace.app.xmlui.wing.AbstractWingTransformer |
|---|
createWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
|---|
characters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
|---|
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Field Detail |
|---|
protected Map objectModel
protected Context context
protected String contextPath
protected String servletPath
protected String sitemapURI
protected String url
protected org.apache.avalon.framework.parameters.Parameters parameters
protected EPerson eperson
protected org.apache.cocoon.components.flow.WebContinuation knot
| Constructor Detail |
|---|
public AbstractDSpaceTransformer()
| Method Detail |
|---|
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentorg.apache.cocoon.ProcessingException
SAXException
IOException
protected void handleException(Exception e)
throws SAXException
handleException in class AbstractWingTransformerSAXException
public void addBody(Body body)
throws SAXException,
WingException,
UIException,
SQLException,
IOException,
AuthorizeException,
org.apache.cocoon.ProcessingException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractWingTransformerSAXException
WingException
UIException
SQLException
IOException
AuthorizeException
org.apache.cocoon.ProcessingException
public void addOptions(Options options)
throws SAXException,
WingException,
UIException,
SQLException,
IOException,
AuthorizeException
addOptions in interface DSpaceTransformeraddOptions in interface WingTransformeraddOptions in class AbstractWingTransformerSAXException
WingException
UIException
SQLException
IOException
AuthorizeException
public void addUserMeta(UserMeta userMeta)
throws SAXException,
WingException,
UIException,
SQLException,
IOException,
AuthorizeException
addUserMeta in interface DSpaceTransformeraddUserMeta in interface WingTransformeraddUserMeta in class AbstractWingTransformerSAXException
WingException
UIException
SQLException
IOException
AuthorizeException
public void addPageMeta(PageMeta pageMeta)
throws SAXException,
WingException,
UIException,
SQLException,
IOException,
AuthorizeException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractWingTransformerSAXException
WingException
UIException
SQLException
IOException
AuthorizeExceptionpublic ObjectManager getObjectManager()
getObjectManager in class AbstractWingTransformerpublic String getComponentName()
getComponentName in interface DSpaceTransformergetComponentName in interface WingTransformergetComponentName in class AbstractWingTransformer
public static String encodeForURL(String unencodedString)
throws UIException
unencodedString - The unencoded string.
UIException
public static String decodeFromURL(String encodedString)
throws UIException
encodedString - The encoded string.
UIException
public static String generateURL(String baseURL,
Map<String,String> parameters)
baseURL - The baseURL without any parameters.parameters - The parameters to be encoded on in the URL.
public void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class AbstractWingTransformerpublic void dispose()
dispose in class AbstractWingTransformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||