天天看點

帆軟報表插件開發之fine-decision中的LogInOutEventProvider擴充

1 當我們登入或者登出帆軟決策系統時,會調用我們的擴充,這時我們可以做一些事情。

2 接口定義

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.fr.decision.fun;

import com.fr.decision.webservice.login.LogInOutResultInfo;
import com.fr.stable.fun.mark.Mutable;

public interface LogInOutEventProvider extends Mutable {
    String MARK_STRING = "LogInOutEventProvider";
    int CURRENT_LEVEL = 2;

    void loginAction(LogInOutResultInfo var1);

    String logoutAction(LogInOutResultInfo var1);
}
           

   void loginAction(LogInOutResultInfo result) 登入成功後會調用這個方法

String logoutAction(LogInOutResultInfo result)  登出時會調用這個方法,傳回值可以傳回一個url,登出後将跳轉到這個url上。如果傳回的是null或者空字元串,就預設跳轉到登入界面      

3 這個擴充在内部注冊是在fine-decision.jar中的com.fr.decision.webservice.WebServiceActivator中的連個方法registerLoginEvent(登入成功的注冊)與registerLogoutEvent(登出的注冊)方法注冊的來注冊

   登入成功

繼續閱讀