001/* 002 * Copyright 2010 Anyware Services 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 */ 016package org.ametys.plugins.repository.metadata; 017 018import java.util.Date; 019 020/** 021 * A comment on a metadata. 022 */ 023public class MetadataComment 024{ 025 private final String _comment; 026 private final Date _date; 027 private final String _author; 028 029 /** 030 * Constructor 031 * @param comment The comment text 032 * @param date The date of the comment 033 * @param author The full name of the author 034 */ 035 public MetadataComment(String comment, Date date, String author) 036 { 037 _comment = comment; 038 _date = date; 039 _author = author; 040 } 041 042 /** 043 * Retrieves the comment. 044 * @return the comment 045 */ 046 public String getComment() 047 { 048 return _comment; 049 } 050 051 /** 052 * Retrieves the date. 053 * @return the date 054 */ 055 public Date getDate() 056 { 057 return _date; 058 } 059 060 /** 061 * Retrieves the author. 062 * @return the author 063 */ 064 public String getAuthor() 065 { 066 return _author; 067 } 068}