mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
feature/View name check 2
This commit is contained in:
parent
ac4e159f64
commit
27eec2775e
@ -799,8 +799,8 @@ class Boot extends MdcLoggable {
|
||||
}
|
||||
|
||||
ApiWarnings.logWarningsRegardingProperties()
|
||||
ApiWarnings.incorrectCustomViewNames()
|
||||
ApiWarnings.incorrectSystemViewNames()
|
||||
ApiWarnings.customViewNamesCheck()
|
||||
ApiWarnings.systemViewNamesCheck()
|
||||
|
||||
//see the notes for this method:
|
||||
createDefaultBankAndDefaultAccountsIfNotExisting()
|
||||
|
||||
@ -544,6 +544,11 @@ object ViewDefinition extends ViewDefinition with LongKeyedMetaMapper[ViewDefini
|
||||
By(ViewDefinition.view_id, viewId),
|
||||
)
|
||||
}
|
||||
def getSystemViews(): List[ViewDefinition] = {
|
||||
ViewDefinition.findAll(
|
||||
By(ViewDefinition.isSystem_, true)
|
||||
)
|
||||
}
|
||||
|
||||
def findCustomView(bankId: String, accountId: String, viewId: String): Box[ViewDefinition] = {
|
||||
ViewDefinition.find(
|
||||
@ -553,6 +558,11 @@ object ViewDefinition extends ViewDefinition with LongKeyedMetaMapper[ViewDefini
|
||||
By(ViewDefinition.view_id, viewId),
|
||||
)
|
||||
}
|
||||
def getCustomViews(): List[ViewDefinition] = {
|
||||
ViewDefinition.findAll(
|
||||
By(ViewDefinition.isSystem_, false)
|
||||
)
|
||||
}
|
||||
|
||||
@deprecated("This is method only used for migration stuff, please use @findCustomView and @findSystemView instead.","13-12-2019")
|
||||
def findByUniqueKey(bankId: String, accountId: String, viewId: String): Box[ViewDefinition] = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user