java interfaces to connect to sharepoint - rest

I have to connect SharePoint resources using Java API for the tasks like uploading the new document and custom metadata to SP,Fetching the document list based on the filtering using the custom metadata and updating the existing document along with custom metadata to SP.
Main Actions:
Storing and updating document with custom metadata
Fetching documents based on document metadata(Using custom metadata filtering)
Please highlight some Java API to do the above tasks.

Check the API from github below.
Sharepoint Java API
Java Sharepoint REST API

You can also take a look of this project i've developed where you'll find a working API that will provide you some common operations to perform against a sharepoint site. It covers all the use cases you want to achieve and some more and it is very easy to use
https://github.com/kikovalle/PLGSharepointRestAPI-java

Related

Generate Multiple Clients for Quarkus

tldr; I want to specify openapi documents and create multiple clients.
I am trying to leverage the https://github.com/quarkiverse/quarkus-openapi-generator/ to build clients to multiple systems.
I would like to be able to specify more than one openapi document (ideally from a url not within my repo), to generate clients for each system. Is there a way to do this? I am currently able to create a single client, and use it.
Note: tried to tag quarkiverse, but lack the 'reputation'.
You can locate multiple openapi spec files in the openapi directory under src/main/.
or
You can dynamically provide open api spec files using OpenApiSpecInputProvider interface (see https://github.com/quarkiverse/quarkus-openapi-generator/#generating-files-via-inputstream). The link in the documentation seems to be broken, here you can find an example implementation.

How to add custom form and insert data into database in alfresco 5.2

In my alfresco project have requirement for add custom form and data will be store in database.
I would like to submit one form having user name & password fields in it. After click on submit button how can I handle request in backend so it will use Alfresco to process request and store details in database.
I am ready to do this in spring, maven or any java technology but please suggest me how i customize alfresco with custom web form.
I have reefer these links but i have not getting proper answer.
https://community.alfresco.com/docs/DOC-6010-web-quick-start-installation-and-configuration#w_configuringwebquickstart
https://community.alfresco.com/docs/DOC-5527-cmis
If you want to customize the existing Alfresco Share client by configuring forms that allow you to edit properties on folders and documents where those properties are defined using custom types and aspects, then follow this tutorial.
If you do not want to be constrained by the Alfresco Share client then you must write a custom application.
The Alfresco NG2 components were suggested to you, but you would prefer to use Java. So use whatever Java framework you do know and then communicate with Alfresco remotely using CMIS via the OpenCMIS Client for Java.
If you are just building a custom form that captures arbitrary data and stores it in a back-end (relational or otherwise), and your requirements have nothing to do with documents, then you should not be using Alfresco at all.

How to get data from Sitecore

I am a newbie to Sitecore and I want to ask if it possible to get data from sitecore via. some REST API or if I can intercept when form data changes and save it to a json file.
There are a few ways to do this depending on what version of Sitecore you are using, but the most robust at the moment is to use the Sitecore Services Client Framework:
https://sdn.sitecore.net/upload/sitecore7/75/developer%27s_guide_to_sitecore.services.client_sc75-a4.pdf
You can use the ItemService REST api to get data out of Sitecore in json format of if you need more control over the data you can use the EntityService. This is specific to Sitecore 7.5 and above.
If you're in an earlier version then you have the Item Web api:
https://sdn.sitecore.net/upload/sdn5/modules/sitecore%20item%20web%20api/sitecore_item_web_api_developer_guide_sc65-66-usletter.pdf
If you planning on intercepting data on Web Forms for Marketers forms then you're best off using a Custom Save Action to save form data to a json file:
http://www.roundedcube.com/Blog/2016/creating-a-custom-save-action-for-sitecore-wffm

MS Dynamics: retrieve the schema of entities to use it in SOAP?

I'm trying to add some entities via a SOAP client, to MS Dynamics (online). My client is not a Microsoft client.
Do you know a way to retrieve the schema of Entities like Account, Prospect etc... I would like to know how . I really need to know it , for integration with different installations of Dynamics.
I'd like to know the fields and when to put a String a Boolean etc.
I use a Demo instance of MS CRM online, from scratch, I did not change anything
Thanks!!
You can get metadata about an entity or just one attribute on an entity by using a request. Here is a link to an example
http://msdn.microsoft.com/en-us/library/gg594428.aspx
If you are looking to retrieve this information programmatically then follow Kevin Ross's answer above.
If you want to browse this information you can use the SDK Metadata Browser solution.
The Dynamics CRM Metadata Browser is in the SDK (SDK\Tools\MetadataBrowser). You can download the SDK from http://www.microsoft.com/en-us/download/details.aspx?id=40321.
Follow the README.DOCX that is in the SDK\Tools\MetadaraBrowser and you'll be able to see all the information necessary for manually building your SOAP calls.
Here is what it looks like:

Document versioning with MarkLogic REST API

We're currently using MarkLogic's dls functions to handle document versioning, and are trying to switch over to use the REST API. The document endpoint doesn't use versioning by default, and I can't figure out a way to get it to. I'm referring to the dls functions for keeping multiple document versions, btw, not the new "content versioning" the REST API documentation mentions. In fact, the only reference to document versions in the REST API docs seems to be a line saying that content versioning isn't the same thing.
The only solution we've been able to come up with is to write a custom endpoint that duplicates everything the existing document endpoint's PUT does, plus document management. I'd rather avoid that if possible, especially when looking at MarkLogic 7's partial document updates. We're using MarkLogic 6 now, if it matters, but it doesn't look like 7 has any new features related to this.
Is there a way to do this using MarkLogic's existing endpoints?
You can write a REST API extension that automates the DLS operations. See http://docs.marklogic.com/guide/rest-dev/extensions. You will largely end up duplicating a lot of the same things, but this will plug into the existing endpoints.
Yes, MarkLogic 7 added content versioning to make refreshing of caches easier. And unfortunately, the DLS library hasn't been integrated into the REST api so far. You can file a feature request at support if you like.
In the mean time, the best suggestion I can give is use a separate route to do document updates using DLS (your current route or a limited custom endpoint that only supports the DLS functions you need for doc updates), and do anything else (as far as possible) using the existing REST api. You can look at this other stackoverflow question to see how to limit searches to the latest doc versions:
Marklogic REST API search for latest document version
HTH!
A member of MarkLogic has put together a REST extension to provide better DLS support in the REST-api. Hopefully that makes working with DLS over the MarkLogic REST-api a lot easier:
https://github.com/sanjuthomas/marklogic-dls-rest-extension
HTH!