use of org.mifos.security.rolesandpermission.business.ActivityEntity in project head by mifos.
the class LegacyRolesPermissionsDao method getActivityById.
public ActivityEntity getActivityById(Short id) throws PersistenceException {
try {
Map<String, Object> queryParameters = new HashMap<String, Object>();
queryParameters.put("ACTIVITY_ID", id);
return (ActivityEntity) execUniqueResultNamedQuery(NamedQueryConstants.GET_ACTIVITY_BY_ID, queryParameters);
} catch (Exception e) {
throw new PersistenceException(e);
}
}
use of org.mifos.security.rolesandpermission.business.ActivityEntity in project head by mifos.
the class ReportsPersistence method updateLookUpValue.
public void updateLookUpValue(Short activityId, String inputCategoryName) {
ActivityEntity activityEntity = null;
try {
activityEntity = getPersistentObject(ActivityEntity.class, activityId);
} catch (Exception ex) {
throw new RuntimeException(ex.getMessage());
}
if (activityEntity != null) {
LookUpValueEntity lookUpValueEntity = activityEntity.getDescriptionLookupValues();
ApplicationContextProvider.getBean(MessageLookup.class).updateLookupValue(lookUpValueEntity, inputCategoryName);
}
}
Aggregations