Skip to content

Commit 8a107d1

Browse files
committed
change class name
1 parent 27b40f3 commit 8a107d1

File tree

5 files changed

+9
-29
lines changed

5 files changed

+9
-29
lines changed

dss-server/src/main/java/com/webank/wedatasphere/dss/server/restful/UserManagerApi.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.webank.wedatasphere.linkis.server.security.SecurityFilter;
1010
import com.webank.wedatasphpere.dss.user.dto.request.AuthorizationBody;
1111
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;
1313
import org.slf4j.Logger;
1414
import org.slf4j.LoggerFactory;
1515
import org.springframework.beans.factory.annotation.Autowired;
@@ -20,12 +20,6 @@
2020
import javax.ws.rs.core.Context;
2121
import javax.ws.rs.core.MediaType;
2222
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;
2923

3024
/**
3125
* @program: luban-authorization
@@ -40,7 +34,7 @@
4034
@Consumes(MediaType.APPLICATION_JSON)
4135
public 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
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
* @author: luxl@chinatelecom.cn
1414
* @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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @author: luxl@chinatelecom.cn
2323
* @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

dss-user-manager/target/classes/default/HdfsPath.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

dss-user-manager/target/classes/default/LinuxPath.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)