Interface EntryQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable

public interface EntryQuery extends OsidObjectQuery, OsidSourceableQuery

This is the query for searching entries. Each method specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchTimestamp

      void matchTimestamp(DateTime startTime, DateTime endTime, boolean match)
      Matches entries whose sent time is between the supplied range inclusive.
      Parameters:
      startTime - start time
      endTime - end time
      match - true if for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - startTime is greater than endTime
      NullArgumentException - startTime or endTime is null
      Compliance:
      mandatory - This method must be implemented.
    • clearTimestampTerms

      void clearTimestampTerms()
      Clears the timestamp terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPosterId

      void matchPosterId(Id resourceId, boolean match)
      Matches the poster of the entry.
      Parameters:
      resourceId - Id of a Resource to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPosterIdTerms

      void clearPosterIdTerms()
      Clears the poster Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPosterQuery

      boolean supportsPosterQuery()
      Tests if a ResourceQuery is available for querying posters.
      Returns:
      true if a resource query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPosterQuery

      ResourceQuery getPosterQuery()
      Gets the query for a resource.
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsPosterQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPosterQuery()} is {@code true} .
    • clearPosterTerms

      void clearPosterTerms()
      Clears the poster terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPostingAgentId

      void matchPostingAgentId(Id agentId, boolean match)
      Matches the posting agent of the entry.
      Parameters:
      agentId - Id of an Agent to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - agentId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPostingAgentIdTerms

      void clearPostingAgentIdTerms()
      Clears the posting agent Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPostingAgentQuery

      boolean supportsPostingAgentQuery()
      Tests if an AgentQuery is available for querying senders.
      Returns:
      true if an agent query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPostingAgentQuery

      AgentQuery getPostingAgentQuery()
      Gets the query for an agent.
      Returns:
      the agent query
      Throws:
      UnimplementedException - supportsPostingAgentQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPostingAgentQuery()} is {@code true} .
    • clearPostingAgentTerms

      void clearPostingAgentTerms()
      Clears the posting agent terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSubjectLine

      void matchSubjectLine(String subject, Type stringMatchType, boolean match)
      Adds a subject line to match. Multiple subject line matches can be added to perform a boolean OR among them.
      Parameters:
      subject - subject line to match
      stringMatchType - the string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - subject is not of stringMatchType
      NullArgumentException - subject or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnySubjectLine

      void matchAnySubjectLine(boolean match)
      Matches entries with any subject line.
      Parameters:
      match - true to match entries with any subject line, false to match entries with no subject line
      Compliance:
      mandatory - This method must be implemented.
    • clearSubjectLineTerms

      void clearSubjectLineTerms()
      Clears the subject line terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSummary

      void matchSummary(String summary, Type stringMatchType, boolean match)
      Adds a summary to match. Multiple summaries matches can be added to perform a boolean OR among them.
      Parameters:
      summary - summary to match
      stringMatchType - the string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - summary is not of stringMatchType
      NullArgumentException - summary or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnySummary

      void matchAnySummary(boolean match)
      Matches entries with any summary.
      Parameters:
      match - true to match entries with any summary, false to match entries with no summary
      Compliance:
      mandatory - This method must be implemented.
    • clearSummaryTerms

      void clearSummaryTerms()
      Clears the summary terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchText

      void matchText(String text, Type stringMatchType, boolean match)
      Adds text to match. Multiple text matches can be added to perform a boolean OR among them.
      Parameters:
      text - text to match
      stringMatchType - the string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - text is not of stringMatchType
      NullArgumentException - text or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyText

      void matchAnyText(boolean match)
      Matches entries with any text.
      Parameters:
      match - true to match entries with any text, false to match entries with no text
      Compliance:
      mandatory - This method must be implemented.
    • clearTextTerms

      void clearTextTerms()
      Clears the text terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBlogId

      void matchBlogId(Id blogId, boolean match)
      Sets the blog Id for this query.
      Parameters:
      blogId - the blog Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - blogId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBlogIdTerms

      void clearBlogIdTerms()
      Clears the blog Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBlogQuery

      boolean supportsBlogQuery()
      Tests if a BlogQuery is available.
      Returns:
      true if a blog query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBlogQuery

      BlogQuery getBlogQuery()
      Gets the query for a blog. Multiple retrievals produce a nested OR term.
      Returns:
      the blog query
      Throws:
      UnimplementedException - supportsBlogQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBlogQuery()} is {@code true} .
    • clearBlogTerms

      void clearBlogTerms()
      Clears the blog terms.
      Compliance:
      mandatory - This method must be implemented.
    • getEntryQueryRecord

      EntryQueryRecord getEntryQueryRecord(Type entryRecordType) throws OperationFailedException
      Gets the query record corresponding to the given Entry record Type .Multiple retrievals produce a nested OR term.
      Parameters:
      entryRecordType - an entry record type
      Returns:
      the entry query record
      Throws:
      NullArgumentException - entryRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(entryRecordType) is false
      Compliance:
      mandatory - This method must be implemented.