001    /**
002     * Copyright 2005-2015 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    /*
017     * To change this template, choose Tools | Templates
018     * and open the template in the editor.
019     */
020    package org.kuali.rice.krms.api.repository;
021    
022    import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
023    import org.kuali.rice.krms.api.repository.proposition.PropositionDefinition;
024    
025    /**
026     * a Sub-interface to help manage the translation methods as separate business
027     * logic
028     *
029     * @author nwright
030     */
031    public interface TranslateBusinessMethods {
032    
033        public String translateNaturalLanguageForObject(String naturalLanguageUsageId,
034                String typeId, String krmsObjectId,
035                String languageCode) throws RiceIllegalArgumentException;
036    
037        public String translateNaturalLanguageForProposition(String naturalLanguageUsageId,
038                PropositionDefinition propositionDefinintion,
039                String languageCode)
040                throws RiceIllegalArgumentException;
041    
042        public NaturalLanguageTree translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId,
043                PropositionDefinition propositionDefinintion,
044                String languageCode)
045                throws RiceIllegalArgumentException;
046    }