Package org.apache.agila.impl

Examples of org.apache.agila.impl.NotificationImpl


    protected NotificationImpl createNew(UserID userID, String msg) {

        NotificationID id = new NotificationID(++counter);

        NotificationImpl ni = new NotificationImpl(id, userID, msg);

        List l = (List) userMap.get(userID);

        if (l == null) {
View Full Code Here


        if (l != null) {

            Iterator it = l.iterator();

            while(it.hasNext()) {
                NotificationImpl ni = (NotificationImpl) it.next();

                if  (ni.getStatus() == 0) {
                    flist.add(ni);
                }
            }
        }
View Full Code Here

     *
     * @param id the id of the notification to be dismissed
     */
    public void dismissNotification(NotificationID id) {

        NotificationImpl ni = get(id);

        if (ni == null) {
            return;
        }

        ni.setStatus(Notification.STATUS_INACTIVE);

        save(ni);
    }
View Full Code Here

     * @param message the notification message
     * @return the id of the new notification
     */
    public NotificationID notify(UserID userID, String message) {

        NotificationImpl impl = createNew(userID, message);

        return impl.getNotificationID();
    }
View Full Code Here

    protected NotificationImpl createNew(UserID userID, String msg) {

        NotificationID id = new NotificationID(++counter);

        NotificationImpl ni = new NotificationImpl(id, userID, msg);

        List l = (List) userMap.get(userID);

        if (l == null) {
View Full Code Here

        if (l != null) {

            Iterator it = l.iterator();

            while(it.hasNext()) {
                NotificationImpl ni = (NotificationImpl) it.next();

                if  (ni.getStatus() == 0) {
                    flist.add(ni);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.agila.impl.NotificationImpl

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.