コード例 #1
0
 /**
  * Called on request from the UI to edit an event handler.
  *
  * @param event Request Invocation Event.
  */
 @SuppressWarnings("unused")
 public void handleTblSubConfigHrefNameRequest(RequestInvocationEvent event) {
   String auditHandler = (String) getDisplayFieldValue(TBL_SUB_CONFIG_HREF_NAME);
   setPageSessionAttribute(AUDIT_HANDLER_NAME, auditHandler);
   setPageSessionAttribute(SERVICE_NAME, serviceName);
   setPageSessionAttribute(
       PG_SESSION_PROFILE_VIEWBEANS, (Serializable) singletonList(viewBeanPath));
   ViewBean vb = getEditViewBean();
   unlockPageTrail();
   passPgSessionMap(vb);
   vb.forwardTo(getRequestContext());
 }
コード例 #2
0
 @Override
 protected void initialize(String serviceName) {
   HttpServletRequest req = RequestManager.getRequestContext().getRequest();
   String location = req.getParameter("Location");
   if (isNotBlank(location)) {
     setPageSessionAttribute(CURRENT_REALM, hexToString(location));
   }
   super.initialize(serviceName);
 }
コード例 #3
0
 /**
  * Called on request from the UI to add a new event handler.
  *
  * @param event Request Invocation Event.
  */
 @SuppressWarnings("unused")
 public void handleTblSubConfigButtonAddRequest(RequestInvocationEvent event) {
   ViewBean vb = getSelectViewBean();
   setPageSessionAttribute(
       PG_SESSION_PROFILE_VIEWBEANS, (Serializable) singletonList(viewBeanPath));
   unlockPageTrail();
   passPgSessionMap(vb);
   vb.forwardTo(getRequestContext());
 }