Set Enum values uppercase
This commit is contained in:
parent
8a8b3001ef
commit
740212fbb7
|
@ -9,6 +9,6 @@ package org.gcube.informationsystem.resourceregistry.client;
|
|||
*/
|
||||
public enum Direction {
|
||||
|
||||
in, out, both;
|
||||
IN, OUT, BOTH;
|
||||
|
||||
}
|
||||
|
|
|
@ -414,7 +414,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
|
|||
@Override
|
||||
public String getResourcesFromReferenceFacet(String resourceType, String consistsOfType, String facetType,
|
||||
UUID facetUUID, boolean polymorphic) throws ResourceRegistryException {
|
||||
return getRelated(resourceType, consistsOfType, facetType, facetUUID, Direction.out, polymorphic);
|
||||
return getRelated(resourceType, consistsOfType, facetType, facetUUID, Direction.OUT, polymorphic);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -436,7 +436,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
|
|||
@Override
|
||||
public String getFilteredResources(String resourceType, String consistsOfType, String facetType,
|
||||
boolean polymorphic, Map<String,String> map) throws ResourceRegistryException {
|
||||
return getRelated(resourceType, consistsOfType, facetType, Direction.out, polymorphic, map);
|
||||
return getRelated(resourceType, consistsOfType, facetType, Direction.OUT, polymorphic, map);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -114,7 +114,7 @@ public class ResourceRegistryClientTest extends ContextTest {
|
|||
@Test
|
||||
public void testGetRelatedResourcesByClasses() throws ResourceRegistryException {
|
||||
List<EService> eServices = resourceRegistryClient.getRelatedResources(EService.class, IsRelatedTo.class,
|
||||
Resource.class, Direction.out, true);
|
||||
Resource.class, Direction.OUT, true);
|
||||
logger.trace("{}", eServices);
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ public class ResourceRegistryClientTest extends ContextTest {
|
|||
Header header = new HeaderImpl(uuid);
|
||||
hostingNode.setHeader(header);
|
||||
List<EService> eServices = resourceRegistryClient.getRelatedResourcesFromReferenceResource(EService.class,
|
||||
IsRelatedTo.class, HostingNode.class, hostingNode, Direction.out, true);
|
||||
IsRelatedTo.class, HostingNode.class, hostingNode, Direction.OUT, true);
|
||||
logger.trace("{}", eServices);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue