Package org.apache.slide.common

Examples of org.apache.slide.common.RequestedProperty


                                       + " " + WebdavStatus.getStatusText
                                       (WebdavStatus.SC_OK));
       
        while (propertyIterator.hasNext()) {
           
            RequestedProperty property = (RequestedProperty)propertyIterator.next();
            NodeProperty currentProperty = null;
            Integer errorCode = null;
            try {
                currentProperty = requestedResource.getProperty(property.getName(),
                                                                property.getNamespace());
                if (currentProperty == null) {
                    errorCode = new Integer(WebdavStatus.SC_NOT_FOUND);
                }
            }
            catch (AccessDeniedException e) {
                errorCode = new Integer(WebdavStatus.SC_FORBIDDEN);
            }
           
            if (errorCode != null) {
                List erroneousPropertiesList = (List)erroneousPropertiesMap.get(errorCode);
                if (erroneousPropertiesList == null) {
                    erroneousPropertiesList = new ArrayList();
                    erroneousPropertiesMap.put(errorCode, erroneousPropertiesList);
                }
                erroneousPropertiesList.add(new PropertyName(property.getName(), property.getNamespace()));
            }
            else {
                propertyElement = getPropertyElement(currentProperty, contextPath, servletPath);
                if (propertyElement != null) {
                    anyPropertyFound = true;
View Full Code Here


     */
    public void execute(String resourcePath, Element principalSearchPropertySetElm, int depth) throws SlideException, IOException {
        Iterator props = retriever.getAllPropertyNames(PrincipalImpl.getInstance())
            .getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Element principalSearchPropertyElm = new Element(E_PRINCIPAL_SEARCH_PROPERTY, DNSP);
            Namespace nsp = DNSP.getURI().equals(p.getNamespace())
                ? DNSP
                : Namespace.getNamespace(p.getNamespace());
            principalSearchPropertyElm.addContent(new Element(p.getName(), DNSP));
            principalSearchPropertySetElm.addContent(principalSearchPropertyElm);
        }
    }
View Full Code Here

        result.addContent(selectElm);
        Element propElm = new Element(E_PROP, DNSP);
        selectElm.addContent(propElm);
        Iterator props = requestedProperties.getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Namespace nsp = (DNSP.getURI().equals(p.getNamespace()))
                ? DNSP
                : Namespace.getNamespace(p.getNamespace());
            propElm.addContent(new Element(p.getName(), nsp));
        }
        // from
        Element fromElm = new Element(Literals.FROM, DNSP);
        result.addContent(fromElm);
        Element scopeElm = new Element(Literals.SCOPE, DNSP);
View Full Code Here

        result.addContent(selectElm);
        Element propElm = new Element(E_PROP, DNSP);
        selectElm.addContent(propElm);
        Iterator props = requestedProperties.getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Namespace nsp = (DNSP.getURI().equals(p.getNamespace()))
                ? DNSP
                : Namespace.getNamespace(p.getNamespace());
            propElm.addContent(new Element(p.getName(), nsp));
        }
        // from
        Element fromElm = new Element(Literals.FROM, DNSP);
        result.addContent(fromElm);
        Element scopeElm = new Element(Literals.SCOPE, DNSP);
View Full Code Here

                    Element propElement = new Element(E_PROP, DNSP);
                    RequestedProperties propnames =
                        propertyRetriever.getAllPropertyNames(object.getUri(), true);
                    Iterator iterator = propnames.getRequestedProperties();
                    while (iterator.hasNext()) {
                        RequestedProperty p = (RequestedProperty)iterator.next();
                        Namespace nsp = DNSP.getURI().equals(p.getNamespace())
                            ? DNSP
                            : Namespace.getNamespace(p.getNamespace());
                        propElement.addContent(new Element(p.getName(), nsp));
                    }
                    Element statusElement = new Element(E_STATUS, DNSP);
                    statusElement.setText(status);
                    propstatElement.addContent(propElement);
                    propstatElement.addContent(statusElement);
