001/*
002 * (C) Copyright 2006-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: RelationActions.java 21346 2007-06-25 16:20:59Z atchertchian $
018 */
019
020package org.nuxeo.ecm.platform.relations.web.listener;
021
022import java.util.List;
023
024import javax.faces.event.ActionEvent;
025
026import org.nuxeo.ecm.core.api.DocumentModel;
027import org.nuxeo.ecm.platform.relations.api.Node;
028import org.nuxeo.ecm.platform.relations.api.QNameResource;
029import org.nuxeo.ecm.platform.relations.web.StatementInfo;
030
031/**
032 * Relation actions.
033 *
034 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
035 */
036public interface RelationActions {
037
038    String SEARCH_DOCUMENT_LIST = "RELATION_SEARCH_DOCUMENT_LIST";
039
040    List<StatementInfo> getIncomingStatementsInfo();
041
042    List<StatementInfo> getOutgoingStatementsInfo();
043
044    void resetStatements();
045
046    String addStatement();
047
048    String deleteStatement(StatementInfo statementInfo);
049
050    QNameResource getDocumentResource(DocumentModel document);
051
052    DocumentModel getDocumentModel(Node node);
053
054    Boolean getShowCreateForm();
055
056    void toggleCreateForm(ActionEvent event);
057
058    String getComment();
059
060    void setComment(String comment);
061
062    String getObjectDocumentTitle();
063
064    void setObjectDocumentTitle(String objectDocumentTitle);
065
066    String getObjectDocumentUid();
067
068    void setObjectDocumentUid(String objectDocumentUid);
069
070    String getObjectLiteralValue();
071
072    void setObjectLiteralValue(String objectLiteralValue);
073
074    String getObjectType();
075
076    void setObjectType(String objectType);
077
078    String getObjectUri();
079
080    void setObjectUri(String objectUri);
081
082    String getPredicateUri();
083
084    void setPredicateUri(String predicateUri);
085
086}