Uploading profile photo to IBM Connections profile via Domino Agent

877 Views Asked by At

I am trying to update profile images from a Domino Java agent using the Connections Java API. I have followed this guide and used this sample from greenhouse for inspiration.

Although I don't get any exceptions, the images are not updated. Updating the telephone number works. Strange thing is, updating the jobtitle is also not working.

What I am doing is:

Create a basic endpoint

ConnectionsBasicEndpoint endpoint = new ConnectionsBasicEndpoint();
endpoint.setUser("MY_USERNAME");
endpoint.setPassword("MY_PASSWORD");
endpoint.setUrl("MY_COMPANY_CONNECTIONS_URL");
endpoint.setForceTrustSSLCertificate(true);

Get my Profile via the ProfileService and update the fields

ProfileService profileService = new ProfileService(endpoint);
Profile profile = profileService.getProfile(id);
profile.setTelephoneNumber("123-123-123"); // this works
profile.setJobTitle("my title"); //this does not work

And to upload an image

String id = profileService.getMyUserId();
profileService.updateProfilePhoto(file, id); //file is a java.io.File

Has anybody experienced a similar issue? I also tried it with a user with administration rights, but that made no difference. I am working on IBM Domino 9.0.1, IBM Connections 5.0 CR1 and I am using the latest Social Business Toolkit from openntf.

0

There are 0 best solutions below