parent
b5f2321f76
commit
ca45a37fef
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_10" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_10" default="false" project-jdk-name="10" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
@ -1,7 +1,15 @@
|
||||
package core.operation;
|
||||
|
||||
import core.user.User;
|
||||
import error.GExcptSQL;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class UploadFileOperation extends Operation {
|
||||
Map<String, Object> options;
|
||||
|
||||
@Override
|
||||
public void execute(User subject) throws GExcptSQL {
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,28 +0,0 @@
|
||||
package core.process;
|
||||
|
||||
import core.operation.Operation;
|
||||
import core.user.User;
|
||||
|
||||
|
||||
public class AtomProcess extends Process {
|
||||
private String permission;
|
||||
private Operation operation;
|
||||
private String ButtonName;
|
||||
private String info;
|
||||
private String processOptions;
|
||||
|
||||
public AtomProcess(String permission, String operationName, String processOptions, String info) throws Exception {
|
||||
super(info);
|
||||
this.permission = permission;
|
||||
this.operation = (Operation) core.utils.GetObjectByName.getOperationByName(operationName);
|
||||
this.info = info;
|
||||
this.processOptions = processOptions;
|
||||
operation.setProcessOperations(processOptions);
|
||||
}
|
||||
public void setUserOperations(String key,Object value){
|
||||
this.operation.addUserOperations(key,value);
|
||||
}
|
||||
public void execute(User subject){
|
||||
this.operation.execute(subject);
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package core.process;
|
||||
|
||||
public class AuxiliaryProcess extends Process {
|
||||
public AuxiliaryProcess(String permission, String operationName, String processOptions, String info) throws Exception {
|
||||
super(permission, operationName, processOptions, info);
|
||||
}
|
||||
}
|
@ -1,13 +1,75 @@
|
||||
package core.process;
|
||||
|
||||
import core.operation.Operation;
|
||||
import core.user.User;
|
||||
import error.GExcptFactory;
|
||||
import error.GExcptSQL;
|
||||
|
||||
public abstract class Process {
|
||||
|
||||
private String permission;
|
||||
private Operation operation;
|
||||
private String buttonName;
|
||||
private String info;
|
||||
private String processOptions;
|
||||
|
||||
public Process(String permission, String operationName, String processOptions, String info) throws Exception {
|
||||
super();
|
||||
this.setPermission(permission);
|
||||
this.setOperation(operationName);
|
||||
this.setInfo(info);
|
||||
this.setProcessOptions(processOptions);
|
||||
operation.setProcessOperations(processOptions);
|
||||
}
|
||||
|
||||
public Process(String info) {
|
||||
this.info=info;
|
||||
public void setUserOperations(String key,Object value){
|
||||
this.operation.addUserOperations(key,value);
|
||||
}
|
||||
public void execute(User subject) throws GExcptSQL {
|
||||
this.operation.execute(subject);
|
||||
}
|
||||
private void setOperation(String operationName) throws GExcptFactory {
|
||||
try {
|
||||
this.operation = (Operation) core.utils.GetObjectByName.getOperationByName(operationName);
|
||||
} catch (Exception e) {
|
||||
throw new GExcptFactory("create"+operationName+"failure");
|
||||
}
|
||||
}
|
||||
|
||||
public String getInfo() {
|
||||
public void setInfo(String info) {
|
||||
this.info = info;
|
||||
}
|
||||
public String getButtonName() {
|
||||
return buttonName;
|
||||
}
|
||||
public void setButtonName(String buttonName) {
|
||||
this.buttonName = buttonName;
|
||||
}
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
public String getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public Operation getOperation() {
|
||||
return operation;
|
||||
}
|
||||
|
||||
public void setOperation(Operation operation) {
|
||||
this.operation = operation;
|
||||
}
|
||||
|
||||
public String getProcessOptions() {
|
||||
return processOptions;
|
||||
}
|
||||
|
||||
public void setProcessOptions(String processOptions) {
|
||||
this.processOptions = processOptions;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
package core.process;
|
||||
|
||||
|
||||
|
||||
public class TemporaryProcess extends Process {
|
||||
public TemporaryProcess(String permission, String operationName, String processOptions, String info) throws Exception {
|
||||
super(permission, operationName, processOptions, info);
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package error;
|
||||
|
||||
public class GExcptFactory extends GExcpt {
|
||||
public GExcptFactory(String info) {
|
||||
super(info);
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
package servlet;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(name = "login")
|
||||
public class login extends HttpServlet {
|
||||
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
}
|
||||
|
||||
protected void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in new issue