// --------------------------------------------------
// Gender
List<LabelValueBean> gender = new ArrayList<LabelValueBean>();
gender.add(new LabelValueBean(appProp.getValue("label.male"),
BaseConstants.GENDER_MALE));
gender.add(new LabelValueBean(appProp.getValue("label.female"),
BaseConstants.GENDER_FEMALE));
gender.add(new LabelValueBean(appProp.getValue("label.unknown"),
BaseConstants.GENDER_UNKNOWN));
getServletContext().setAttribute(BaseConstants.LIST_OF_GENDER_OPTIONS,
gender);
// Search Category
List<LabelValueBean> adminAction = new ArrayList<LabelValueBean>();
adminAction.add(new LabelValueBean(BaseConstants.ADMIN_ACTION_DELETE,
BaseConstants.ADMIN_ACTION_DELETE));
adminAction.add(new LabelValueBean(BaseConstants.ADMIN_ACTION_ACTIVATE,
BaseConstants.ADMIN_ACTION_ACTIVATE));
adminAction.add(new LabelValueBean(BaseConstants.ADMIN_ACTION_MODIFY,
BaseConstants.ADMIN_ACTION_MODIFY));
adminAction.add(new LabelValueBean(
BaseConstants.ADMIN_ACTION_DEACTIVATE,
BaseConstants.ADMIN_ACTION_DEACTIVATE));
adminAction.add(new LabelValueBean(BaseConstants.ADMIN_ACTION_LOCK,
BaseConstants.ADMIN_ACTION_LOCK));
getServletContext().setAttribute(BaseConstants.LIST_OF_ADMIN_OPTIONS,
adminAction);
// Approval Category
List<LabelValueBean> approvalAction = new ArrayList<LabelValueBean>();
approvalAction.add(new LabelValueBean(BaseConstants.MODIFY_IT,
BaseConstants.MODIFY_IT));
approvalAction.add(new LabelValueBean(BaseConstants.APPROVE_IT,
BaseConstants.APPROVE_IT));
approvalAction.add(new LabelValueBean(BaseConstants.DEACTIVATE_IT,
BaseConstants.DEACTIVATE_IT));
approvalAction.add(new LabelValueBean(BaseConstants.DECLINE_IT,
BaseConstants.DECLINE_IT));
approvalAction.add(new LabelValueBean(BaseConstants.DELETE_IT,
BaseConstants.DELETE_IT));
getServletContext().setAttribute(
BaseConstants.LIST_OF_APPROVAL_OPTIONS, approvalAction);
// Account Status
List<LabelValueBean> accountStatus = new ArrayList<LabelValueBean>();
accountStatus.add(new LabelValueBean(appProp
.getValue("label.statusactive"), BaseConstants.ACCOUNT_ACTIVE));
accountStatus.add(new LabelValueBean(appProp
.getValue("label.accountdeactivated"),
BaseConstants.ACCOUNT_DEACTIVATED));
accountStatus
.add(new LabelValueBean(
appProp.getValue("label.accountlocked"),
BaseConstants.ACCOUNT_LOCKED));
accountStatus
.add(new LabelValueBean(appProp.getValue("label.accountnew"),
BaseConstants.ACCOUNT_UNAPPROVED));
getServletContext().setAttribute(BaseConstants.LOOKUP_ACCOUNT_STATUS,
accountStatus);
// Status
List<LabelValueBean> status = new ArrayList<LabelValueBean>();
status.add(new LabelValueBean(appProp.getValue("label.statusactive"),
BaseConstants.ACTIVE));
status.add(new LabelValueBean(appProp.getValue("label.statusinactive"),
BaseConstants.INACTIVE));
getServletContext().setAttribute(BaseConstants.LOOKUP_STATUS, status);
logger.debug("Other Cache loaded...");
}