Class/Object

razie.wiki.admin

SecLink

Related Docs: object SecLink | package admin

Permalink

case class SecLink(link: String, host: Option[String] = None, maxCount: Int = 1, expiry: DateTime = DateTime.now.plusHours(8), count: Int = 0, verified: Option[Int] = Some(0), createdDtm: Option[DateTime] = Some(DateTime.now), lastDoneDtm: DateTime = DateTime.now, props: Map[String, String] = Map.empty, _id: ObjectId = new ObjectId()) extends Product with Serializable

secured link with expiry date, to be emailed for instance, like "activate your account"

this is also used as a token

the idea is that the info required (account number, email whatever) is saved on the server side and given a unique ID/hash which is emailed.

Annotations
@RTable()
See also

razie.controllers.Sec

  1. create the DoSec 2. get the securl - this will create it as well 3. when used, it will redirect 4. purge those that are done or expired whenever Note that this is persisted only if the secUrl is requested
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecLink
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SecLink(link: String, host: Option[String] = None, maxCount: Int = 1, expiry: DateTime = DateTime.now.plusHours(8), count: Int = 0, verified: Option[Int] = Some(0), createdDtm: Option[DateTime] = Some(DateTime.now), lastDoneDtm: DateTime = DateTime.now, props: Map[String, String] = Map.empty, _id: ObjectId = new ObjectId())

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val _id: ObjectId

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val count: Int

    Permalink
  8. var created: Boolean

    Permalink
  9. val createdDtm: Option[DateTime]

    Permalink
  10. def delete: SecLink

    Permalink
  11. def done: Unit

    Permalink

    update status as done - you should purge these entries every now and then

    update status as done - you should purge these entries every now and then

    NOTE this will not delete it, because they may still need to be verified

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. val expiry: DateTime

    Permalink
  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. val host: Option[String]

    Permalink
  17. def id: String

    Permalink
  18. def isDone: Boolean

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val lastDoneDtm: DateTime

    Permalink
  21. val link: String

    Permalink
  22. val maxCount: Int

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. val props: Map[String, String]

    Permalink
  27. def secUrl: String

    Permalink

    invoke this only once - create the link, persist it and make a unique URL

    invoke this only once - create the link, persist it and make a unique URL

    this must be a def - otherwise it keeps creating it, eh?

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

    Permalink
    Definition Classes
    AnyRef
  29. def token: String

    Permalink
  30. val verified: Option[Int]

    Permalink
  31. def verify: Boolean

    Permalink

    verify that this should still be done - use the "SecLinkId" header to verify

  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withProp(name: String, value: String): SecLink

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped