|
|
|
@ -36,6 +36,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
@Override
|
|
|
|
|
public <ISM extends ISManageable> TypeDefinition<ISM> create(Class<ISM> clz)
|
|
|
|
|
throws SchemaException, ResourceRegistryException {
|
|
|
|
@ -55,6 +56,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|
|
|
|
public String create(String baseType, String typeDefinitition) throws ContextAlreadyPresentException, ResourceRegistryException {
|
|
|
|
|
try {
|
|
|
|
|
logger.trace("Going to create: {}", typeDefinitition);
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
TypeDefinition<? extends ISManageable> typeDefinitionObj = TypeBinder.deserializeTypeDefinition(typeDefinitition);
|
|
|
|
|
|
|
|
|
|
GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address);
|
|
|
|
@ -78,8 +80,9 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("rawtypes")
|
|
|
|
|
@Override
|
|
|
|
|
public <ISM extends ISManageable> List<TypeDefinition<ISM>> read(Class<ISM> clz, Boolean polymorphic)
|
|
|
|
|
public <ISM extends ISManageable> List<TypeDefinition> read(Class<ISM> clz, Boolean polymorphic)
|
|
|
|
|
throws SchemaNotFoundException, ResourceRegistryException {
|
|
|
|
|
try {
|
|
|
|
|
String type = Utility.getType(clz);
|
|
|
|
|