Package ehistory.server.api.model

Examples of ehistory.server.api.model.EventDetailsItem


            return Collections.emptyList();
        }

        List<EventDetailsItem> ret = new ArrayList<EventDetailsItem>();
        if (eventDetails.getComment() != null) {
            ret.add(new EventDetailsItem("Comment", eventDetails.getComment().getValue()));
        }
        if (eventDetails.getPlace() != null) {
            String place;
            if (eventDetails.getPlace().getPoint() != null) {
                place = "Point: " + eventDetails.getPlace().getPoint();
            } else {
                place = eventDetails.getPlace().getType();
            }
            ret.add(new EventDetailsItem("Place", place));
        }
        if (eventDetails.getObjectRelations() != null) {
            for (ObjectRelation objectRelation : eventDetails.getObjectRelations()) {
                ret.add(new EventDetailsItem(objectRelation.getType(), objectRelation.getRefUid()));
            }
        }
        if (eventDetails.getEventRelations() != null) {
            for (EventRelation eventRelation : eventDetails.getEventRelations()) {
                ret.add(new EventDetailsItem(eventRelation.getType(), eventRelation.getRefUid()));
            }
        }
        return ret;
    }
View Full Code Here

TOP

Related Classes of ehistory.server.api.model.EventDetailsItem

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.