test_class.declarator: vufsService
test_class.modifier: private
test_class.original_string: private IVufsService vufsService;
test_class.type: IVufsService
test_class.var_name: vufsService
test_class.file: vufs/src/test/java/com/stnetix/ariaddna/vufs/service/VufsServiceImplTest.java
test_class.identifier: VufsServiceImplTest
test_case.body: @Test
      public void addMetafileAsChildToParent() {
          Metafile parentMetafile = vufsService.createEmptyMetafile();
          String parentMetafileUuid = parentMetafile.getFileUuid();
          Metafile childMetafile = vufsService.createEmptyMetafile();
          String childMetafileUuid = childMetafile.getFileUuid();
          assertEquals(parentMetafile.getChildFileUuidSet().size(), 0);
          assertEquals(childMetafile.getChildFileUuidSet().size(), 0);
          vufsService.addMetafileToMetatable(parentMetafile);
  
          boolean isAdded = vufsService.addMetafileAsChildToParent(childMetafile, parentMetafileUuid);
          assertTrue(isAdded);
          assertEquals(parentMetafile.getChildFileUuidSet().size(), 1);
          assertTrue(parentMetafile.getChildFileUuidSet().contains(childMetafileUuid));
      }
test_case.class_method_signature: VufsServiceImplTest.addMetafileAsChildToParent()
test_case.full_signature: @Test public void addMetafileAsChildToParent()
test_case.identifier: addMetafileAsChildToParent
test_case.invocations: createEmptyMetafile getFileUuid createEmptyMetafile getFileUuid assertEquals size getChildFileUuidSet assertEquals size getChildFileUuidSet addMetafileToMetatable addMetafileAsChildToParent assertTrue assertEquals size getChildFileUuidSet assertTrue contains getChildFileUuidSet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void addMetafileAsChildToParent()
focal_class.declarator: currentMetatable
focal_class.modifier: private
focal_class.original_string: private Metatable currentMetatable;
focal_class.type: Metatable
focal_class.var_name: currentMetatable
focal_class.declarator: profile
focal_class.modifier: private
focal_class.original_string: private IProfile profile;
focal_class.type: IProfile
focal_class.var_name: profile
focal_class.declarator: metatableTransformer
focal_class.modifier: private
focal_class.original_string: private MetatableTransformer metatableTransformer;
focal_class.type: MetatableTransformer
focal_class.var_name: metatableTransformer
focal_class.declarator: persistingService
focal_class.modifier: private
focal_class.original_string: private IMetatableService persistingService;
focal_class.type: IMetatableService
focal_class.var_name: persistingService
focal_class.file: vufs/src/main/java/com/stnetix/ariaddna/vufs/service/VufsServiceImpl.java
focal_class.identifier: VufsServiceImpl
focal_class.interfaces: implements IVufsService
focal_class.class_method_signature: VufsServiceImpl.VufsServiceImpl(IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.full_signature: @Autowired public  VufsServiceImpl(IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.identifier: VufsServiceImpl
focal_class.modifiers: @Autowired public
focal_class.parameters: (IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.signature:  VufsServiceImpl(IProfile profile,
              MetatableTransformer metatableTransformer,
              IMetatableService persistingService)
focal_class.class_method_signature: VufsServiceImpl.createEmptyMetafile()
focal_class.full_signature: @Override public Metafile createEmptyMetafile()
focal_class.identifier: createEmptyMetafile
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Metafile
focal_class.signature: Metafile createEmptyMetafile()
focal_class.class_method_signature: VufsServiceImpl.getMetafileByUuid(String fileUuid)
focal_class.full_signature: @Override public Metafile getMetafileByUuid(String fileUuid)
focal_class.identifier: getMetafileByUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String fileUuid)
focal_class.return: Metafile
focal_class.signature: Metafile getMetafileByUuid(String fileUuid)
focal_class.class_method_signature: VufsServiceImpl.addBlockByUuidToMetafile(String blockUuid, Metafile metafile)
focal_class.full_signature: @Override public Metafile addBlockByUuidToMetafile(String blockUuid, Metafile metafile)
focal_class.identifier: addBlockByUuidToMetafile
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid, Metafile metafile)
focal_class.return: Metafile
focal_class.signature: Metafile addBlockByUuidToMetafile(String blockUuid, Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.removeBlockByUuidFromMetafile(String blockUuid, Metafile metafile)
focal_class.full_signature: @Override public Metafile removeBlockByUuidFromMetafile(String blockUuid, Metafile metafile)
focal_class.identifier: removeBlockByUuidFromMetafile
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid, Metafile metafile)
focal_class.return: Metafile
focal_class.signature: Metafile removeBlockByUuidFromMetafile(String blockUuid, Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.addMetafileToMetatable(Metafile metafile)
focal_class.full_signature: @Override public boolean addMetafileToMetatable(Metafile metafile)
focal_class.identifier: addMetafileToMetatable
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile metafile)
focal_class.return: boolean
focal_class.signature: boolean addMetafileToMetatable(Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.removeMetafileFromMetatable(Metafile metafile)
focal_class.full_signature: @Override public boolean removeMetafileFromMetatable(Metafile metafile)
focal_class.identifier: removeMetafileFromMetatable
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile metafile)
focal_class.return: boolean
focal_class.signature: boolean removeMetafileFromMetatable(Metafile metafile)
focal_class.class_method_signature: VufsServiceImpl.getAllocationByBlockUuid(String blockUuid)
focal_class.full_signature: @Override public Set<String> getAllocationByBlockUuid(String blockUuid)
focal_class.identifier: getAllocationByBlockUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid)
focal_class.return: Set<String>
focal_class.signature: Set<String> getAllocationByBlockUuid(String blockUuid)
focal_class.class_method_signature: VufsServiceImpl.setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_class.full_signature: @Override public void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_class.identifier: setAllocationForBlockByUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String blockUuid, Set<String> allocationSet)
focal_class.return: void
focal_class.signature: void setAllocationForBlockByUuid(String blockUuid, Set<String> allocationSet)
focal_class.class_method_signature: VufsServiceImpl.addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_class.full_signature: @Override public boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_class.identifier: addMetafileAsChildToParent
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile childMetafile,
              String parentMetafileUuid)
