public interface TraversalContext
TraversalManager, which
the traversal manager can the use to call back to get information from the
Connector Manager. Thus, the connector developer does not need to
provide an implementation of this object. However, for testing
purposes, the developer may want to provide a temporary implementation.| Modifier and Type | Method and Description |
|---|---|
long |
maxDocumentSize()
Gets a size limit for contents passed through the connector framework.
|
int |
mimeTypeSupportLevel(java.lang.String mimeType)
Gets information about whether a mime type is supported.
|
java.lang.String |
preferredMimeType(java.util.Set<java.lang.String> mimeTypes)
Returns the most preferred mime type from the supplied set.
|
boolean |
supportsDenyAcls()
Returns
true if Documents may include DENY users or
groups in an ACL. |
boolean |
supportsInheritedAcls()
Returns
true if Documents may include full ACL support,
specifically DENY users or groups, ACL inheritance, and ACL-only
Documents. |
long |
traversalTimeLimitSeconds()
Returns the time in seconds for allotted traversals to complete.
|
long maxDocumentSize()
int mimeTypeSupportLevel(java.lang.String mimeType)
Non-positive numbers mean that there is no support for this mime type. A zero value indicates the content encoding is not supported. The connector may choose to supply meta-data for the document, but the content should not be provided.
A negative value indicates the document should be skipped entirely. Neither the content, nor the meta-data should be provided.
java.lang.String preferredMimeType(java.util.Set<java.lang.String> mimeTypes)
If a repository contains multiple renditions of a particular item, it may use this to select the best rendition to supply for indexing.
mimeTypes - a Set of mime typeslong traversalTimeLimitSeconds()
TraversalManager.startTraversal() and
TraversalManager.resumeTraversal(String) can avoid interrupts due
to timeouts by returning within this amount of time.boolean supportsInheritedAcls()
true if Documents may include full ACL support,
specifically DENY users or groups, ACL inheritance, and ACL-only
Documents. Some earlier Search Appliance implementations do not
support these features. This method will always return false
if the feed.disable.inherited.acls property in
applicationContext.xml is set to true. If this
method returns true, then supportsDenyAcls() will
also return true.true if Documents may include enhanced ACL supportSecureDocument,
SpiConstants.AclInheritanceType,
SpiConstants.FeedType,
SpiConstants.PROPNAME_ACLINHERITFROM,
SpiConstants.PROPNAME_ACLINHERITANCETYPE,
SpiConstants.PROPNAME_ACLDENYGROUPS,
SpiConstants.PROPNAME_ACLDENYUSERSboolean supportsDenyAcls()
true if Documents may include DENY users or
groups in an ACL. Some earlier Search Appliance implementations
do not support this feature. A connector that requires inheritance
in order to implement DENY should use supportsInheritedAcls()
instead of this method. If this method returns false, then
supportsDenyAcls() will also return false.true if Documents may include DENY users or groupsSecureDocument,
SpiConstants.PROPNAME_ACLDENYGROUPS,
SpiConstants.PROPNAME_ACLDENYUSERS