[
https://issues.apache.org/jira/browse/CONNECTORS-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073906#comment-15073906
]
Karl Wright commented on CONNECTORS-1268:
-----------------------------------------
Here's an example of how you'd access global properties using
LockManagerFactory:
{code}
return
LockManagerFactory.getIntProperty(threadContext,workerThreadCountProperty,100);
{code}
If you look in LockManagerFactory, note that there are several property
accessor methods. Since you need a thread context, you would, of course, need
to do this lookup whenever the thread context is set for the connector. This
would involve overriding two methods that the FileNet connector doesn't
currently implement: setThreadContext, and clearThreadContext.
> [Filenet]Allow to configure mime types list
> -------------------------------------------
>
> Key: CONNECTORS-1268
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1268
> Project: ManifoldCF
> Issue Type: Improvement
> Components: FileNet connector
> Affects Versions: ManifoldCF 2.2
> Reporter: Damien Picard
> Assignee: Karl Wright
> Priority: Minor
>
> Currently, the mime types list crawled by the Filenet connector is defined in
> the class org.apache.manifoldcf.crawler.connectors.filenet.FilenetConnector,
> method getMimeTypes().
> A document stored in the Filenet repository, which could have a mime type not
> referenced in the given list, could not be indexed by the connector. As an
> example, OASIS mime types :
> - application/vnd.oasis.opendocument.presentation
> - application/vnd.oasis.opendocument.spreadsheet
> - application/vnd.oasis.opendocument.text
> We should have a way to override this list, at least in a configuration file.
> The simplest way may be to add a configuration key in one of the
> configuration files (which one ?) which will contain the available mime types.
> I can do the changes ; could you explain here which configuration file I
> should use ?
> Thank you.
> Regards
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)