focal_class.return: boolean
focal_class.signature: boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_class.class_method_signature: VufsServiceImpl.removeMetafileFromParent(String childMetafileUuid,
              String parentMetafileUuid)
focal_class.full_signature: @Override public boolean removeMetafileFromParent(String childMetafileUuid,
              String parentMetafileUuid)
focal_class.identifier: removeMetafileFromParent
focal_class.modifiers: @Override public
focal_class.parameters: (String childMetafileUuid,
              String parentMetafileUuid)
focal_class.return: boolean
focal_class.signature: boolean removeMetafileFromParent(String childMetafileUuid,
              String parentMetafileUuid)
focal_class.class_method_signature: VufsServiceImpl.getAllocationStrategyByMetafileUuid(String metafileUuid)
focal_class.full_signature: @Override public AllocationStrategy getAllocationStrategyByMetafileUuid(String metafileUuid)
focal_class.identifier: getAllocationStrategyByMetafileUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String metafileUuid)
focal_class.return: AllocationStrategy
focal_class.signature: AllocationStrategy getAllocationStrategyByMetafileUuid(String metafileUuid)
focal_class.class_method_signature: VufsServiceImpl.setAllocationStrategyByMetafileUuid(String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.full_signature: @Override public void setAllocationStrategyByMetafileUuid(String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.identifier: setAllocationStrategyByMetafileUuid
focal_class.modifiers: @Override public
focal_class.parameters: (String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.return: void
focal_class.signature: void setAllocationStrategyByMetafileUuid(String metafileUuid,
              AllocationStrategy allocationStrategy)
focal_class.class_method_signature: VufsServiceImpl.getExceptionInfo(Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.full_signature: private String getExceptionInfo(Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.identifier: getExceptionInfo
focal_class.modifiers: private
focal_class.parameters: (Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.return: String
focal_class.signature: String getExceptionInfo(Metatable currentMetatable, String metafileUuid,
              String methodName)
focal_class.class_method_signature: VufsServiceImpl.persistChanges()
focal_class.full_signature: @PreDestroy public void persistChanges()
focal_class.identifier: persistChanges
focal_class.modifiers: @PreDestroy public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void persistChanges()
focal_method.body: @Override
      public boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid) {
          boolean isAdded = false;
          //add Metafile to set of metafile in Metatable.
          if (currentMetatable.addMetafile(childMetafile)) {
              for (Metafile metafile : currentMetatable.getMetafileSet()) {
                  //parent metafile exist and its a directory.
                  if (metafile.getFileUuid().equalsIgnoreCase(parentMetafileUuid)) {
                      isAdded = metafile.addChildFileUUid(childMetafile.getFileUuid());
                  }
              }
          }
          if (isAdded) {
              childMetafile.setParentFileUuid(parentMetafileUuid);
              return true;
          }
          return false;
      }
focal_method.class_method_signature: VufsServiceImpl.addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_method.full_signature: @Override public boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)
focal_method.identifier: addMetafileAsChildToParent
focal_method.invocations: addMetafile getMetafileSet equalsIgnoreCase getFileUuid addChildFileUUid getFileUuid setParentFileUuid
focal_method.modifiers: @Override public
focal_method.parameters: (Metafile childMetafile,
              String parentMetafileUuid)
focal_method.return: boolean
focal_method.signature: boolean addMetafileAsChildToParent(Metafile childMetafile,
              String parentMetafileUuid)