@Deprecated public interface MessageSearch
Modifier and Type | Method and Description |
---|---|
Message |
get(Resource root,
String messageId)
Deprecated.
get the
Message having the given id. |
List<Resource> |
getMessageBoxes(Resource root)
Deprecated.
get all the message boxes present under the passed resource.
|
List<Resource> |
getMessageBoxes(ResourceResolver resolver,
String rootPath)
Deprecated.
get all the message boxes present under the passed parent path.
|
Iterator<Message> |
search(Resource root,
Map<String,Object> propertyMap,
int first,
int last)
Deprecated.
search for messages rooted at root and matching property values as per the passed property map(conjunction).
|
Iterable<Message> |
search(ResourceResolver resolver,
MessageFilter filter,
int first,
int last)
Deprecated.
Searches for
Message satisfying the passed MessageFilter criteria. |
Iterator<Message> search(Resource root, Map<String,Object> propertyMap, int first, int last)
root
- resource under which messages are to be searched for.propertyMap
- map containing message properties and valuesfirst
- lower limit (inclusive) of the message range to be fetchedlast
- upper limit (inclusive) of the message range to be fetchedMessage
s satisfying all the properties criteria or null
if root passed is
null
Message get(Resource root, String messageId)
Message
having the given id.root
- parent resource like inbox or sent itemsmessageId
- message id of message to be searched for.Message
having the specified id.List<Resource> getMessageBoxes(Resource root)
root
- resource under which message boxes are to be searched.List<Resource> getMessageBoxes(ResourceResolver resolver, String rootPath)
rootPath
- path under which message boxes are to be searched.resolver
- the resolver to use to get the message boxes.Iterable<Message> search(ResourceResolver resolver, MessageFilter filter, int first, int last) throws RepositoryException
Message
satisfying the passed MessageFilter
criteria.resolver
- ResourceResolver
to search with.filter
- MessageFilter
filtering criteria.first
- lower limit (inclusive) of the message range to be fetchedlast
- upper limit (inclusive) of the message range to be fetchedRepositoryException
- Exception while searching."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"