Examples of CDBPerson


Examples of com.spreadbible.ctlib.entities.CDBPerson

        CTLib ctlib = new CTLib(args[0], args[1], args[2]);
        ctlib.getCheckInService().initDatabase();

        List<CDBPerson> persons = ctlib.getUsersService().getPersons(null);
        for (int i = 0; i < persons.size(); i++) {
            CDBPerson p = persons.get(i);
            System.err.println(String.format("%s %s (%s) - %s",
                    p.getName(), p.getLastName(), p.getNickName(), p.getEmail()));
        }
       
        // do some fun with the checkin
        System.err.println("Current docs:");
        List<CHKDocument> docs = ctlib.getCheckInService().getDocuments();
        for (int i = 0; i < docs.size(); i++) {
            CHKDocument doc = docs.get(i);
            ctlib.getCheckInService().fillDocument(doc);
            System.err.println("\tDoc: " + doc.getTitle());
            for (int j = 0; j < doc.getAssignees().size(); j++) {
                CDBPerson p = doc.getAssignees().get(j);
                System.err.println("\t\t" + p.getName() + " " + p.getLastName());
            }
        }
        System.err.println("------");
       
        // New document
View Full Code Here

Examples of com.spreadbible.ctlib.entities.CDBPerson

    /**
     * Add the person to the document.
     * @param person
     */
    public void addPerson(CHKDocument document) throws Exception {
        CDBPerson person = document.popNewPerson();
        if (person != null) {
            HashMap params = new HashMap();
            params.put("docid", document.getId());
            params.put("uid", person.getId());
            CTLib.getMapper().call("checkin.chk-add-person", params);
        } else {
            System.err.println("Person is null!!");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.