use of org.mifos.application.master.business.LookUpValueEntity in project head by mifos.
the class LegacyRolesPermissionsDao 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);
}
}
use of org.mifos.application.master.business.LookUpValueEntity in project head by mifos.
the class LegacyRolesPermissionsDao method createActivityEntity.
private ActivityEntity createActivityEntity(short parentActivity, int lookUpId) throws ServiceException, ActivityGeneratorException, PersistenceException {
ActivityEntity parentActivityEntity;
if (parentActivity != 0) {
parentActivityEntity = getPersistentObject(ActivityEntity.class, parentActivity);
} else {
parentActivityEntity = null;
}
LookUpValueEntity lookupValueEntity = getPersistentObject(LookUpValueEntity.class, lookUpId);
ActivityEntity activityEntity = new ActivityEntity((short) calculateDynamicActivityId(), parentActivityEntity, lookupValueEntity);
createOrUpdate(activityEntity);
return activityEntity;
}
use of org.mifos.application.master.business.LookUpValueEntity 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