|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.element.AbstractWingElement
org.dspace.app.xmlui.wing.element.UserMeta
public class UserMeta
A class representing a set of metadata about the user generating this page.
| Field Summary | |
|---|---|
static String |
A_AUTHENTICATED
The name of the authenticated attribute |
static String |
E_USER_META
The name of the userMeta element |
| Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
context |
| Fields inherited from interface org.dspace.app.xmlui.wing.element.MetadataElement |
|---|
A_REPOSITORY_IDENTIFIER |
| Constructor Summary | |
|---|---|
protected |
UserMeta(WingContext context)
Construct a new userMeta |
| Method Summary | |
|---|---|
Metadata |
addMetadata(String element)
Add metadata about the requesting user to the document. |
Metadata |
addMetadata(String element,
String qualifier)
Add metadata about the requesting user to the document. |
Metadata |
addMetadata(String element,
String qualifier,
String language)
Add metadata about the requesting user to the document. |
Metadata |
addMetadata(String element,
String qualifier,
String language,
boolean allowMultiple)
Add metadata about the requesting user to the document. |
void |
dispose()
dispose |
Attributes |
merge(Attributes attributes)
Inform this element that it is being merged with an existing element. |
WingMergeableElement |
mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
Since metadata can not be merged there are no mergeable children. |
boolean |
mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
Determine if the given SAX event is a UserMeta element. |
void |
setAuthenticated(boolean authenticated)
Set the user described in the meta object as authenticated. |
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate this element into SAX events. |
| Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String E_USER_META
public static final String A_AUTHENTICATED
| Constructor Detail |
|---|
protected UserMeta(WingContext context)
throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.
WingException| Method Detail |
|---|
public void setAuthenticated(boolean authenticated)
authenticated - (Required) True if the user is authenticated, false otherwise.
public Metadata addMetadata(String element,
String qualifier,
String language,
boolean allowMultiple)
throws WingException
element - (Required) The metadata element.qualifier - (May be null) The metadata qualifier.language - (May be null) The metadata's languageallowMultiple - (Required) determine if multiple metadata elements with the same
element, qualifier and language are allowed.
WingException
public Metadata addMetadata(String element,
String qualifier,
String language)
throws WingException
element - (Required) The metadata element.qualifier - (May be null) The metadata qualifier.language - (May be null) The metadata's language
WingException
public Metadata addMetadata(String element,
String qualifier)
throws WingException
element - (Required) The metadata element.qualifier - (May be null) The metadata qualifier.
WingException
public Metadata addMetadata(String element)
throws WingException
element - (Required) The metadata element.
WingException
public boolean mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
throws SAXException,
WingException
mergeEqual in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this elementqName - The qualified name for this elementattributes - The element's attributes
SAXException
WingException
public WingMergeableElement mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
throws SAXException,
WingException
mergeChild in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this element *qName - The qualified name for this elementattributes - The element's attributes
SAXException
WingException
public Attributes merge(Attributes attributes)
throws SAXException,
WingException
merge in interface WingMergeableElementSAXException
WingException
public void toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
throws SAXException
toSAX in interface WingElementcontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical
events (such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.
SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||