Example usage for com.liferay.portal.kernel.xml QName getName

List of usage examples for com.liferay.portal.kernel.xml QName getName

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.xml QName getName.

Prototype

public String getName();

Source Link

Usage

From source file:it.smc.calendar.sync.caldav.BasePropsProcessor.java

License:Open Source License

protected void processCustomProperties(Set<QName> props) throws Exception {

    WebDAVProps webDavProps = WebDAVPropsLocalServiceUtil.getWebDAVProps(webDAVRequest.getCompanyId(),
            resource.getClassName(), resource.getPrimaryKey());

    Set<QName> customProps = webDavProps.getPropsSet();

    for (QName qname : props) {
        String name = qname.getName();
        Namespace namespace = qname.getNamespace();

        String prefix = namespace.getPrefix();
        String uri = namespace.getURI();

        if (customProps.contains(qname)) {
            String text = webDavProps.getText(name, prefix, uri);

            DocUtil.add(successPropElement, qname, text);
        } else {//from   w w  w  .  j  a v  a2s .  c  om
            DocUtil.add(failurePropElement, qname);
        }
    }
}