Package org.jresearch.gossip.beans.subscription

Examples of org.jresearch.gossip.beans.subscription.Subscriber


            st.setInt(1, Integer.parseInt(tid));
            st.setString(2, uname);
            rs = st.executeQuery();

            while (rs.next()) {
                Subscriber s = new Subscriber();
                s.setEmail(rs.getString("user_mail"));
                s.setName(rs.getString("user_name"));
                list.add(s);
            }
        } finally {
            if (rs != null) {
                rs.close();
View Full Code Here


                        .getAttribute(IConst.CONTEXT.MAIL_QUEUE);

                Iterator it = subscrbe.iterator();
                BanGuard guard = BanGuard.getInstance();
                while (it.hasNext()) {
                    Subscriber s = (Subscriber) it.next();
                    if (!guard.checkBan(s.getEmail(), BanType.EMAIL)) {
                        messArgs[0] = HtmlCodec.encode(s.getName());

                        queue.push(new MailMessage(messages.getMessage(
                                "mails.NEW_MESSAGE", messArgs), messages
                                .getMessage("mails.NEW_MESSAGE_SUBJ"), config
                                .get(IConst.CONFIG.ADMINMAIL), messages
                                .getMessage("mails.FORUM_ADMIN"), s.getEmail(),
                                s.getName()));
                    }
                }
            }

            //subscribe user to e-mail from this thread...
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.beans.subscription.Subscriber

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.