Package org.apache.agila.services.notification

Examples of org.apache.agila.services.notification.NotificationID


        List l = nsi.getForUserID(new UserID(1));

        assertTrue(l != null);
        assertTrue(l.size() == 0);

        nsi.get(new NotificationID(3));
    }
View Full Code Here


    public void testSimple() throws Exception {

        NotificationServiceImpl nsi = new NotificationServiceImpl();

        NotificationID id = nsi.notify(new UserID(1), "test message");

        assertTrue(id != null);
        assertTrue(id.getID() == 1);

        Notification impl =  nsi.getNotification(id);

        assertTrue(impl != null);
        assertTrue(impl instanceof NotificationImpl);
View Full Code Here

    }

    public void dismiss_from_list( HttpServletRequest request, HttpServletResponse response ) throws ServletException,
            IOException {

        notifyService.dismissNotification( new NotificationID( Integer.parseInt( request.getParameter( "notifyid" ) ) ) );
        show_notification_list( request, response );
    }
View Full Code Here

    private int counter = 0;

    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);
View Full Code Here

    private int counter = 0;

    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);
View Full Code Here

TOP

Related Classes of org.apache.agila.services.notification.NotificationID

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.