You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
When developing a new publisher, follow these steps:
- Become familiar with the Publisher Framework.
- It helps to understand the concepts.
- The projects are here in BitBucket.
- There is one particular project in the Publisher Framework called aspire-simplefile-publisher.
- It publishes all coming documents to the single operating system file.
- This project serves only for demonstration purpose.
- Become familiar with the project and try to build the artifact.
- Add aspire-simplefile-publisher to your connector workflow and configure it.
- Run the full crawl for your connector and check that the file publisher has created the file with crawled documents.
- Create a new project for your publisher with the structure as in aspire-simplefile-publisher.
- Implement your code.
- Make sure you understand the concepts of batching, transformers and other parts of the Publisher Framework.
- If your target repository supports REST API, always consider using PF component HttpClient for http communication.
- The best way how to get familiar with HttpClient is to run JUnit tests in the project aspire-publisher-framework.
- Create your publisher's configuration files in the resources folder like aspire.properties, dxf/publisher.xml, ...
- Make sure you understand the concept of generic properties provided by the Publisher Framework and properties specific to your publisher.
- Create JUnit tests in your publisher.
- Build the publisher.
- Test the publisher by running a full crawl