001/*
002 * (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Nuxeo - initial API and implementation
018 *
019 * $Id: RelationActions.java 21346 2007-06-25 16:20:59Z atchertchian $
020 */
021
022package org.nuxeo.ecm.platform.relations.web.listener;
023
024import java.util.List;
025
026import javax.faces.event.ActionEvent;
027
028import org.nuxeo.ecm.core.api.DocumentModel;
029import org.nuxeo.ecm.platform.relations.api.Node;
030import org.nuxeo.ecm.platform.relations.api.QNameResource;
031import org.nuxeo.ecm.platform.relations.web.StatementInfo;
032
033/**
034 * Relation actions.
035 *
036 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
037 */
038public interface RelationActions {
039
040    String SEARCH_DOCUMENT_LIST = "RELATION_SEARCH_DOCUMENT_LIST";
041
042    List<StatementInfo> getIncomingStatementsInfo();
043
044    List<StatementInfo> getOutgoingStatementsInfo();
045
046    void resetStatements();
047
048    String addStatement();
049
050    String deleteStatement(StatementInfo statementInfo);
051
052    QNameResource getDocumentResource(DocumentModel document);
053
054    DocumentModel getDocumentModel(Node node);
055
056    Boolean getShowCreateForm();
057
058    void toggleCreateForm(ActionEvent event);
059
060    String getComment();
061
062    void setComment(String comment);
063
064    String getObjectDocumentTitle();
065
066    void setObjectDocumentTitle(String objectDocumentTitle);
067
068    String getObjectDocumentUid();
069
070    void setObjectDocumentUid(String objectDocumentUid);
071
072    String getObjectLiteralValue();
073
074    void setObjectLiteralValue(String objectLiteralValue);
075
076    String getObjectType();
077
078    void setObjectType(String objectType);
079
080    String getObjectUri();
081
082    void setObjectUri(String objectUri);
083
084    String getPredicateUri();
085
086    void setPredicateUri(String predicateUri);
087
088}