services.mongodb

MongoUtils

object MongoUtils

Object used to read/write/delete from mongo. This object is aware of ByteStorageService. It will use mongo for the metadta of the file, and the ByteStorageService for the bytes. If either the ByteStorageService is set to MongoDBByteStorage or the useMongoProperty is set to true it will use mongo for the bytes as well (without going through ByteStorageService).

This code is aware of an issue with Casbah, Joda (see JIRA: https://opensource.ncsa.illinois.edu/jira/browse/MMDB-1573).

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def mongoQuery(dbObject: DBObject): String

  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def readBlob(id: UUID, collection: String, useMongoProperty: String): Option[(InputStream, String, String, Long)]

    Read from mongo and ByteStorageService.

    Read from mongo and ByteStorageService. This will return a tuple that contains metadata of the file as well as inputstream to the bytes.

  19. def removeBlob(id: UUID, collection: String, useMongoProperty: String): Boolean

    Remove from mongo and ByteStorageService.

    Remove from mongo and ByteStorageService. This will return the metadata from mongo and the bytes from ByteStorageService.

  20. val storage: ByteStorageService

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def writeBlob[T](inputStream: InputStream, filename: String, contentType: Option[String], extra: Map[String, AnyRef], collection: String, useMongoProperty: String)(implicit ev: Manifest[T]): Option[UUID]

    Write the inputstream to mongo and ByteStorageService.

    Write the inputstream to mongo and ByteStorageService. Any extra values to be written can be stored in extra. The values need to be able to be converted to DBObject.

Inherited from AnyRef

Inherited from Any

Ungrouped