Package org.xwiki.model.reference

Examples of org.xwiki.model.reference.DocumentReference


        List<Element> fileElementList = filesElement.elements("file");
        for (Element el : fileElementList) {
            String docFullName = el.getStringValue();

            if (pattern == null || pattern.matcher(docFullName).matches()) {
                result.add(new DocumentReference(RESOLVER.resolve("xwiki:" + docFullName, EntityType.DOCUMENT)));
            }
        }

        return result;
    }
View Full Code Here


        List<DocumentReference> result = new ArrayList<DocumentReference>(entries.size());

        WikiReference wikiReference = new WikiReference("xwiki");

        for (XarEntry entry : entries) {
            result.add(new DocumentReference(entry, wikiReference));
        }

        return result;
    }
View Full Code Here

        Pattern pattern = patternFilter == null ? null : Pattern.compile(patternFilter);

        for (XarEntry entry : entries) {
            if (pattern == null || pattern.matcher(SERIALIZER.serialize(entry)).matches()) {
                result.add(new DocumentReference(entry, wikiReference));
            }
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.xwiki.model.reference.DocumentReference

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.