-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#53 Move report tempate in cortex connector
- Loading branch information
To-om
committed
Dec 6, 2016
1 parent
b2a6ce9
commit 0afb3cf
Showing
8 changed files
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
...e-backend/app/models/ReportTemplate.scala → ...ectors/cortex/models/ReportTemplate.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package models | ||
|
||
import javax.inject.{ Inject, Singleton } | ||
|
||
import play.api.libs.json.JsObject | ||
|
||
import org.elastic4play.models.{ AttributeDef, AttributeFormat ⇒ F, EntityDef, ModelDef } | ||
|
||
trait ReportTemplateAttributes { _: AttributeDef ⇒ | ||
val content = attribute("content", F.textFmt, "Content of the template") | ||
val falvor = attribute("flavor", F.stringFmt, "Flavor of the report (short or long)") | ||
val analyzers = multiAttribute("analyzers", F.stringFmt, "Id of analyzers") | ||
} | ||
|
||
@Singleton | ||
class ReportTemplateModel @Inject() extends ModelDef[ReportTemplateModel, ReportTemplate]("reportTemplate") with ReportTemplateAttributes | ||
package models | ||
|
||
import javax.inject.{ Inject, Singleton } | ||
|
||
import play.api.libs.json.JsObject | ||
|
||
import org.elastic4play.models.{ AttributeDef, AttributeFormat ⇒ F, EntityDef, ModelDef } | ||
|
||
trait ReportTemplateAttributes { _: AttributeDef ⇒ | ||
val content = attribute("content", F.textFmt, "Content of the template") | ||
val falvor = attribute("flavor", F.stringFmt, "Flavor of the report (short or long)") | ||
val analyzers = multiAttribute("analyzers", F.stringFmt, "Id of analyzers") | ||
} | ||
|
||
@Singleton | ||
class ReportTemplateModel @Inject() extends ModelDef[ReportTemplateModel, ReportTemplate]("reportTemplate") with ReportTemplateAttributes | ||
class ReportTemplate(model: ReportTemplateModel, attributes: JsObject) extends EntityDef[ReportTemplateModel, ReportTemplate](model, attributes) with ReportTemplateAttributes |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters