/** * Loads list of {@link ServiceActionTypeBean}. * * @param createDummy Indicates whether to add empty object on the list. */ public final void loadList(boolean createDummy) { loadCodeList( ServiceActionTypeBean.class, serviceActionTypes, CacheManager.getAppServiceActionTypes(), createDummy); }
// TODO - Fix code to use localized strings and system code values. public String getDescription() { String description = ""; String actType = getActionType(); if (getRecordGroup().equalsIgnoreCase("application")) { ApplicationActionTypeBean appActionTypeBean = CacheManager.getBeanByCode(CacheManager.getApplicationActionTypes(), actType); actType = appActionTypeBean == null ? actType.substring(0, 1).toUpperCase() + actType.substring(1) : appActionTypeBean.getDisplayValue(); description = "Application, Action: " + actType; } else if (getRecordGroup().equalsIgnoreCase("service")) { ServiceActionTypeBean serActionTypeBean = CacheManager.getBeanByCode(CacheManager.getAppServiceActionTypes(), actType); actType = serActionTypeBean == null ? actType.substring(0, 1).toUpperCase() + actType.substring(1) : serActionTypeBean.getDisplayValue(); String requestType = getRecordType(); RequestTypeBean requestTypeBean = CacheManager.getBeanByCode(CacheManager.getRequestTypes(), getRecordType()); requestType = requestTypeBean == null ? requestType : requestTypeBean.getDisplayValue(); description = requestType + " (" + getNumber() + "), Action: " + actType; } else { actType = actType.substring(0, 1).toUpperCase() + actType.substring(1); description = getRecordType() + " " + getNumber() + ", Action: " + actType; } return description; }