Ejemplo n.º 1
0
        public override string getMessageWithoutId(MessageInformation info)
        {
            MessageInformation key = info;

            if (key == null)
            {
                key = new MessageInformation();
            }
            return(getMessageWithoutId(key.MsgId, key.MsgCategory, key.MsgLang, key.MsgTokens));
        }
Ejemplo n.º 2
0
        public static void addMessage(string msgId, string category, string lang, string message)
        {
            MessageInformation info = new MessageInformation();

            info.MsgId       = msgId;
            info.MsgCategory = category;
            info.MsgLang     = lang;

            addMessage(info, message);
        }
Ejemplo n.º 3
0
        public override string getMessage(MessageInformation info)
        {
            MessageInformation key = info;

            if (key == null)
            {
                key = new MessageInformation();
            }
            return(addMessageId(key.MsgId, key.MsgCategory, getMessageWithoutId(key)));
        }
Ejemplo n.º 4
0
 public static void addMessage(MessageInformation info, string message)
 {
     if ((info != null) && (info.MsgId != null) && (!"".Equals(info.MsgId)))
     {
         if (messageMap.ContainsKey(info.ToString()))
         {
             //ComponentLogger.info(typeof(CacheMessageManager), "CMN-1007W : メッセージIDが重複しています。メッセージID : " + info.MsgId);
         }
         messageMap[info.ToString()] = message;
     }
 }
Ejemplo n.º 5
0
        public override string getMessageWithoutId(string msgId, string category, string lang)
        {
            if ((msgId == null) || ("".Equals(msgId)))
            {
                return("CMN-1001E : メッセージIDが指定されていません。");
            }
            if ((messageMap == null) || (messageMap.Count == 0))
            {
                return("CMN-1002E : 指定されたIDに該当するメッセージが存在しません。 : " + msgId);
            }
            MessageInformation info = new MessageInformation();

            info.MsgId       = msgId;
            info.MsgCategory = category;
            info.MsgLang     = lang;

            string message = (string)messageMap[info.ToString()];

            if (message == null)
            {
                return("CMN-1002E : 指定されたIDに該当するメッセージが存在しません。 : " + msgId);
            }
            return(message);
        }
Ejemplo n.º 6
0
 public abstract string getMessageWithoutId(MessageInformation paramMessageInformation);
Ejemplo n.º 7
0
 public abstract string getMessage(MessageInformation paramMessageInformation);