public AppFormForTrackingVo getFormMenuAction(Integer formId) { if(formId == null) throw new CodingRuntimeException("Cannot get AppFormMenuActionVo for a null FormId."); AppForm domainObject = (AppForm)getDomainFactory().getDomainObject(AppForm.class, formId); return AppFormForTrackingVoAssembler.create(domainObject); }
private MenuActionVoCollection getDeniedActionForCurrentUser() { MenuActionVoCollection deniedActions = new MenuActionVoCollection(); AppFormForTrackingVo currentForm = domain.getFormMenuAction(engine.getFormName().getID()); if(currentForm == null) return null; IAppRole role = engine.getLoggedInRole(); if(role == null) return null; for(MenuActionVo menuAction : currentForm.getMenuActions()) { if(menuAction == null) continue; if(!role.hasMenuActionRight(currentForm, menuAction)) { deniedActions.add(menuAction); } } return deniedActions; }
private List<PatientCaseNoteFolderActions> listDeniedActionForCurrentUser() { List<PatientCaseNoteFolderActions> deniedActions = new ArrayList<PatientCaseNoteFolderActions>(); AppFormForTrackingVo currentForm = domain.getFormMenuAction(engine.getFormName().getID()); if(currentForm == null) return null; IAppRole role = engine.getLoggedInRole(); if(role == null) return null; for(MenuActionVo menuAction : currentForm.getMenuActions()) { if(menuAction == null) continue; if(!role.hasMenuActionRight(currentForm, menuAction)) { PatientCaseNoteFolderActions mappedAction = getMappedAction(menuAction); if(mappedAction != null) { deniedActions.add(mappedAction); } } } return deniedActions; }
private List<InpatientEpisodeMaintenanceActions> listDeniedActionForCurrentUser() { List<InpatientEpisodeMaintenanceActions> deniedActions = new ArrayList<InpatientEpisodeMaintenanceActions>(); AppFormForTrackingVo currentForm = domain.getFormMenuAction(engine.getFormName().getID()); if(currentForm == null) return null; IAppRole role = engine.getLoggedInRole(); if(role == null) return null; for(MenuActionVo menuAction : currentForm.getMenuActions()) { if(menuAction == null) continue; if(!role.hasMenuActionRight(currentForm, menuAction)) { InpatientEpisodeMaintenanceActions mappedAction = getMappedAction(menuAction); if(mappedAction != null) { deniedActions.add(mappedAction); } } } return deniedActions; }
public AppFormForTrackingVo getFormMenuAction(Integer formID) { if(formID == null) throw new CodingRuntimeException("Cannot get AppFormMenuActionVo for a null FormId."); AppForm domainObject = (AppForm)getDomainFactory().getDomainObject(AppForm.class, formID); return AppFormForTrackingVoAssembler.create(domainObject); }
private List<AppointmentOutcomeDialogUserAction> getDeniedActionsForCurrentUser() { IAppRole role = engine.getLoggedInRole(); if (role == null) return null; AppFormForTrackingVo currentForm = domain.getFormMenuAction(engine.getFormName().getID()); if (currentForm == null || currentForm.getMenuActions() == null) return null; List<AppointmentOutcomeDialogUserAction> deniedActions = new ArrayList<AppointmentOutcomeDialogUserAction>(); for (MenuActionVo menuAction : currentForm.getMenuActions()) { if (menuAction == null) continue; if (!role.hasMenuActionRight(currentForm, menuAction)) { AppointmentOutcomeDialogUserAction mappedAction = getMappedAction(menuAction); if (mappedAction != null) { deniedActions.add(mappedAction); } } } return deniedActions; }
private List<TCIHistoryActions> listDeniedActionForCurrentUser() { List<TCIHistoryActions> deniedActions = new ArrayList<TCIHistoryActions>(); AppFormForTrackingVo currentForm = domain.getFormMenuAction(engine.getFormName().getID()); if(currentForm == null) return null; IAppRole role = engine.getLoggedInRole(); if(role == null) return null; for(MenuActionVo menuAction : currentForm.getMenuActions()) { if(menuAction == null) continue; if(!role.hasMenuActionRight(currentForm, menuAction)) { TCIHistoryActions mappedAction = getMappedAction(menuAction); if(mappedAction != null) { deniedActions.add(mappedAction); } } } return deniedActions; }
private void listDeniedActionForCurrentUser() { AppFormForTrackingVo currentForm = domain.getFormMenuAction(engine.getFormName().getID()); if(currentForm == null) return; IAppRole role = engine.getLoggedInRole(); if(role == null) return; for(MenuActionVo menuAction : currentForm.getMenuActions()) { if(menuAction == null) continue; if(!role.hasMenuActionRight(currentForm, menuAction)) { showHidebuttons(menuAction.getID_MenuAction()); } } }