Package

razie.wiki

admin

Permalink

package admin

Visibility
  1. Public
  2. All

Type Members

  1. case class Autosave(what: String, realm: String, name: String, userId: com.mongodb.casbah.Imports.ObjectId, contents: Map[String, String], ver: Long = 0, crDtm: DateTime = DateTime.now, updDtm: DateTime = DateTime.now, _id: com.mongodb.casbah.Imports.ObjectId = new ObjectId()) extends REntityNoAudit[Autosave] with Product with Serializable

    Permalink

    simple support for autosaving drafts - a map / doc store.

    simple support for autosaving drafts - a map / doc store.

    Make the key something smart, i.e. what.reactor.wpath

    Annotations
    @RTable()
  2. class BaseMailSession extends AnyRef

    Permalink

    a mail session that doesn't have to connect to the server if there's nothing to send...

    a mail session that doesn't have to connect to the server if there's nothing to send...

    you get one with SendEmail.withSession and when closed, it will spawn a thread to send the emails collected during...

    it is a lot more optimzed sending emails in a batch

  3. case class EmailMsg(to: String, from: String, subject: String, html: String, isNotification: Boolean = true, bcc: Seq[String] = Seq.empty, status: String = EmailMsg.STATUS.READY, lastError: String = "", sendCount: Integer = 0, senderNode: Option[String] = None, lastDtm: DateTime = DateTime.now(), _id: ObjectId = new ObjectId()) extends REntityNoAudit[EmailMsg] with Product with Serializable

    Permalink

    a prepared email to send - either send now, later, backup etc

    a prepared email to send - either send now, later, backup etc

    Annotations
    @RTable()
  4. class MailSession extends BaseMailSession

    Permalink

    wiki specifics

  5. class SMTPAuthenticator extends Authenticator

    Permalink

    simple SMTP user/pass authenticator

  6. 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

    Permalink

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

    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

Value Members

  1. object Autosave extends Serializable

    Permalink

    autosave utils

  2. object EmailMsg extends Serializable

    Permalink

    email statics

  3. object GlobalData

    Permalink

    current ops data is updated here from all over - you can inspect this in a page

    current ops data is updated here from all over - you can inspect this in a page

    not nice, poor man's JMX

  4. object SecLink extends Serializable

    Permalink

    utilities to find/purge sec links

  5. object SendEmail extends Logging

    Permalink

    the email sender - saves emails in DB and sends them asynchronously with an actor, retrying in certain cases

    the email sender - saves emails in DB and sends them asynchronously with an actor, retrying in certain cases

    turns out that sending email is not the easiest thing to do

    will recover on restart, can be restarted etc

    todo move into a connectors subsystem

Ungrouped