1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
24
25
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 }