public RegistrationWorkingsetPresenter() {
}
- /**
-
-
/**
* @param doReload reload the workingset from the persistent storage.
* Workingsets which are not yet persisted are preserved.
- *
*/
protected void refreshView(boolean doReload) {
applyWorkingset();
}
- /**
- * {@inheritDoc}
- */
@Override
public void handleViewEntered() {
super.handleViewEntered();
if(event.getReason().equals(Reason.SAVE)){
Optional<Registration> registrationOpt = Optional.ofNullable(null);
-
UUID typeDesignationUuid = ((NameTypeDesignationPopupEditor)event.getPopup()).getBean().getUuid();
-
try {
clearSession();
registrationOpt = findRegistrationInContext(event.getPopup());
// ignore other editors
}
- /**
- * @param registrationOpt
- * @param name
- */
private void assocciateOrQueueBlockingRegistration(Optional<Registration> registrationOpt, UUID nameUuid) {
registrationOpt.ifPresent(reg -> registrationWorkflowService.addBlockingRegistration(nameUuid, reg));
if(!registrationOpt.isPresent()){
}
}
- /**
- *
- */
+
public void clearSession() {
getRepo().clearSession();
}
-
@EventBusListenerMethod(filter = ShowDetailsEventEntityTypeFilter.RegistrationWorkingSet.class)
public void onShowDetailsEventForRegistrationWorkingSet(ShowDetailsEvent<RegistrationWorkingSet,?> event) {
}
}
-
-
public Optional<Registration> findRegistrationInContext(PopupView popupView) {
Stack<EditorActionContext>context = ((AbstractPopupEditor)popupView).getEditorActionContext();
return findRegistrationInContext(context);
/**
* Finds the Registration in the EditorContext stack
- *
- * @param context
- * @return
*/
public Optional<Registration> findRegistrationInContext(Stack<EditorActionContext> context) {
EditorActionContext rootCtx = context.get(0);