/** * actionName과 Mapping되는 Error시 Message를 보여줄 Page를 를 반환해 준다. * * @param action String ActionName * @return String Error Page * @throws NException Configuration에서 데이터를 가져올 때 발생. */ public static String getErrorMapper(String actionName) throws NException { String messageName = null; NFileManager fileManager = NFileManager.getInstance(); messageName = fileManager.get( actionSpecOnly(actionName), "/navigation-mapper/action-name<" + actionNameOnly(actionName) + ">/error"); if (messageName == null || messageName.equals("")) messageName = fileManager.get(actionSpecOnly(actionName), "/navigation-mapper/global-setting/error"); if (messageName == null) throw new NException( "NSF_NAV_004", "The error page of the action-name(" + actionName + ") is not found."); return messageName; }
public static String getReturnUrlTypeMapper(String actionName) throws NException { String commandNo = null; NFileManager fileManager = NFileManager.getInstance(); commandNo = fileManager.get( actionSpecOnly(actionName), "/navigation-mapper/action-name<" + actionNameOnly(actionName) + ">/return-type"); return commandNo; }
/** * actionName과 Mapping되는 Command를 반환해 준다. * * @param action String ActionName * @return String Command Name * @throws NException Configuration에서 데이터를 가져올 때 발생. */ public static String getCommandMapper(String actionName) throws NException { String commandName = null; NFileManager fileManager = NFileManager.getInstance(); commandName = fileManager.get( actionSpecOnly(actionName), "/navigation-mapper/action-name<" + actionNameOnly(actionName) + ">/command"); if (commandName == null) throw new NException("NSF_NAV_001", "The action-name(" + actionName + ") is not found."); return commandName; }
/** * actionName과 Mapping되는 Return URL을 반환해 준다. * * @param action String ActionName * @return String Return URL * @throws NException Configuration에서 데이터를 가져올 때 발생. */ public static String getReturnUrlMapper(String actionName) throws NException { String returnUrl = null; NFileManager fileManager = NFileManager.getInstance(); returnUrl = fileManager.get( actionSpecOnly(actionName), "/navigation-mapper/action-name<" + actionNameOnly(actionName) + ">/return-url"); if (returnUrl == null && !isNullReturnUrlType(actionName)) throw new NException( "NSF_NAV_003", "The return-url of the action-name(" + actionName + ") is not found."); return returnUrl; }