07-24-2015 11:58 AM
String url="http://localhost:8080/alfresco/service/api/people?alf_ticket='+this.TICKET;
DettagliUtente du=new DettagliUtente(nome, cnome, email, uname, pwd, da, quota, array_groups, titolo, orga, jobtitolo);
HttpClient client = HttpClientBuilder.create().build();
HttpPost post=new HttpPost(url);
StringEntity entity=new StringEntity( gson.toJson(du) );
post.setEntity(entity);
post.setHeader("Content-type", "application/json");
HttpResponse risposta=client.execute(post);
DettagliUtente
is a simple POJO class I made to store some information about the user. This information are retrieved from a jsp page.
public class Gruppo {
private String displayName;
private String itemName;
}
07-27-2015 01:15 AM
07-28-2015 05:11 AM
String groups={"GROUP_GruppoTest3", "GROUP_GruppoTest4"};
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.