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;
017
018 import java.util.Map;
019
020 import org.kuali.kfs.module.endow.EndowConstants;
021 import org.kuali.kfs.module.endow.EndowPropertyConstants;
022 import org.kuali.kfs.module.endow.businessobject.EndowmentRecurringCashTransfer;
023 import org.kuali.kfs.module.endow.businessobject.EndowmentRecurringCashTransferGLTarget;
024 import org.kuali.kfs.module.endow.businessobject.EndowmentRecurringCashTransferKEMIDTarget;
025 import org.kuali.kfs.module.endow.businessobject.KEMID;
026 import org.kuali.kfs.module.endow.document.validation.impl.EndowmentRecurringCashTransferTransactionRule;
027 import org.kuali.kfs.sys.KFSConstants;
028 import org.kuali.kfs.sys.KFSKeyConstants;
029 import org.kuali.kfs.sys.document.FinancialSystemMaintainable;
030 import org.kuali.rice.kns.document.MaintenanceDocument;
031 import org.kuali.rice.kns.util.GlobalVariables;
032 import org.kuali.rice.kns.util.ObjectUtils;
033
034 public class EndowmentRecurringCashTransferMaintainableImpl extends FinancialSystemMaintainable {
035
036 /**
037 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument,
038 * java.util.Map)
039 */
040 @Override
041 public void processAfterCopy(MaintenanceDocument arg0, Map<String, String[]> arg1) {
042
043 //EndowmentRecurringCashTransfer endowmentRecurringCashTransfer = (EndowmentRecurringCashTransfer) this.getBusinessObject();
044 EndowmentRecurringCashTransfer newEndowmentRecurringCashTransfer = (EndowmentRecurringCashTransfer) arg0.getNewMaintainableObject().getBusinessObject();
045 EndowmentRecurringCashTransfer oldEndowmentRecurringCashTransfer = (EndowmentRecurringCashTransfer) arg0.getOldMaintainableObject().getBusinessObject();
046 claenAllTargets(newEndowmentRecurringCashTransfer);
047 claenAllTargets(oldEndowmentRecurringCashTransfer);
048
049 super.processAfterCopy(arg0, arg1);
050 }
051
052 protected void claenAllTargets(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer){
053 //endowmentRecurringCashTransfer.refreshNonUpdateableReferences();
054 endowmentRecurringCashTransfer.getKemidTarget().clear();
055 endowmentRecurringCashTransfer.getGlTarget().clear();
056
057 }
058
059 }