Aligned APIs with IS model refactoring
This commit is contained in:
parent
43eb9df53a
commit
99ab60916f
|
@ -109,7 +109,6 @@ public interface ResourceRegistryClient {
|
||||||
public String query(final String query, final int limit, final String fetchPlan, boolean raw)
|
public String query(final String query, final int limit, final String fetchPlan, boolean raw)
|
||||||
throws InvalidQueryException, ResourceRegistryException;
|
throws InvalidQueryException, ResourceRegistryException;
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
public <ISM extends ISManageable> List<TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic)
|
public <ISM extends ISManageable> List<TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic)
|
||||||
throws SchemaNotFoundException, ResourceRegistryException;
|
throws SchemaNotFoundException, ResourceRegistryException;
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,6 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
@Override
|
@Override
|
||||||
public <ISM extends ISManageable> List<TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic)
|
public <ISM extends ISManageable> List<TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic)
|
||||||
throws SchemaNotFoundException, ResourceRegistryException {
|
throws SchemaNotFoundException, ResourceRegistryException {
|
||||||
|
|
|
@ -51,14 +51,12 @@ public class ResourceRegistryClientTest extends ContextTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetFacetSchema() throws SchemaNotFoundException, ResourceRegistryException {
|
public void testGetFacetSchema() throws SchemaNotFoundException, ResourceRegistryException {
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
List<TypeDefinition> typeDefinitions = resourceRegistryClient.getSchema(ContactFacet.class, true);
|
List<TypeDefinition> typeDefinitions = resourceRegistryClient.getSchema(ContactFacet.class, true);
|
||||||
logger.trace("{}", typeDefinitions);
|
logger.trace("{}", typeDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetResourceSchema() throws SchemaNotFoundException, ResourceRegistryException {
|
public void testGetResourceSchema() throws SchemaNotFoundException, ResourceRegistryException {
|
||||||
@SuppressWarnings("rawtypes")
|
|
||||||
List<TypeDefinition> typeDefinitions = resourceRegistryClient.getSchema(HostingNode.class, true);
|
List<TypeDefinition> typeDefinitions = resourceRegistryClient.getSchema(HostingNode.class, true);
|
||||||
logger.trace("{}", typeDefinitions);
|
logger.trace("{}", typeDefinitions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue