@Path(value="password") @Consumes(value={"application/json","application/xml"}) @Produces(value="application/json") public class PasswordResource extends BaseResource
构造器和说明 |
---|
PasswordResource() |
限定符和类型 | 方法和说明 |
---|---|
javax.ws.rs.core.Response |
canUseEmail()
方式:get
是否可以使用邮箱找回密码。
|
javax.ws.rs.core.Response |
checkVerificationCode(String loginName,
String verificationCode,
String type,
String token)
校验验证码
方式:get
url: http://localhost/seeyon/rest/password/retrieve/checkVerificationCode/bj01/332372?
|
javax.ws.rs.core.Response |
getEmailByLoginName(String loginName)
方式:get
根据登录名获取人员的邮箱
URl: http://[ip:port]/seeyon/rest/password/retrieve/getEmailByLoginName/bj01
|
javax.ws.rs.core.Response |
resetPassword(Map<String,Object> params,
String token)
方式:post
url:http://localhost/seeyon/rest/password/retrieve/resetPassword?
|
javax.ws.rs.core.Response |
send(String loginName,
String type,
String token)
方式:get
校验并发送邮件
url:http://localhost/seeyon/rest/password/retrieve/send/bj01?
|
copyProperties, decode, error, fail, fail, getFlipInfo, getObjectMapper, getToken, judgeSortId, noContent, ok, required, required, setCurrentUser, setPagination, status, status, success, success, success, toJSON, toJSON
@GET @Path(value="retrieve/canUseEmail") public javax.ws.rs.core.Response canUseEmail() throws Exception
Exception
@GET @Path(value="retrieve/getEmailByLoginName/{loginName}") public javax.ws.rs.core.Response getEmailByLoginName(@PathParam(value="loginName") String loginName) throws Exception
loginName
- 登录名com.seeyon.ctp.common.exceptions.BusinessException
Exception
@GET @Path(value="retrieve/send/{loginName}") public javax.ws.rs.core.Response send(@PathParam(value="loginName") String loginName, @DefaultValue(value="email") @QueryParam(value="type") String type, @QueryParam(value="token") String token) throws Exception
loginName
- 登录名type
- 发送方式:邮箱,短信。默认为邮箱token
- 生成的临时tokencom.seeyon.ctp.common.exceptions.BusinessException
Exception
@GET @Path(value="retrieve/checkVerificationCode/{loginName}/{verificationCode}") public javax.ws.rs.core.Response checkVerificationCode(@PathParam(value="loginName") String loginName, @PathParam(value="verificationCode") String verificationCode, @DefaultValue(value="email") @QueryParam(value="type") String type, @QueryParam(value="token") String token) throws Exception
loginName
- 登录名verificationCode
- 验证码type
- 验证方式:邮箱,短信。默认为邮箱token
- 生成的临时tokencom.seeyon.ctp.common.exceptions.BusinessException
Exception
@POST @Path(value="retrieve/resetPassword") public javax.ws.rs.core.Response resetPassword(Map<String,Object> params, @QueryParam(value="token") String token) throws Exception
params
- 参数:loginName 登录名 password 新密码token
- 生成的临时tokencom.seeyon.ctp.common.exceptions.BusinessException
Exception
Copyright © 2016–2018. All rights reserved.