public abstract class AbstractDSpaceTransformer extends AbstractWingTransformer implements DSpaceTransformer
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
AbstractDSpaceTransformer() |
| Modifier and Type | Method and Description |
|---|---|
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()
Return the ObjectManager associated with this component.
|
protected void |
handleException(Exception e)
Handle exceptions that occurred during the document's creation.
|
void |
recycle()
Recyle
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters) |
createWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMappingcharacters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntityprotected 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
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.ProcessingExceptionSAXExceptionIOExceptionprotected void handleException(Exception e) throws SAXException
AbstractWingTransformerhandleException in class AbstractWingTransformere - The thrown exceptionSAXExceptionpublic void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException, org.apache.cocoon.ProcessingException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractWingTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionorg.apache.cocoon.ProcessingExceptionpublic void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addOptions in interface DSpaceTransformeraddOptions in interface WingTransformeraddOptions in class AbstractWingTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionpublic void addUserMeta(UserMeta userMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addUserMeta in interface DSpaceTransformeraddUserMeta in interface WingTransformeraddUserMeta in class AbstractWingTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionpublic void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractWingTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionpublic ObjectManager getObjectManager()
AbstractWingTransformergetObjectManager in class AbstractWingTransformerpublic String getComponentName()
getComponentName in interface DSpaceTransformergetComponentName in interface WingTransformergetComponentName in class AbstractWingTransformerpublic static String encodeForURL(String unencodedString) throws UIException
unencodedString - The unencoded string.UIExceptionpublic static String decodeFromURL(String encodedString) throws UIException
encodedString - The encoded string.UIExceptionpublic 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 AbstractWingTransformerCopyright © 2015 DuraSpace. All Rights Reserved.