Skip to content

Commit

Permalink
VirtualObject Data 수정 iotoasis#317
Browse files Browse the repository at this point in the history
  • Loading branch information
pahnjy01 committed Jan 5, 2017
1 parent ba96d41 commit 83ed5aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ public List<VirtualObject> searchVirtualObjectList(String location) {

@Override
public List<VirtualObject> searchVirtualObjectList(String aspect, String functionality) {
logger.debug("aspect = " + aspect + " functionality = " + functionality);

List<VirtualObject> virtualObjectList = virtualObjectStore.retrieveByAspectAndFunctionality(aspect, functionality);
for(VirtualObject virtualObject : virtualObjectList){
logger.debug("VirtualObject = " + virtualObject.toString());
logger.debug("[VirtualObject] ID = " + virtualObject.getId() + " name = " + virtualObject.getVoName());
}
return virtualObjectList;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ public void deleteVirtualObject(@PathVariable String id){
@RequestMapping(value = "/search",method = RequestMethod.POST)
@ResponseStatus(HttpStatus.OK)
public List<VirtualObject> findVirtualObject(@RequestBody VirtualObjectTransFormObject virtulaObject){

logger.info(LogPrint.inputInfoLogPrint());
logger.info(LogPrint.LogMethodNamePrint() + " | [aspect] = " + virtulaObject.getAspect() + " [functionality] = " + virtulaObject.getFunctionality());
return virtualObjectManager.searchVirtualObjectList(virtulaObject.getAspect(), virtulaObject.getFunctionality());

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,13 @@ public List<VirtualObject> retrieveByLocationAndService(String location, String

@Override
public List<VirtualObject> retrieveByAspectAndFunctionality(String aspect, String functionality) {
logger.debug("Aspect = " + aspect + " Functionality = " + functionality);
List<VirtualObject> virtualObjects = new ArrayList<>();
List<VirtualObjectDataObject> virtualObjectDataObjects = virtualObjectRepostory.findByAspectAndFunctionality(aspect, functionality);

for(VirtualObjectDataObject v : virtualObjectDataObjects) {
virtualObjects.add(DataObjectToVirtualObject(v));
}

for(VirtualObject virtualObject : virtualObjects){
logger.debug("VirtualObject = " + virtualObject.toString());
}

return virtualObjects;
}

Expand Down

0 comments on commit 83ed5aa

Please sign in to comment.