View Full Code Here

        result.addContent(selectElm);
        Element propElm = new Element(E_PROP, DNSP);
        selectElm.addContent(propElm);
        Iterator props = requestedProperties.getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Namespace nsp = (DNSP.getURI().equals(p.getNamespace()))
                ? DNSP
                : Namespace.getNamespace(p.getNamespace());
            propElm.addContent(new Element(p.getName(), nsp));
        }
        // from
        Element fromElm = new Element(Literals.FROM, DNSP);
        result.addContent(fromElm);
        Element scopeElm = new Element(Literals.SCOPE, DNSP);
View Full Code Here

                                       + " " + WebdavStatus.getStatusText
                                       (WebdavStatus.SC_OK));
       
        while (propertyIterator.hasNext()) {
           
            RequestedProperty property = (RequestedProperty)propertyIterator.next();
            NodeProperty currentProperty = null;
            Integer errorCode = null;
            try {
                currentProperty = requestedResource.getProperty(property.getName(),
                                                                property.getNamespace());
                if (currentProperty == null) {
                    errorCode = new Integer(WebdavStatus.SC_NOT_FOUND);
                }
            }
            catch (AccessDeniedException e) {
                errorCode = new Integer(WebdavStatus.SC_FORBIDDEN);
            }
           
            if (errorCode != null) {
                List erroneousPropertiesList = (List)erroneousPropertiesMap.get(errorCode);
                if (erroneousPropertiesList == null) {
                    erroneousPropertiesList = new ArrayList();
                    erroneousPropertiesMap.put(errorCode, erroneousPropertiesList);
                }
                erroneousPropertiesList.add(new PropertyName(property.getName(), property.getNamespace()));
            }
            else {
                propertyElement = getPropertyElement(currentProperty, servletContextPath);
                if (propertyElement != null) {
                    anyPropertyFound = true;
View Full Code Here

     */
    public void execute(String resourcePath, Element principalSearchPropertySetElm, int depth) throws SlideException, IOException {
        Iterator props = retriever.getAllPropertyNames(PrincipalImpl.getInstance())
            .getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Element principalSearchPropertyElm = new Element(E_PRINCIPAL_SEARCH_PROPERTY, DNSP);
//            Namespace nsp = DNSP.getURI().equals(p.getNamespace())
//                ? DNSP
//                : Namespace.getNamespace(p.getNamespace());
            principalSearchPropertyElm.addContent(new Element(p.getName(), DNSP));
            principalSearchPropertySetElm.addContent(principalSearchPropertyElm);
        }
    }
View Full Code Here

        result.addContent(selectElm);
        Element propElm = new Element(E_PROP, DNSP);
        selectElm.addContent(propElm);
        Iterator props = requestedProperties.getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Namespace nsp = (DNSP.getURI().equals(p.getNamespace()))
                ? DNSP
                : Namespace.getNamespace(p.getNamespace());
            propElm.addContent(new Element(p.getName(), nsp));
        }
        // from
        Element fromElm = new Element(Literals.FROM, DNSP);
        result.addContent(fromElm);
        Element scopeElm = new Element(Literals.SCOPE, DNSP);
View Full Code Here

        result.addContent(selectElm);
        Element propElm = new Element(E_PROP, DNSP);
        selectElm.addContent(propElm);
        Iterator props = requestedProperties.getRequestedProperties();
        while (props.hasNext()) {
            RequestedProperty p = (RequestedProperty)props.next();
            Namespace nsp = (DNSP.getURI().equals(p.getNamespace()))
                ? DNSP
                : Namespace.getNamespace(p.getNamespace());
            propElm.addContent(new Element(p.getName(), nsp));
        }
        // from
        Element fromElm = new Element(Literals.FROM, DNSP);
        result.addContent(fromElm);
        Element scopeElm = new Element(Literals.SCOPE, DNSP);
View Full Code Here

TOP

Related Classes of org.apache.slide.common.RequestedProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.