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.ld.document.service;
017    
018    import org.kuali.kfs.module.ld.document.SalaryExpenseTransferDocument;
019    
020    /**
021     * Validates the transfers from an SET document do not conflict with any employee effort report generated by the Effort
022     * Certification module.
023     */
024    public interface SalaryTransferPeriodValidationService {
025    
026        /**
027         * Checks the transfers that will be made by the expense lines do not impact an effort certification document.
028         * 
029         * @param document - salary expense document to validate
030         * @return boolean indicating whether the transfer are valid (true) or not (false)
031         */
032        public boolean validateTransfers(SalaryExpenseTransferDocument document);
033    
034        /**
035         * Disapproves the salary expense document due to effort validation errors.
036         * 
037         * @param document - document to cancel
038         */
039        public void disapproveSalaryExpenseDocument(SalaryExpenseTransferDocument document) throws Exception;
040    
041    }