| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Document |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2011 The Kuali Foundation Licensed under the | |
| 3 | * Educational Community License, Version 2.0 (the "License"); you may | |
| 4 | * not use this file except in compliance with the License. You may | |
| 5 | * obtain a copy of the License at | |
| 6 | * | |
| 7 | * http://www.osedu.org/licenses/ECL-2.0 | |
| 8 | * | |
| 9 | * Unless required by applicable law or agreed to in writing, | |
| 10 | * software distributed under the License is distributed on an "AS IS" | |
| 11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
| 12 | * or implied. See the License for the specific language governing | |
| 13 | * permissions and limitations under the License. | |
| 14 | */ | |
| 15 | ||
| 16 | package org.kuali.student.r2.core.document.infc; | |
| 17 | ||
| 18 | import org.kuali.student.r2.core.document.dto.DocumentBinaryInfo; | |
| 19 | import org.kuali.student.r2.common.infc.IdEntity; | |
| 20 | ||
| 21 | import java.util.Date; | |
| 22 | ||
| 23 | /** | |
| 24 | * Document object | |
| 25 | * | |
| 26 | * @Version 2.0 | |
| 27 | * @Author Sri komandur@uw.edu | |
| 28 | * | |
| 29 | */ | |
| 30 | public interface Document extends IdEntity { | |
| 31 | ||
| 32 | /** | |
| 33 | * Name of the document file | |
| 34 | * @name File Name | |
| 35 | * | |
| 36 | */ | |
| 37 | public String getFileName(); | |
| 38 | ||
| 39 | /** | |
| 40 | * The encoded document. The expectation is that this could be a base64 | |
| 41 | * encoding | |
| 42 | * | |
| 43 | * @name Document Binary Info | |
| 44 | * @required | |
| 45 | * | |
| 46 | */ | |
| 47 | public DocumentBinaryInfo getDocumentBinary(); | |
| 48 | ||
| 49 | /** | |
| 50 | * Date and time that this document became effective. This is a similar | |
| 51 | * concept to the effective date on enumerated values. When an expiration | |
| 52 | * date has been specified, this field must be less than or equal to the | |
| 53 | * expiration date. | |
| 54 | * | |
| 55 | * @name Effective Date | |
| 56 | * | |
| 57 | */ | |
| 58 | public Date getEffectiveDate(); | |
| 59 | ||
| 60 | /** | |
| 61 | * Date and time that this document expires. This is a similar concept to | |
| 62 | * the expiration date on enumerated values. If specified, this should be | |
| 63 | * greater than or equal to the effective date. If this field is not | |
| 64 | * specified, then no expiration date has been currently defined and should | |
| 65 | * automatically be considered greater than the effective date. | |
| 66 | * | |
| 67 | * @name Expiration Date | |
| 68 | * | |
| 69 | */ | |
| 70 | public Date getExpirationDate(); | |
| 71 | ||
| 72 | } |