001 /*
002 * Copyright 2011 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 */
016 package org.kuali.kfs.module.endow.document.web.struts;
017
018 import org.kuali.kfs.module.endow.EndowConstants;
019 import org.kuali.kfs.module.endow.document.HoldingAdjustmentDocument;
020
021 /**
022 * HoldingAdjustmentDocumentForm class
023 */
024 public class HoldingAdjustmentDocumentForm extends EndowmentTransactionLinesDocumentFormBase {
025
026 /**
027 * Constructs a EndowmentUnitShareAdjustmentDocumentForm.java.
028 */
029 public HoldingAdjustmentDocumentForm() {
030 super();
031
032 // don't show these values on the edoc.
033 setShowPrincipalTotalUnits(false);
034 setShowIncomeTotalUnits(false);
035 setShowUnitAdjustmentAmount(true);
036 }
037
038 /**
039 * @see org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase#getDefaultDocumentTypeName()
040 */
041 @Override
042 protected String getDefaultDocumentTypeName() {
043 return "EHA";
044 }
045
046 /**
047 * Gets the HoldingAdjustmentDocument document
048 *
049 * @return document
050 */
051 public HoldingAdjustmentDocument getHoldingAdjustmentDocument() {
052 return (HoldingAdjustmentDocument) getDocument();
053 }
054
055 /**
056 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getSourceGroupLabelName()
057 */
058 @Override
059 public String getSourceGroupLabelName() {
060 return EndowConstants.DECREASE_TRANSACTION_LINE_GROUP_LABEL_NAME;
061 }
062
063 /**
064 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getTargetGroupLabelName()
065 */
066 @Override
067 public String getTargetGroupLabelName() {
068 return EndowConstants.INCREASE_TRANSACTION_LINE_GROUP_LABEL_NAME;
069 }
070
071 /**
072 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getSourceTaxLotsLabelName()
073 */
074 @Override
075 public String getSourceTaxLotsLabelName() {
076 return EndowConstants.DECREASE_TAX_LOTS_LABEL_NAME;
077 }
078
079 /**
080 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getTargetTaxLotsLabelName()
081 */
082 @Override
083 public String getTargetTaxLotsLabelName() {
084 return EndowConstants.INCREASE_TAX_LOTS_LABEL_NAME;
085 }
086 }