public class NoticeTransformer extends AbstractDSpaceTransformer
The possible parameters are:
outcome: The outcome determines whether the notice is positive or negative. Possible values are: "success", "failure", or "neutral". If no values are supplied then neutral is assumed.
header: An i18n dictionary key referencing the text that should be used as a header for this notice.
message: An i18n dictionary key referencing the text that should be used as the content for this notice.
characters: Plain text string that should be used as the content for this notice. Normally, all messages should be i18n dictionary keys, however this parameter is useful for error messages that are not necessarily translated.
All parameters are optional but you must supply at least the message or the characters.
Example:
<map:transformer type="notice">
<map:parameter name="outcome" value="success"/>
<map:parameter name="message" value="xmlui.<aspect>.<class>.<type>"/>
</map:transformer>
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url| Constructor and Description |
|---|
NoticeTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBody(Body body)
Add the notice div to the body.
|
addOptions, addPageMeta, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException, recycle, setupcreateWingDocument, 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, startEntitypublic void addBody(Body body) throws WingException, SQLException, AuthorizeException
addBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractDSpaceTransformerbody - to be added.WingException - passed through.SQLException - passed through.AuthorizeException - passed through.Copyright © 2016 DuraSpace. All rights reserved.