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 */
014
015package org.nuxeo.ecm.platform.audit.api.comment;
016
017import java.io.Serializable;
018
019import org.nuxeo.ecm.core.api.DocumentModel;
020import org.nuxeo.ecm.core.api.DocumentRef;
021import org.nuxeo.ecm.platform.util.RepositoryLocation;
022
023public class LinkedDocument implements Serializable {
024
025    private static final long serialVersionUID = 1565438769754L;
026
027    protected DocumentRef documentRef;
028
029    protected RepositoryLocation repository;
030
031    protected transient DocumentModel document;
032
033    protected boolean brokenDocument = true;
034
035    public boolean isBrokenDocument() {
036        return brokenDocument;
037    }
038
039    public void setBrokenDocument(boolean brokenDocument) {
040        this.brokenDocument = brokenDocument;
041    }
042
043    public DocumentModel getDocument() {
044        return document;
045    }
046
047    public void setDocument(DocumentModel document) {
048        this.document = document;
049    }
050
051    public DocumentRef getDocumentRef() {
052        return documentRef;
053    }
054
055    public void setDocumentRef(DocumentRef documentRef) {
056        this.documentRef = documentRef;
057    }
058
059    public RepositoryLocation getRepository() {
060        return repository;
061    }
062
063    public void setRepository(RepositoryLocation repository) {
064        this.repository = repository;
065    }
066
067}