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.integration.ld;
017
018 import java.util.Collection;
019 import java.util.Collections;
020 import java.util.List;
021 import java.util.Map;
022 import java.util.Set;
023
024 import org.apache.log4j.Logger;
025 import org.kuali.kfs.coa.businessobject.ObjectCode;
026 import org.kuali.rice.kew.exception.WorkflowException;
027 import org.kuali.rice.kns.util.KualiDecimal;
028
029 public class LaborModuleServiceNoOp implements LaborModuleService {
030
031 private Logger LOG = Logger.getLogger(getClass());
032
033 public KualiDecimal calculateFringeBenefit(Integer fiscalYear, String chartCode, String objectCode, KualiDecimal salaryAmount) {
034 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
035 return KualiDecimal.ZERO;
036 }
037
038 public KualiDecimal calculateFringeBenefitFromLaborObject(LaborLedgerObject laborLedgerObject, KualiDecimal salaryAmount) {
039 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
040 return KualiDecimal.ZERO;
041 }
042
043 public int countPendingSalaryExpenseTransfer(String emplid) {
044 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
045 return 0;
046 }
047
048 public void createAndBlankApproveSalaryExpenseTransferDocument(String documentDescription, String explanation, String annotation, List<String> adHocRecipients, List<LaborLedgerExpenseTransferAccountingLine> sourceAccoutingLines, List<LaborLedgerExpenseTransferAccountingLine> targetAccoutingLines) throws WorkflowException {
049 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
050 }
051
052 public boolean doesLaborLedgerPositionObjectGroupExist(String positionObjectGroupCode) {
053 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
054 return false;
055 }
056
057 public List<String> findEmployeesWithPayType(Map<Integer, Set<String>> payPeriods, List<String> balanceTypes, Map<String, Set<String>> earnCodePayGroupMap) {
058 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
059 return Collections.emptyList();
060 }
061
062 public Collection<LaborLedgerBalance> findLedgerBalances(Map<String, List<String>> fieldValues, Map<String, List<String>> excludedFieldValues, Set<Integer> fiscalYears, List<String> balanceTypes, List<String> positionObjectGroupCodes) {
063 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
064 return Collections.emptyList();
065 }
066
067 public boolean hasFringeBenefitProducingObjectCodes(Integer fiscalYear, String chartOfAccountsCode, String financialObjectCode) {
068 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
069 return false;
070 }
071
072 public boolean hasPendingLaborLedgerEntry(String chartOfAccountsCode, String accountNumber) {
073 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
074 return false;
075 }
076
077 public boolean isEmployeeWithPayType(String emplid, Map<Integer, Set<String>> payPeriods, List<String> balanceTypes, Map<String, Set<String>> earnCodePayGroupMap) {
078 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
079 return false;
080 }
081
082 public LaborLedgerObject retrieveLaborLedgerObject(Integer fiscalYear, String chartOfAccountsCode, String objectCode) {
083 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
084 return null;
085 }
086
087 public LaborLedgerObject retrieveLaborLedgerObject(ObjectCode financialObject) {
088 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
089 return null;
090 }
091
092 public List<LaborLedgerPositionObjectBenefit> retrieveLaborPositionObjectBenefits(Integer fiscalYear, String chartOfAccountsCode, String objectCode) {
093 LOG.warn( "Using No-Op " + getClass().getSimpleName() + " service." );
094 return Collections.emptyList();
095 }
096
097 }