Package com.kurento.kmf.repository

Examples of com.kurento.kmf.repository.DuplicateItemException


  public RepositoryItem createRepositoryItem(String id) {

    // TODO The file is not written until outputstream is closed. There is a
    // potentially data race with this unique test
    if (!gridFS.find(idQuery(id)).isEmpty()) {
      throw new DuplicateItemException(id);
    }

    GridFSInputFile dbFile = gridFS.createFile(id);
    dbFile.setId(id);
    return createRepositoryItem(dbFile);
View Full Code Here


  public RepositoryItem createRepositoryItem(String id) {

    File file = getFileForId(id);

    if (file.exists()) {
      throw new DuplicateItemException(id);
    }

    return new FileRepositoryItem(this, file, id, metadata.loadMetadata(id));
  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.repository.DuplicateItemException

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.