/** * Wrapper method to accept a Invite * * @param connectionId unique id of the connection * @param title message to the other user * @param content message to the other user * @return if invite is accepted then return true * @throws ProfileServiceException */ public boolean acceptInvite(String connectionId, String title, String content) throws ProfileServiceException { if (logger.isLoggable(Level.FINEST)) { logger.entering(sourceClass, "acceptInvite", connectionId); } Map<String, String> parameters = new HashMap<String, String>(); parameters.put(ProfileRequestParams.CONNECTIONID, connectionId); String url = resolveProfileUrl( ProfileEntity.NONADMIN.getProfileEntityType(), ProfileType.CONNECTION.getProfileType()); XMLProfilesPayloadBuilder builder = XMLProfilesPayloadBuilder.INSTANCE; Object payload = builder.generateAcceptInvitePayload(connectionId, title, content); boolean result = executePut(url, parameters, null, payload, null); if (logger.isLoggable(Level.FINEST)) { logger.exiting(sourceClass, "acceptInvite"); } return result; }