dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30538
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15499: minor changes
------------------------------------------------------------
revno: 15499
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-06-01 15:52:28 +0200
message:
minor changes
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/NodeService.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/DefaultNodeService.java
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SystemController.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/NodeService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/NodeService.java 2014-06-01 11:39:39 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/NodeService.java 2014-06-01 13:52:28 +0000
@@ -32,11 +32,14 @@
import java.io.IOException;
import java.io.OutputStream;
+import java.util.List;
/**
* @author Morten Olav Hansen <mortenoh@xxxxxxxxx>
*/
public interface NodeService
{
+ List<NodeSerializer> getSerializers();
+
void serialize( RootNode rootNode, String contentType, OutputStream outputStream ) throws IOException;
}
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/DefaultNodeService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/DefaultNodeService.java 2014-06-01 11:39:39 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/DefaultNodeService.java 2014-06-01 13:52:28 +0000
@@ -59,6 +59,12 @@
}
@Override
+ public List<NodeSerializer> getSerializers()
+ {
+ return nodeSerializers;
+ }
+
+ @Override
public void serialize( RootNode rootNode, String contentType, OutputStream outputStream ) throws IOException
{
if ( !nodeSerializerMap.containsKey( contentType ) )
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SystemController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SystemController.java 2014-06-01 13:38:55 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SystemController.java 2014-06-01 13:52:28 +0000
@@ -32,7 +32,6 @@
import org.hisp.dhis.dxf2.metadata.ImportSummary;
import org.hisp.dhis.dxf2.utils.JacksonUtils;
import org.hisp.dhis.node.NodeHint;
-import org.hisp.dhis.node.NodeService;
import org.hisp.dhis.node.exception.InvalidTypeException;
import org.hisp.dhis.node.types.CollectionNode;
import org.hisp.dhis.node.types.RootNode;
@@ -82,9 +81,6 @@
@Autowired
private Notifier notifier;
- @Autowired
- private NodeService nodeService;
-
//--------------------------------------------------------------------------
// UID Generator
//--------------------------------------------------------------------------