Implementation of a Use Case - maksudsharif/Armedia-Training-Module GitHub Wiki
FDA Ramp Up Implementation
Refer to: [FDA Ramp Up Exercises] (https://project.armedia.com/confluence/display/DELIVERY/FDA+Ramp+Up+Training+Curriculum+%7C+Exercises)
Setup
- In Alfresco Share, create a new Site named "FDA" (the identifier should be "fda").
- Add the DataLists app to the site. (The two apps should be "DocumentLibrary" and "DataLists")
- In the document library you will need to create a folder named "Configuration" and upload the included
fda_cstar
csv file.
Datalists
Datalists let site members create and manage lists of data relevant to the site. Users can work with their own lists and can also contribute to lists created by other site members. It can also be used as a datasource for other Alfresco components such as workflows, behaviors, webscripts, and anywhere else you can use the Java/JavaScript API.
For this use case, we will use a datalist pre-populated with info from a outside source. It will act as a datasource for our Webscript which create a search functionality.
Follow the link posted at the top and create an appropriate DataList model and register it with spring. To verify it has worked, go the DataLists component in your site and see that your DataList type has appeared in the new DataList menu.
Populate Datalists
You will have to create a webscript that reads the csv file from the repository and creates a DataList with that data. This will involve from classic Java concepts which should be easy to implement. The included completed code should give you a look at how it could be implemented.
FDA Service
You will have to create a Java service bean that you can inject into your Webscript to use. Refer to the link at the top for a description of this.
You can ignore the complex steps to adding a new service as shown in the link and just create appropriate beans in the service-content.xml
.
FDA Search
You will create a webscript that has 3 dropdowns with appropriate options taken from your data source (the datalist). Refer to the link above for more specific requirements.