001/** 002 * Copyright 2005-2017 The Kuali Foundation 003 * 004 * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php 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.kuali.rice.kew.quicklinks; 017 018import org.kuali.rice.kew.api.KewApiConstants; 019 020/** 021 * Represents a document that is being watched from the Quick Links. 022 * 023 * @author Kuali Rice Team (rice.collab@kuali.org) 024 */ 025public class WatchedDocument { 026 private String documentHeaderId; 027 private String documentStatusCode; 028 private String documentTitle; 029 public WatchedDocument(String documentHeaderId, String documentStatusCode, String documentTitle) { 030 this.documentHeaderId = documentHeaderId; 031 this.documentStatusCode = documentStatusCode; 032 this.documentTitle = documentTitle; 033 } 034 035 /** 036 * 037 * Used by DocumentRouteHeaderValue.QuickLinks.FindWatchedDocumentsByInitiatorWorkflowId named query 038 * 039 * @param documentHeaderId 040 * @param documentStatusShortCode 041 * @param documentTitle 042 */ 043 public WatchedDocument(Long documentHeaderId, String documentStatusShortCode, String documentTitle) { 044 this(documentHeaderId.toString(), KewApiConstants.DOCUMENT_STATUSES.get(documentStatusShortCode), documentTitle); 045 } 046 047 public String getDocumentHeaderId() { 048 return documentHeaderId; 049 } 050 public void setDocumentHeaderId(String documentHeaderId) { 051 this.documentHeaderId = documentHeaderId; 052 } 053 public String getDocumentStatusCode() { 054 return documentStatusCode; 055 } 056 public void setDocumentStatusCode(String documentStatusCode) { 057 this.documentStatusCode = documentStatusCode; 058 } 059 public String getDocumentTitle() { 060 return documentTitle; 061 } 062 public void setDocumentTitle(String documentTitle) { 063 this.documentTitle = documentTitle; 064 } 065}