View Javadoc
1   /**
2    * Copyright 2005-2015 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.kim.inquiry;
17  
18  import org.kuali.rice.kim.bo.impl.KimAttributes;
19  import org.kuali.rice.kns.inquiry.KualiInquirableImpl;
20  import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
21  
22  /**
23   * Helper class for common needs of the KIM inquiry screens. 
24   * 
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   */
27  public abstract class KimInquirableImpl extends KualiInquirableImpl {
28      private static final long serialVersionUID = 1L;
29      
30      protected final String ID = "id";
31      protected final String NAME = "name";
32      protected final String NAME_TO_DISPLAY = "nameToDisplay";
33      protected final String TEMPLATE_NAME = "template.name";
34      protected final String NAMESPACE_CODE = "namespaceCode";
35      protected final String TEMPLATE_NAMESPACE_CODE = "template.namespaceCode";
36      protected final String DETAIL_OBJECTS = "detailObjects";
37      protected final String ATTRIBUTE_DATA_ID = "attributeDataId";
38      protected final String ASSIGNED_TO_ROLES = "assignedToRolesToDisplay";
39  
40      protected String getKimAttributeLabelFromDD(String attributeName){
41          return KRADServiceLocatorWeb.getDataDictionaryService().getAttributeLabel(KimAttributes.class, attributeName);
42      }
43      
44  }