类javax.mail.search.NotTerm源码实例Demo

下面列出了怎么用javax.mail.search.NotTerm的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: hop   文件: MailConnection.java
/**
 * Set filter on subject.
 *
 * @param subject messages will be filtered on subject
 * @param notTerm negate condition
 */
public void setSubjectTerm( String subject, boolean notTerm ) {
  if ( !Utils.isEmpty( subject ) ) {
    if ( notTerm ) {
      addSearchTerm( new NotTerm( new SubjectTerm( subject ) ) );
    } else {
      addSearchTerm( new SubjectTerm( subject ) );
    }
  }
}
 
源代码2 项目: hop   文件: MailConnection.java
/**
 * Search all messages with body containing the word bodyfilter
 *
 * @param bodyfilter
 * @param notTerm    negate condition
 */
public void setBodyTerm( String bodyfilter, boolean notTerm ) {
  if ( !Utils.isEmpty( bodyfilter ) ) {
    if ( notTerm ) {
      addSearchTerm( new NotTerm( new BodyTerm( bodyfilter ) ) );
    } else {
      addSearchTerm( new BodyTerm( bodyfilter ) );
    }
  }
}
 
源代码3 项目: hop   文件: MailConnection.java
/**
 * Set filter on message sender.
 *
 * @param sender  messages will be filtered on sender
 * @param notTerm negate condition
 */
public void setSenderTerm( String sender, boolean notTerm ) {
  if ( !Utils.isEmpty( sender ) ) {
    if ( notTerm ) {
      addSearchTerm( new NotTerm( new FromStringTerm( sender ) ) );
    } else {
      addSearchTerm( new FromStringTerm( sender ) );
    }
  }
}
 
源代码4 项目: pentaho-kettle   文件: MailConnection.java
/**
 * Set filter on subject.
 *
 * @param subject
 *          messages will be filtered on subject
 * @param notTerm
 *          negate condition
 */
public void setSubjectTerm( String subject, boolean notTerm ) {
  if ( !Utils.isEmpty( subject ) ) {
    if ( notTerm ) {
      addSearchTerm( new NotTerm( new SubjectTerm( subject ) ) );
    } else {
      addSearchTerm( new SubjectTerm( subject ) );
    }
  }
}
 
源代码5 项目: pentaho-kettle   文件: MailConnection.java
/**
 * Search all messages with body containing the word bodyfilter
 *
 * @param bodyfilter
 * @param notTerm
 *          negate condition
 */
public void setBodyTerm( String bodyfilter, boolean notTerm ) {
  if ( !Utils.isEmpty( bodyfilter ) ) {
    if ( notTerm ) {
      addSearchTerm( new NotTerm( new BodyTerm( bodyfilter ) ) );
    } else {
      addSearchTerm( new BodyTerm( bodyfilter ) );
    }
  }
}
 
源代码6 项目: pentaho-kettle   文件: MailConnection.java
/**
 * Set filter on message sender.
 *
 * @param sender
 *          messages will be filtered on sender
 * @param notTerm
 *          negate condition
 */
public void setSenderTerm( String sender, boolean notTerm ) {
  if ( !Utils.isEmpty( sender ) ) {
    if ( notTerm ) {
      addSearchTerm( new NotTerm( new FromStringTerm( sender ) ) );
    } else {
      addSearchTerm( new FromStringTerm( sender ) );
    }
  }
}
 
 类所在包
 类方法
 同包方法