View Javadoc
1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krms.service;
17  
18  import org.kuali.rice.krms.builder.ComponentBuilder;
19  import org.kuali.rice.krms.dto.TemplateInfo;
20  
21  /**
22   * @author Kuali Student Team
23   */
24  public interface TemplateRegistry {
25  
26      /**
27       * Returns a TemplateInfo with the bean names for the ui to display for the given type.
28       *
29       * @param type
30       * @return
31       */
32      TemplateInfo getTemplateForType(String type);
33  
34      /**
35       * Return the termspec name for the given type.
36       *
37       * @param type
38       * @return
39       */
40      String getTermSpecNameForType(String type);
41  
42      /**
43       * Return an operator for the given type to be used as a default proposition parameter value.
44       *
45       * @param type
46       * @return
47       */
48      String getOperationForType(String type);
49  
50      /**
51       * Return a constant value for the given type to be used as a default proposition parameter value.
52       *
53       * @param type
54       * @return
55       */
56      String getValueForType(String type);
57  
58      /**
59       * Return a ComponentBuilder for the given type.
60       *
61       * @param type
62       * @return
63       */
64      ComponentBuilder getComponentBuilderForType(String type);
65  
66  }