52 lines
1.1 KiB
Java
52 lines
1.1 KiB
Java
package org.gcube.vremanagement.contextmanager.operations;
|
|
|
|
import java.util.UUID;
|
|
|
|
import javax.inject.Inject;
|
|
|
|
import org.gcube.vremanagement.contextmanager.model.operators.context.MandatoryContextOperator;
|
|
import org.gcube.vremanagement.contextmanager.model.report.OperationResult;
|
|
import org.gcube.vremanagement.contextmanager.model.types.Context;
|
|
import org.gcube.vremanagement.contextmanager.model.types.Context.Type;
|
|
import org.slf4j.Logger;
|
|
|
|
public class MandatoryVREOperationTest implements MandatoryContextOperator{
|
|
|
|
static String id = UUID.randomUUID().toString();
|
|
|
|
@Inject Logger log;
|
|
|
|
@Override
|
|
public Type getApplicationContextType() {
|
|
return Type.VRE;
|
|
}
|
|
|
|
@Override
|
|
public String getOperationId() {
|
|
return id;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return "testOp";
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return "testOp";
|
|
}
|
|
|
|
@Override
|
|
public OperationResult onCreate(Context context) {
|
|
log.debug("executing testOP");
|
|
return OperationResult.success();
|
|
}
|
|
|
|
@Override
|
|
public OperationResult onDispose(Context context) {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
}
|