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 9
9
import com .webank .wedatasphere .linkis .server .security .SecurityFilter ;
10
10
import com .webank .wedatasphpere .dss .user .dto .request .AuthorizationBody ;
11
11
import 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 ;
13
13
import org .slf4j .Logger ;
14
14
import org .slf4j .LoggerFactory ;
15
15
import org .springframework .beans .factory .annotation .Autowired ;
20
20
import javax .ws .rs .core .Context ;
21
21
import javax .ws .rs .core .MediaType ;
22
22
import 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 ;
29
23
30
24
/**
31
25
* @program: luban-authorization
40
34
@ Consumes (MediaType .APPLICATION_JSON )
41
35
public class UserManagerApi {
42
36
43
- private LubanAuthorizationClient client = new LubanAuthorizationClient ();
37
+ private UserAuthorizationClient client = new UserAuthorizationClient ();
44
38
private Logger logger = LoggerFactory .getLogger (this .getClass ());
45
39
46
40
@ Autowired
Original file line number Diff line number Diff line change 13
13
* @author: luxl@chinatelecom.cn
14
14
* @create: 2020-08-10 14:24
15
15
**/
16
- public class LubanAuthorizationClient {
16
+ public class UserAuthorizationClient {
17
17
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 );
20
20
21
- public LubanAuthorizationClient () {
21
+ public UserAuthorizationClient () {
22
22
23
23
String [] commandPaths = DSSUserManagerConfig .USER_ACCOUNT_COMMANDS .split ("," );
24
24
for (String classPath : commandPaths ){
25
25
try {
26
- lubanCommand .add ((AbsCommand ) Class .forName (classPath ).newInstance ());
26
+ userMacroCommand .add ((AbsCommand ) Class .forName (classPath ).newInstance ());
27
27
} catch (Exception e ) {
28
28
logger .info (e .getMessage ());
29
29
e .printStackTrace ();
@@ -32,7 +32,7 @@ public LubanAuthorizationClient() {
32
32
}
33
33
34
34
public String authorization (AuthorizationBody body ) throws Exception {
35
- return lubanCommand .authorization (body );
35
+ return userMacroCommand .authorization (body );
36
36
}
37
37
38
38
Original file line number Diff line number Diff line change 22
22
* @author: luxl@chinatelecom.cn
23
23
* @create: 2020-08-10 14:24
24
24
**/
25
- public class LubanMacroCommand implements MacroCommand {
25
+ public class UserMacroCommand implements MacroCommand {
26
26
27
27
private List <AbsCommand > commandList = new ArrayList <>();
28
28
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments