models

LicenseData

case class LicenseData(id: UUID = UUID.generate(), m_licenseType: String = "license1", m_licenseUrl: String = "", m_licenseText: String = "All Rights Reserved", m_rightsHolder: String = "", m_ccAllowCommercial: Boolean = false, m_ccAllowDerivative: Boolean = false, m_ccRequireShareAlike: Boolean = false, m_allowDownload: Boolean = false) extends Product with Serializable

case class to handle specific license information. Currently attached to individual Datasets and Files.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LicenseData
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LicenseData(id: UUID = UUID.generate(), m_licenseType: String = "license1", m_licenseUrl: String = "", m_licenseText: String = "All Rights Reserved", m_rightsHolder: String = "", m_ccAllowCommercial: Boolean = false, m_ccAllowDerivative: Boolean = false, m_ccRequireShareAlike: Boolean = false, m_allowDownload: Boolean = false)

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 finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  11. val id: UUID

  12. def isDownloadAllowed(user: Option[User]): Boolean

    Utility method to check if the license allows the file to be downloaded.

    Utility method to check if the license allows the file to be downloaded. Currently, if the license type is NOT "license1", or if it is "license1" and the "allowDownload" flag is set, the file can be downloaded.

    returns

    A boolean, true if the license type allows the file to be downloaded, false otherwise.

  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def isRightsOwner(aName: String): Boolean

    Utility method to check if a name matches the rights holder of the license.

    Utility method to check if a name matches the rights holder of the license.

    aName

    A String that represents the name of a user to compare to the current rights holder.

    returns

    A boolean, true if the parameter matches the owner, false otherwise.

  15. val m_allowDownload: Boolean

  16. val m_ccAllowCommercial: Boolean

  17. val m_ccAllowDerivative: Boolean

  18. val m_ccRequireShareAlike: Boolean

  19. val m_licenseText: String

  20. val m_licenseType: String

  21. val m_licenseUrl: String

  22. val m_rightsHolder: String

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

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

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

    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def to_jsonld(): JsValue

    Utility function, similar to a json Write, to return string version in json-ld format Should also return key

  28. def urlViaAttributes(): String

    Utility to return a url even if empty, but enough other attributes available to determine it this is repurposed from: function updateData(id, imageBase, sourceObject, authorName) in updateLicenseInfo.

    Utility to return a url even if empty, but enough other attributes available to determine it this is repurposed from: function updateData(id, imageBase, sourceObject, authorName) in updateLicenseInfo.js line:88

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped