001/* 002 * (C) Copyright 2007 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Nuxeo - initial API and implementation 016 * 017 * $Id: StatementInfo.java 21142 2007-06-22 16:50:45Z sfermigier $ 018 */ 019 020package org.nuxeo.ecm.platform.relations.web; 021 022import java.io.Serializable; 023import java.util.Date; 024 025import org.nuxeo.ecm.platform.relations.api.Node; 026import org.nuxeo.ecm.platform.relations.api.Resource; 027import org.nuxeo.ecm.platform.relations.api.Statement; 028import org.nuxeo.ecm.platform.relations.api.Subject; 029 030/** 031 * Statement representation for easier display. 032 * 033 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a> 034 */ 035public interface StatementInfo extends Serializable { 036 037 boolean isIncoming(); 038 039 boolean isOutgoing(); 040 041 void setIncoming(boolean incoming); 042 043 void setOutgoing(boolean outgoing); 044 045 Statement getStatement(); 046 047 Subject getSubject(); 048 049 NodeInfo getSubjectInfo(); 050 051 Resource getPredicate(); 052 053 NodeInfo getPredicateInfo(); 054 055 Node getObject(); 056 057 NodeInfo getObjectInfo(); 058 059 // metadata 060 061 Date getCreationDate(); 062 063 Date getModificationDate(); 064 065 String getComment(); 066 067 String getAuthor(); 068}