001/*
002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Nuxeo - initial API and implementation
011 *
012 * $Id$
013 */
014package org.nuxeo.ecm.platform.audit.api.comment;
015
016/**
017 * Simple POJO to store pre-processed comment and associated document.
018 *
019 * @author Tiry (tdelprat@nuxeo.com)
020 * @since 5.4.2
021 */
022public class UIAuditComment {
023
024    protected final String comment;
025
026    protected final LinkedDocument linkedDoc;
027
028    public UIAuditComment(String comment, LinkedDocument linkedDoc) {
029        this.comment = comment;
030        this.linkedDoc = linkedDoc;
031    }
032
033    public String getComment() {
034        return comment;
035    }
036
037    public LinkedDocument getLinkedDoc() {
038        return linkedDoc;
039    }
040
041}