Package scfs.directoryService.exceptions

Examples of scfs.directoryService.exceptions.DirectoryServiceException


    writeMetadata();
  }

  public Collection<NodeMetadata> getNodeChildren(String path) throws DirectoryServiceException{
    if(!metadataBag.containsKey(path))
      throw new DirectoryServiceException("Node not exists");

    Collection<NodeMetadata> res = new LinkedList<NodeMetadata>();
    for(NodeMetadata m : metadataBag.values())
      if(m.getParent().equals(path))
        res.add(m);
View Full Code Here


    return res;
  }

  public void updateMetadata(String path, NodeMetadata m) throws DirectoryServiceException{
    if(metadataBag.remove(path)==null)
      throw new DirectoryServiceException("Node not exists.");
    metadataBag.put(m.getPath(), m);

    if(!path.equals(m.getPath())){
      for(NodeMetadata mdata : metadataBag.values()){
        if(mdata.getParent().equals(path)){
View Full Code Here

TOP

Related Classes of scfs.directoryService.exceptions.DirectoryServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.