public void handleTblDataActionHrefRequest(RequestInvocationEvent event){
  AgentsModel model=(AgentsModel)getModel();
  String agentType=getDisplayIDType();
  String universalId=hexToString((String)getDisplayFieldValue(TBL_DATA_ACTION_HREF));
  setPageSessionAttribute(AgentProfileViewBean.UNIVERSAL_ID,universalId);
  SSOToken ssoToken=model.getUserSSOToken();
  String realm=(String)getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
  StringTokenizer st=new StringTokenizer(universalId,"=,");
  st.nextToken();
  String agentName=st.nextToken();
  try {
    AMIdentity amid=new AMIdentity(ssoToken,agentName,IdType.AGENTONLY,realm,null);
    if (agentType.equals(AgentsViewBean.AGENT_WEB) || (agentType.equals(AgentsViewBean.DEFAULT_ID_TYPE))) {
      if (isPropertiesLocallyStored(amid)) {
        setPageSessionAttribute(LOCAL_OR_NOT,PROP_LOCAL);
      }
 else {
        setPageSessionAttribute(LOCAL_OR_NOT,PROP_CENTRAL);
      }
    }
    Class clazz=getAgentCustomizedViewBean(model.getAgentType(amid));
    AMViewBeanBase vb=(AMViewBeanBase)getViewBean(clazz);
    setPageSessionAttribute(PG_SESSION_SUPERCEDE_AGENT_TYPE,model.getAgentType(amid));
    removePageSessionAttribute(GenericAgentProfileViewBean.PS_TABNAME);
    passPgSessionMap(vb);
    vb.forwardTo(getRequestContext());
  }
 catch (  IdRepoException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",model.getErrorString(e));
    forwardTo();
  }
catch (  SSOException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",model.getErrorString(e));
    forwardTo();
  }
catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",model.getErrorString(e));
    forwardTo();
  }
catch (  ClassNotFoundException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",model.getErrorString(e));
    forwardTo();
  }
}

public void handleTblDataActionHrefRequest ( RequestInvocationEvent event ) { AgentsModel model = ( AgentsModel ) getModel ( ) ; String agentType = getDisplayIDType ( ) ; String universalId = hexToString ( ( String ) getDisplayFieldValue ( TBL_DATA_ACTION_HREF ) ) ; setPageSessionAttribute ( AgentProfileViewBean . UNIVERSAL_ID , universalId ) ; SSOToken ssoToken = model . getUserSSOToken ( ) ; String realm = ( String ) getPageSessionAttribute ( AMAdminConstants . CURRENT_REALM ) ; StringTokenizer st = new StringTokenizer ( universalId , "=," ) ; st . nextToken ( ) ; String agentName = st . nextToken ( ) ; try { AMIdentity amid = new AMIdentity ( ssoToken , agentName , IdType . AGENTONLY , realm , null ) ; if ( agentType . equals ( AgentsViewBean . AGENT_WEB ) || ( agentType . equals ( AgentsViewBean . DEFAULT_ID_TYPE ) ) ) { if ( isPropertiesLocallyStored ( amid ) ) { setPageSessionAttribute ( LOCAL_OR_NOT , PROP_LOCAL ) ; } else { setPageSessionAttribute ( LOCAL_OR_NOT , PROP_CENTRAL ) ; } } Class clazz = getAgentCustomizedViewBean ( model . getAgentType ( amid ) ) ; AMViewBeanBase vb = ( AMViewBeanBase ) getViewBean ( clazz ) ; setPageSessionAttribute ( PG_SESSION_SUPERCEDE_AGENT_TYPE , model . getAgentType ( amid ) ) ; removePageSessionAttribute ( GenericAgentProfileViewBean . PS_TABNAME ) ; passPgSessionMap ( vb ) ; vb . forwardTo ( getRequestContext ( ) ) ; } catch ( IdRepoException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , model . getErrorString ( e ) ) ; forwardTo ( ) ; } catch ( SSOException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , model . getErrorString ( e ) ) ; forwardTo ( ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , model . getErrorString ( e ) ) ; forwardTo ( ) ; } catch ( ClassNotFoundException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , model . getErrorString ( e ) ) ; forwardTo ( ) ; } }
forwards request to edit agent view bean .
