org.xmlecho.palomar.core
Class ListDirectoryImpl

java.lang.Object
  extended byorg.xmlecho.palomar.dom.NodeBase
      extended byorg.xmlecho.palomar.dom.ParentNode
          extended byorg.xmlecho.palomar.dom.NamespacedNode
              extended byorg.xmlecho.palomar.dom.ElementNode
                  extended byorg.xmlecho.palomar.core.DOMElementImpl
                      extended byorg.xmlecho.palomar.core.ECHORequestImpl
                          extended byorg.xmlecho.palomar.core.ECHORequestServerSide
                              extended byorg.xmlecho.palomar.core.ListDirectoryImpl
All Implemented Interfaces:
ECHORequest, org.w3c.dom.Element, org.xmlecho.palomar.dom.ElementEx, org.w3c.dom.Node, org.xmlecho.palomar.dom.NodeEx, org.w3c.dom.NodeList, org.xmlecho.palomar.dom.XmlWritable

public class ListDirectoryImpl
extends ECHORequestServerSide

Represents an XRAP request to list a directory's contents.
The value(active, deleted or all) of 'itemStatus' determines what items would be listed. The dafault value is 'active'.

Listing active items
This will list all current items in the repository based on the specified 'path' and 'name'. (If not specified, the default value is '/') The items are listed according to their hierarchy in the repository with '/' as the root element.

      - 'depth' determines how many levels shall be retrieved
      - 'foldersOnly' determines if the list must be limited to folders only
 


Listing deleted items
This will list all items in the repository which were marked deleted. Only the value of 'itemStatus' matters. Other attributes are insignificant for this action. As opposed to listing active items, all items are listed having the same level (regardless of their hierarchy in the repository). The root node is 'deletedItems'.

Listing all items
This is not yet supported.


Field Summary
 
Fields inherited from class org.xmlecho.palomar.core.ECHORequestServerSide
_logger, _sec, DEBUG
 
Fields inherited from class org.xmlecho.palomar.dom.ElementNode
_namespaceURI, name
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
ListDirectoryImpl()
           
 
Method Summary
 void eval(org.xml.sax.ContentHandler responseTarget, ECHOContext context)
          evaluate the request
 
Methods inherited from class org.xmlecho.palomar.core.ECHORequestServerSide
addAttribute, endElement, errorResponse, evalBody, evalCopy, extendContext, getItem, getNamespacePrefix, getSecurityService, getSubRequest, getUser, log, startElement, startElement, writeException, writeException
 
Methods inherited from class org.xmlecho.palomar.core.ECHORequestImpl
eval, getURI
 
Methods inherited from class org.xmlecho.palomar.dom.ElementNode
appendChild, cloneNode, getAppSelectVal, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getIdAttributeName, getIndexOf, getInheritedAttribute, getLanguage, getLastChild, getLength, getLocalName, getLocation, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTagName, getUserObject, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isReadonly, isSupported, item, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeWhiteSpaces, replaceChild, setAppSelectVal, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttributeName, setLocation, setNamespaceURI, setNodeValue, setPrefix, setReadonly, setTag, setUserObject, supports, toString, trimToSize, write, writeChildrenXml, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from interface org.xmlecho.palomar.dom.NodeEx
getAppSelectVal, getIndexOf, getInheritedAttribute, getLanguage, isReadonly, setAppSelectVal
 
Methods inherited from interface org.xmlecho.palomar.dom.XmlWritable
writeChildrenXml
 

Constructor Detail

ListDirectoryImpl

public ListDirectoryImpl()
Method Detail

eval

public void eval(org.xml.sax.ContentHandler responseTarget,
                 ECHOContext context)
          throws java.lang.Exception
evaluate the request

Specified by:
eval in interface ECHORequest
Overrides:
eval in class ECHORequestServerSide
Throws:
java.lang.Exception