Package de.zib.scalaris.examples.wikipedia.data

Examples of de.zib.scalaris.examples.wikipedia.data.Contributor


     *            The qualified name (with prefix), or the empty string if
     *            qualified names are not available.
     */
    public void endContributor(String uri, String localName, String qName) {
//        System.out.println("ip: " + ip + ", user: " + user + ", id: " + id);
        final_contributor = new Contributor();
        final_contributor.setIp(ip);
        if (!id.isEmpty()) {
            final_contributor.setId(Integer.parseInt(id));
        }
        final_contributor.setUser(user);
View Full Code Here


     *
     * @return the contributor of a revision
     */
    public Contributor getContributor() {
        if (final_contributor == null) {
            Contributor contributor = new Contributor();
            contributor.setIp("unknown");
            return contributor;
        } else {
            return final_contributor;
        }
    }
View Full Code Here

        boolean minorChange = Boolean.parseBoolean(request.getParameter("minor"));

        // save page or preview+edit page?
        if (request.getParameter("wpSave") != null) {
            // save page
            Contributor contributor = new Contributor();
            contributor.setIp(request.getRemoteAddr());
            String timestamp = Revision.calendarToString(Calendar.getInstance(TimeZone.getTimeZone("UTC")));
            int newRevId = (oldVersion == -1) ? 1 : oldVersion + 1;
            Revision newRev = new Revision(newRevId, timestamp, minorChange, contributor, summary);
            newRev.setUnpackedText(content);
View Full Code Here

TOP

Related Classes of de.zib.scalaris.examples.wikipedia.data.Contributor

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.