You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gdms/src/core/process/AtomProcess.java

29 lines
898 B

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);
}
}