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.cg.service; 017 018 import javax.jws.WebParam; 019 import javax.jws.WebService; 020 import javax.jws.soap.SOAPBinding; 021 022 import org.kuali.kfs.integration.cg.ContractsAndGrantsConstants; 023 import org.kuali.kfs.integration.cg.dto.AccountCreationStatusDTO; 024 import org.kuali.kfs.integration.cg.dto.AccountParametersDTO; 025 026 @WebService(name = ContractsAndGrantsConstants.AccountCreationService.WEB_SERVICE_NAME, 027 targetNamespace = ContractsAndGrantsConstants.MODULE_TARGET_NAMESPACE) 028 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, 029 parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) 030 public interface AccountCreationService { 031 032 public AccountCreationStatusDTO createAccount( 033 @WebParam(name="accountParametersDTO")AccountParametersDTO accountParametersDTO); 034 035 public boolean isValidAccount( 036 @WebParam(name="accountNumber") String accountNumber); 037 038 public boolean isValidChartAccount( 039 @WebParam(name="chartOfAccountCode") String chartOfAccountsCode, @WebParam(name="accountNumber") String accountNumber); 040 041 public boolean isValidChartCode( 042 @WebParam(name="chartOfAccountsCode") String chartOfAccountsCode); 043 044 public boolean accountsCanCrossCharts(); 045 046 }