Developer 역할 Spring 골격 smoke #12
1 changed files with 7 additions and 3 deletions
|
|
@ -6,10 +6,14 @@ import org.springframework.stereotype.Service;
|
||||||
public class DeveloperService {
|
public class DeveloperService {
|
||||||
|
|
||||||
public String getRole() {
|
public String getRole() {
|
||||||
return "DEVELOPER";
|
return "developer";
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAuthorized(String action) {
|
public boolean isActive() {
|
||||||
return "code".equals(action) || "review".equals(action) || "deploy".equals(action);
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String describe() {
|
||||||
|
return "Developer role is active and operational";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue