congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MessageMoves.isChange
Code IndexAdd Tabnine to your IDE (free)

How to use
isChange
method
in
org.apache.james.mailbox.model.MessageMoves

Best Java code snippets using org.apache.james.mailbox.model.MessageMoves.isChange (Showing top 2 results out of 315)

origin: org.apache.james/apache-james-mailbox-store

public void setInMailboxesNoCheck(MessageId messageId, MailboxId targetMailboxId, MailboxSession mailboxSession) throws MailboxException {
  MessageIdMapper messageIdMapper = mailboxSessionMapperFactory.getMessageIdMapper(mailboxSession);
  List<MailboxMessage> currentMailboxMessages = messageIdMapper.find(ImmutableList.of(messageId), MessageMapper.FetchType.Full);
  MessageMoves messageMoves = MessageMoves.builder()
    .previousMailboxIds(toMailboxIds(currentMailboxMessages))
    .targetMailboxIds(targetMailboxId)
    .build();
  if (messageMoves.isChange()) {
    applyMessageMoveNoMailboxChecks(mailboxSession, currentMailboxMessages, messageMoves);
  }
}
origin: org.apache.james/apache-james-mailbox-store

@Override
public void setInMailboxes(MessageId messageId, Collection<MailboxId> targetMailboxIds, MailboxSession mailboxSession) throws MailboxException {
  assertRightsOnMailboxes(targetMailboxIds, mailboxSession, Right.Read);
  List<MailboxMessage> currentMailboxMessages = findRelatedMailboxMessages(messageId, mailboxSession);
  if (currentMailboxMessages.isEmpty()) {
    LOGGER.info("Tried to access {} not accessible for {}", messageId, mailboxSession.getUser().getUserName());
    return;
  }
  MessageMoves messageMoves = MessageMoves.builder()
    .targetMailboxIds(targetMailboxIds)
    .previousMailboxIds(toMailboxIds(currentMailboxMessages))
    .build();
  if (messageMoves.isChange()) {
    applyMessageMoves(mailboxSession, currentMailboxMessages, messageMoves);
  }
}
org.apache.james.mailbox.modelMessageMovesisChange

Popular methods of MessageMoves

  • builder
  • addedMailboxIds
  • removedMailboxIds
  • <init>

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JCheckBox (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now