I need versioning in sharepoint.
I used checkout and checkin function , but I am not able to change the content of file. Versioning is created successfully but content is not changed for example In version 1.0 I have content like "Test Demo" and in version 2.0 i have content "Test Demo Change"..
How can I do versioning successfully in sharepoint .?
I used below code
boolean checkOutSuccess = service.checkOut("/sites/XXXX/XXXX/XXX/XXX/"+fileName);
System.out.println("\n out : " + checkOutSuccess);
boolean checkInSuccess = service.checkIn("/sites/XXX/XXX/XXX/XXX/"+latestfilename, "Changes");
I used com.independentsoft api
How can i resolve this issue?
please help
Please refer the below blog:
https://msdn.microsoft.com/en-us/library/office/ms467428.aspx
probably,a minor version needs to be checked in with comments.
Related
I am trying to create an entire project on Testlink using the br.eti.kinoshita.testlinkjavaapi library.
The only thing I didn't manage to do is to create a new Platform.
I tried:
`api=new TestLinkAPI(new URL("http://"localhost/testlink/lib/api/xmlrpc/v1/xmlrpc.php),devKey);
//where devKey was taken from my testlink environment
Platform platform=new Platform(1,platformName,platformDescription);
api.addPlatformToTestPlan(projectId, testPlanId, platformName);
//projectId and testPlanId are directly taken from testlink and are both integer
//platformDescription is a String which looks like "a simple description"
// the "1" corresponds to the ID I want to give to my platform (I put 1 because none ID is already present on my project)
`
But this code is not efficient, and I get the error:
platformName does not exists.
I think the problem is that I have to first add the platform to the project but I can't find any method to do that...
Do you have any idea?
I am new to Android and Windows Azure. I have successfully inserted data from Android application but how do I retrieve single data and post that data on a TextView?
The read function after the gettable class is also not working. What is the exact function use for it? I have followed these instructions but they did not work for me, also I do not understand the documentation.
Currently, I just can provide some tutorials about how to use query data from azure database. I recommend you can refer to this official document about how to use Azure Client Library using Java: https://azure.microsoft.com/en-us/documentation/articles/mobile-services-android-how-to-use-client-library . You can focus on two part: “how to query data from a mobile service” and “how to bind data to the UI”.
At the same time, you can view this video from Channel 9: https://channel9.msdn.com/Series/Windows-Azure-Mobile-Services/Android-Getting-Started-With-Data-Connecting-your-app-to-Windows-Azure-Mobile-Services.
The sample code project of this tutorial, please go to the GitHub link https://github.com/Azure/mobile-services-samples/tree/master/GettingStartedWithData .
For the ‘getTable(Class )’ function is not working, please double check whether the class name is same as table name. If they are same, you can use it like below:
MobileServiceTable<ToDoItem> mToDoTable = mClient.getTable(ToDoItem.class);
If not, you can write you code like this:
MobileServiceTable<ToDoItem> mToDoTable = mClient.getTable("ToDoItemBackup", ToDoItem.class);
For further better support, please share more detail about your code snippet .
This guide on the Python library says cloudstorage.stat() returns
... last-modified time, header-length, content type for the specified file.
The Java guide however, seems to have no counterpart. At least, I cannot find it in GcsFileMetadata.
Is it possible to get this information using the Java library?
It seems the Java library doesn't have this feature (yet).
You can set this info manually, though:
GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder()
.setBucket("my_bucket")
.setKey("my_object")
.setAcl("public-read")
.setMimeType("text/html") //etc etc
.setUserMetadata("date-created", "01/09/2011", "owner", "Jon");
And retrieve this piece of metadata with
GcsFileMetadata.getOptions().getUserMetadata().get("date-created")
I have researched this quite heavily but have been unable to find a solution. I have created the simplest unit test to fetch a single entity but am still receiving the "Unable to find converter" exception. I have included the org.restlet.ext.servlet.jar,org.json.jar and org.restlet.ext.net.jar in my class path. I am also able to see the json returned and have been able to print using the cr.get(MediaType.APPLICATION_JSON) method.
ClientResource cr = new ClientResource("http://localhost:8888/r/establishment/29");
Establishment est = cr.get(Establishment.class);
System.out.println("Establishment name is " + est.getName());
I am using restlet-gae-2.1rc6 on GAE vs 1.7.1
You need to register a converter. Example:
Engine.getInstance().getRegisteredConverters().add(new JacksonConverter());
See a question with the same solution but a different problem: Android to gae restlet example doesn't work on the Android side
I found the solution here: https://stackoverflow.com/a/5205993/435605
I want to know: is there any API or a query interface through which I can access Wikipedia data?
Mediawiki, the wiki platform that wikipedia uses does have an HTTP based API. See MediaWiki API.
For example, to get pages with the title stackoverflow, you call
http://en.wikipedia.org/w/api.php?action=query&titles=Stackoverflow
There are some (incomplete) Java wrappers around the API - see the Client Code - Java section of the API page for more detail.
For the use with Java, try http://code.google.com/p/wiki-java. It is only one class, but a great one!
You can use Jwiki to get Wikipedia data
Example :
Jwiki jwiki = new Jwiki("elon musk");
System.out.println("Title :"+jwiki.getDisplayTitle()); //get title
System.out.println("Text : "+jwiki.getExtractText()); //get summary text
System.out.println("Image : "+jwiki.getImageURL()); //get image URL
I had the same question and the closest I came to an out-of-the-box solution is bliki, hosted at http://code.google.com/p/gwtwiki/.
I also wrote an article at Integrating Stuff to help you get started with it: http://www.integratingstuff.com/2012/04/06/hook-into-wikipedia-using-java-and-the-mediawiki-api/
MediaWiki is a free and open-source wiki software. Originally developed by Magnus Manske and improved by Lee Daniel Crocker, it runs on many websites, including Wikipedia, Wiktionary and Wikimedia Commons.[5][6]
There is list of Java libraries that can help you to connect wiki by java code .
https://www.mediawiki.org/wiki/API:Client_code#Java
but after use some of them because of their limitations , we try to call REST services from mediawiki directly.