是不是可以在Liferay中获得使用JSON WS的用户的生日?

时间:2014-01-29 11:17:27

标签: liferay

我使用Liferay进行用户管理,以及使用JSON Web服务与Liferay通信的外部应用程序。当我致电网络服务/user/get-user-by-id

{
"agreedToTermsOfUse": false,
"comments": "",
"companyId": 10153,
"contactId": 16003,
"createDate": 1390552990000,
"defaultUser": false,
"emailAddress": "basketball@liferay.com",
"emailAddressVerified": false,
"facebookId": 0,
"failedLoginAttempts": 0,
"firstName": "Basketball1",
"graceLoginCount": 0,
"greeting": "Welcome Basketball1!",
"jobTitle": "",
"languageId": "en_US",
"lastFailedLoginDate": null,
"lastLoginDate": null,
"lastLoginIP": "",
"lastName": "",
"ldapServerId": -1,
"lockout": false,
"lockoutDate": null,
"loginDate": null,
"loginIP": "",
"middleName": "",
"modifiedDate": 1390992862465,
"openId": "",
"portraitId": 18708,
"reminderQueryAnswer": "",
"reminderQueryQuestion": "",
"screenName": "basketball1",
"status": 0,
"timeZoneId": "Europe/Paris",
"userId": 16002,
"uuid": "3ce789e0-4cb5-45bf-b57e-68c44ea3ec04"
}

有些信息因生日而错过。我看到我也可以使用网络服务/user/update-user更改生日,但我无法检索原始值。我怎样才能获得生日信息?有没有其他方法可以获取缺失的数据?

并且...如果我想更新用户的任何字段,并且/user/update-user我必须放置生日,我无法检索旧值...生日将丢失!

1 个答案:

答案 0 :(得分:1)

您可以通过联系服务获得用户生日:

http://localhost:8080/api/jsonws/contact/get-contact/contact-id/10202

其中id是用户ID