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/operation/Operation.java

35 lines
831 B

package core.operation;
import core.user.User;
import java.util.Map;
public abstract class Operation implements Executable {
Map<String, Object> options;
private User subject;
Operation(){
super();
}
public User getSubject() {
return subject;
}
public void setSubject(User subject) {
this.subject = subject;
}
@Override
public void checkSelf() throws Exception {
if(subject==null) throw new Exception("Operation's subject is Null");
}
@Override
public void beforeRun(Map<String, String> options) {
core.operation.utils.util.checkOptions(core.utils.ConfigurationFileManagement.getConfigurationFile(this.getClass().getName()),options);
}
@Override
public void afterRun(Map<String, String> options) {
//todo
}
}