File tree Expand file tree Collapse file tree 5 files changed +9
-29
lines changed
dss-server/src/main/java/com/webank/wedatasphere/dss/server/restful
src/main/java/com/webank/wedatasphpere/dss/user/service/impl Expand file tree Collapse file tree 5 files changed +9
-29
lines changed Original file line number Diff line number Diff line change 99import com .webank .wedatasphere .linkis .server .security .SecurityFilter ;
1010import com .webank .wedatasphpere .dss .user .dto .request .AuthorizationBody ;
1111import com .webank .wedatasphpere .dss .user .service .AbsCommand ;
12- import com .webank .wedatasphpere .dss .user .service .impl .LubanAuthorizationClient ;
12+ import com .webank .wedatasphpere .dss .user .service .impl .UserAuthorizationClient ;
1313import org .slf4j .Logger ;
1414import org .slf4j .LoggerFactory ;
1515import org .springframework .beans .factory .annotation .Autowired ;
2020import javax .ws .rs .core .Context ;
2121import javax .ws .rs .core .MediaType ;
2222import javax .ws .rs .core .Response ;
23- import java .util .ArrayList ;
24- import java .util .List ;
25- import java .util .concurrent .Callable ;
26- import java .util .concurrent .ExecutorService ;
27- import java .util .concurrent .Executors ;
28- import java .util .concurrent .Future ;
2923
3024/**
3125 * @program: luban-authorization
4034@ Consumes (MediaType .APPLICATION_JSON )
4135public class UserManagerApi {
4236
43- private LubanAuthorizationClient client = new LubanAuthorizationClient ();
37+ private UserAuthorizationClient client = new UserAuthorizationClient ();
4438 private Logger logger = LoggerFactory .getLogger (this .getClass ());
4539
4640 @ Autowired
Original file line number Diff line number Diff line change 13131414 * @create: 2020-08-10 14:24
1515 **/
16- public class LubanAuthorizationClient {
16+ public class UserAuthorizationClient {
1717
18- public LubanMacroCommand lubanCommand = new LubanMacroCommand ();
19- protected final Logger logger = LoggerFactory .getLogger (LubanAuthorizationClient .class );
18+ public UserMacroCommand userMacroCommand = new UserMacroCommand ();
19+ protected final Logger logger = LoggerFactory .getLogger (UserAuthorizationClient .class );
2020
21- public LubanAuthorizationClient () {
21+ public UserAuthorizationClient () {
2222
2323 String [] commandPaths = DSSUserManagerConfig .USER_ACCOUNT_COMMANDS .split ("," );
2424 for (String classPath : commandPaths ){
2525 try {
26- lubanCommand .add ((AbsCommand ) Class .forName (classPath ).newInstance ());
26+ userMacroCommand .add ((AbsCommand ) Class .forName (classPath ).newInstance ());
2727 } catch (Exception e ) {
2828 logger .info (e .getMessage ());
2929 e .printStackTrace ();
@@ -32,7 +32,7 @@ public LubanAuthorizationClient() {
3232 }
3333
3434 public String authorization (AuthorizationBody body ) throws Exception {
35- return lubanCommand .authorization (body );
35+ return userMacroCommand .authorization (body );
3636 }
3737
3838
Original file line number Diff line number Diff line change 22222323 * @create: 2020-08-10 14:24
2424 **/
25- public class LubanMacroCommand implements MacroCommand {
25+ public class UserMacroCommand implements MacroCommand {
2626
2727 private List <AbsCommand > commandList = new ArrayList <>();
2828
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments