Examples of markAsRead()


Examples of com.googlecode.gmail4j.javamail.ImapGmailClient.markAsRead()

            if (messages.size() > 0) {
                log.debug("Starting to mark message as read.");
                GmailMessage gmailMessage = messages.get(0);
                log.debug("Msg Subject: " + gmailMessage.getSubject() + " has "
                        + "been marked as read.");
                client.markAsRead(gmailMessage.getMessageNumber());
                log.debug("Finished marking message as read.");
            }
        } catch (final Exception e) {
            log.error("Test Failed", e);
            fail("Caught exception: " + e.getMessage());
View Full Code Here

Examples of com.googlecode.gmail4j.javamail.ImapGmailClient.markAsRead()

            if (messages.size() > 0) {
                log.debug("Starting to mark message as read.");
                GmailMessage gmailMessage = messages.get(0);
                log.debug("Msg Subject: " + gmailMessage.getSubject() + " has "
                        + "been marked as read.");
                client.markAsRead(gmailMessage.getMessageNumber());
                log.debug("Finished marking message as read.");
            }
        } catch (final Exception e) {
            log.error("Test Failed", e);
            fail("Caught exception: " + e.getMessage());
View Full Code Here

Examples of er.bugtracker.Markable.markAsRead()

    public void appendToResponse(WOResponse aResponse, WOContext aContext) {
        if(context().page() instanceof InspectPageInterface) {
            EOEnterpriseObject eo = object();
            if (eo instanceof Markable) {
                Markable markable = (Markable) eo;
                markable.markAsRead();
            }
        }
        super.appendToResponse(aResponse, aContext);
    }
}
View Full Code Here

Examples of org.apache.lenya.inbox.InboxMessage.markAsRead()

        String id = getParameterAsString("messageId");
        if (id != null) {
            org.apache.lenya.inbox.Inbox inbox = (org.apache.lenya.inbox.Inbox) getParameter("inbox");
            InboxMessage message = inbox.getMessage(id);
            message.markAsRead(true);
        }
       
    }

    protected void doExecute() throws Exception {
View Full Code Here

Examples of org.apache.lenya.inbox.InboxMessage.markAsRead()

        if (id != null) {
            InboxMessage message = inbox.getMessage(id);
            if (message == null) {
                addErrorMessage("The message " + id + " does not exist.");
            } else {
                message.markAsRead(true);
            }
        }
       
        InboxMessage[] messages = inbox.getMessages();
        int nofUnreadMessages = 0;
View Full Code Here

Examples of org.waveprotocol.wave.model.supplement.SupplementedWave.markAsRead()

    SupplementedWave supplement = buildSupplement(operation, context, participant);

    if (modifyHow.equals(ModifyHowType.MARK_AS_READ.getValue())) {
      if (blipId == null || blipId.isEmpty()) {
        supplement.markAsRead();
      } else {
        ObservableConversation conversation =
            context.openConversation(operation, participant).getRoot();
        ConversationBlip blip = conversation.getBlip(blipId);
        supplement.markAsRead(blip);
View Full Code Here

Examples of org.waveprotocol.wave.model.supplement.SupplementedWave.markAsRead()

        supplement.markAsRead();
      } else {
        ObservableConversation conversation =
            context.openConversation(operation, participant).getRoot();
        ConversationBlip blip = conversation.getBlip(blipId);
        supplement.markAsRead(blip);
      }
    } else if (modifyHow.equals(ModifyHowType.MARK_AS_UNREAD.getValue())) {
      supplement.markAsUnread();
    } else {
      throw new UnsupportedOperationException("Unsupported folder action: " + modifyHow);
View Full Code Here

Examples of org.waveprotocol.wave.model.supplement.SupplementedWave.markAsRead()

    SupplementedWave supplement = buildSupplement(operation, context, participant);

    if (modifyHow.equals(ModifyHowType.MARK_AS_READ.getValue())) {
      if (blipId == null || blipId.isEmpty()) {
        supplement.markAsRead();
      } else {
        ObservableConversation conversation =
            context.openConversation(operation, participant).getRoot();
        ConversationBlip blip = conversation.getBlip(blipId);
        supplement.markAsRead(blip);
View Full Code Here

Examples of org.waveprotocol.wave.model.supplement.SupplementedWave.markAsRead()

        supplement.markAsRead();
      } else {
        ObservableConversation conversation =
            context.openConversation(operation, participant).getRoot();
        ConversationBlip blip = conversation.getBlip(blipId);
        supplement.markAsRead(blip);
      }
    } else if (modifyHow.equals(ModifyHowType.MARK_AS_UNREAD.getValue())) {
      supplement.markAsUnread();
    } else {
      throw new UnsupportedOperationException("Unsupported folder action: " + modifyHow);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.