use of org.mifos.framework.util.helpers.TransactionDemarcate in project head by mifos.
the class MeetingAction method load.
@TransactionDemarcate(joinToken = true)
public ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MeetingActionForm form1 = (MeetingActionForm) form;
MeetingBO meeting = (MeetingBO) SessionUtils.getAttribute(CustomerConstants.CUSTOMER_MEETING, request);
clearActionForm(form1);
if (meeting != null) {
setValuesInActionForm(form1, meeting);
}
List<WeekDay> workingDays = getLocalizedWorkingDays();
SessionUtils.setCollectionAttribute(MeetingConstants.WEEKDAYSLIST, workingDays, request);
SessionUtils.setCollectionAttribute(MeetingConstants.WEEKRANKLIST, RankOfDay.getRankOfDayList(), request);
return mapping.findForward(ActionForwards.load_success.toString());
}
use of org.mifos.framework.util.helpers.TransactionDemarcate in project head by mifos.
the class MeetingAction method update.
@TransactionDemarcate(validateAndResetToken = true)
@CloseSession
public ActionForward update(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MeetingActionForm actionForm = (MeetingActionForm) form;
MeetingBO meeting = createMeeting(actionForm);
CustomerBO customerInSession = (CustomerBO) SessionUtils.getAttribute(Constants.BUSINESS_KEY, request);
MeetingDto meetingDto = null;
if (meeting != null) {
meetingDto = meeting.toDto();
}
meetingServiceFacade.updateCustomerMeeting(meetingDto, customerInSession.getCustomerId());
ActionForwards forward = forwardForUpdate(actionForm.getCustomerLevelValue());
return mapping.findForward(forward.toString());
}
use of org.mifos.framework.util.helpers.TransactionDemarcate in project head by mifos.
the class BirtAdminDocumentUploadAction method preview.
@TransactionDemarcate(joinToken = true)
public ActionForward preview(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
BirtAdminDocumentUploadActionForm uploadForm = (BirtAdminDocumentUploadActionForm) form;
if (uploadForm.getAccountTypeId().equals(ProductType.LOAN.getValue().toString())) {
uploadForm.setAccountTypeName("LOAN");
} else if (uploadForm.getAccountTypeId().equals(ProductType.SAVINGS.getValue().toString())) {
uploadForm.setAccountTypeName("SAVINGS");
} else {
uploadForm.setAccountTypeName("TRANSACTIONS PAYMENTS");
}
updateSelectedStatus(request, uploadForm);
return mapping.findForward(ActionForwards.preview_success.toString());
}
use of org.mifos.framework.util.helpers.TransactionDemarcate in project head by mifos.
the class LoginAction method cancel.
@TransactionDemarcate(validateAndResetToken = true)
public ActionForward cancel(ActionMapping mapping, ActionForm form, @SuppressWarnings("unused") HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
String username = ((LoginActionForm) form).getUserName();
PersonnelBO personnelBO = this.personnelDao.findPersonnelByUsername(username);
String actionForward = getCancelForward(personnelBO.getPasswordChanged());
return mapping.findForward(actionForward);
}
use of org.mifos.framework.util.helpers.TransactionDemarcate in project head by mifos.
the class RolesPermissionsAction method delete.
@TransactionDemarcate(validateAndResetToken = true)
public ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
RoleBO role = (RoleBO) SessionUtils.getAttribute(Constants.BUSINESS_KEY, request);
rolesPermissionServiceFacade.deleteRole(role.getVersionNo(), role.getId());
role = null;
return mapping.findForward(ActionForwards.delete_success.toString());
}
Aggregations