return EmptyDetailsPage.class;
}
public Object getPageKey_OLD(Object object) {
updateStatus(null, IMessageProvider.ERROR);
if (object instanceof AEDeploymentMetaData) {
AEDeploymentMetaData metaData = (AEDeploymentMetaData) object;
Class cls = null;
ResourceSpecifier rs = metaData.getResourceSpecifier();
if (rs != null) {
if (rs instanceof AnalysisEngineDescription) {
if ( metaData.isTopAnalysisEngine() ) {
// Prmitive
cls = AsyncPrimitiveErrorConfiguration.class;
} else {
// Aggregate
cls = AsyncAggregateErrorConfiguration.class;
}
}
} else {
String parentKey = null;
if (metaData.getParent() != null) {
parentKey = metaData.getParent().getKey();
} else {
if (metaData.isTopAnalysisEngine()) {
updateStatus("The top descriptor is not specified.", IMessageProvider.ERROR);
return null;
}
}
if (parentKey == null) {
parentKey = "Top Analysis Engine";
}
updateStatus("The analysis engine's key=\"" + metaData.getKey()
+ "\" is not valid for the aggregate \"" + parentKey + "\"", IMessageProvider.ERROR);
}
return cls;
} else if (object instanceof RemoteAEDeploymentMetaData) {
RemoteAEDeploymentMetaData metaData = (RemoteAEDeploymentMetaData) object;
Class cls = null;
ResourceSpecifier rs = metaData.getResourceSpecifier();
if (rs != null) {
if (rs instanceof AnalysisEngineDescription) {
cls = AsyncAggregateErrorConfiguration.class;
}
} else {
String parentKey = metaData.getParent().getKey();
if (parentKey == null) {
parentKey = "Top Analysis Engine";
}
updateStatus("The analysis engine's key=\"" + metaData.getKey()
+ "\" is not valid for the aggregate \"" + parentKey + "\"", IMessageProvider.ERROR);
}
return cls;
// return AsyncPrimitiveErrorConfiguration.class;
} else {