You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1000 B
42 lines
1000 B
3 years ago
|
/**
|
||
|
* Copyright (C), 2015-2021
|
||
|
* FileName: CustomLogInOut
|
||
|
* Author: fr.open
|
||
|
* Date: 2019/6/19 16:25
|
||
|
* Description: CustomLogInOut
|
||
|
* History:
|
||
|
* <author> <time> <version> <desc>
|
||
|
*/
|
||
|
package com.fr.plugin.ihef;
|
||
|
|
||
|
import com.fr.decision.fun.impl.AbstractLogInOutEventProvider;
|
||
|
import com.fr.decision.webservice.login.LogInOutResultInfo;
|
||
|
import com.fr.plugin.ihef.config.IhefConfig;
|
||
|
|
||
|
/**
|
||
|
* 〈Function Description〉<br>
|
||
|
* 〈CustomLogInOut〉
|
||
|
*
|
||
|
* @author fr.open
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
public class CustomLogInOut extends AbstractLogInOutEventProvider {
|
||
|
|
||
|
public static final String LOGOUT_PATH = "/c/portal/logout";
|
||
|
private final IhefConfig config;
|
||
|
|
||
|
public CustomLogInOut() {
|
||
|
this.config = IhefConfig.getInstance();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 用户登出处理
|
||
|
*
|
||
|
* @param result
|
||
|
* @return
|
||
|
*/
|
||
|
@Override
|
||
|
public String logoutAction(LogInOutResultInfo result) {
|
||
|
return this.config.getUriBase() + LOGOUT_PATH;
|
||
|
}
|
||
|
}
|