mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:56:57 +00:00
Merge pull request #2178 from constantine2nd/develop
yuicompressor-maven-plugin
This commit is contained in:
commit
1273e55afb
@ -58,6 +58,10 @@ To compile and run jetty, install Maven 3, create your configuration in obp-api/
|
||||
|
||||
mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api
|
||||
|
||||
In case that the above command fails try next one:
|
||||
|
||||
export MAVEN_OPTS="-Xss128m" && mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api
|
||||
|
||||
[Note: How to run via IntelliJ IDEA](docs/glossary/Run_via_IntelliJ_IDEA.md)
|
||||
|
||||
## Run some tests.
|
||||
|
||||
14
docs/glossary/Dynamic_Resource_Doc.md
Normal file
14
docs/glossary/Dynamic_Resource_Doc.md
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
In OBP we largely define our endpoints using an internal case class or model called ResourceDoc
|
||||
|
||||
Using this endpoint, developers can create their own Resource Docs at run time thus creating fully featured
|
||||
Open Bank Project style endpoints dynamically.
|
||||
|
||||
In order to do this you need to prepare your desired Resource Doc as JSON.
|
||||
The business logic code can be written in the *method_body* field as encoded Scala code.
|
||||
|
||||
This feature is somewhat work in progress (WIP).
|
||||
|
||||
The following videos are available:
|
||||
* [Introduction to Dynamic Resource Docs] (https://vimeo.com/623381607)
|
||||
|
||||
@ -592,28 +592,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>net.alchim31.maven</groupId>
|
||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||
<version>1.5.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>compress</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<nosuffix>true</nosuffix>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
<excludes>
|
||||
<!-- yuicompressor fails to compile patterns library, hence stopping full build -->
|
||||
<!-- We won't be modifying this library so will exclude it for now -->
|
||||
<exclude>**/*.min.*</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
|
||||
@ -83,7 +83,7 @@ import code.kycchecks.MappedKycCheck
|
||||
import code.kycdocuments.MappedKycDocument
|
||||
import code.kycmedias.MappedKycMedia
|
||||
import code.kycstatuses.MappedKycStatus
|
||||
import code.loginattempts.MappedBadLoginAttempt
|
||||
import code.loginattempts.{LoginAttempt, MappedBadLoginAttempt}
|
||||
import code.management.ImporterAPI
|
||||
import code.meetings.{MappedMeeting, MappedMeetingInvitee}
|
||||
import code.metadata.comments.MappedComment
|
||||
@ -685,7 +685,24 @@ class Boot extends MdcLoggable {
|
||||
case _ => // Do not start it
|
||||
}
|
||||
MetricsArchiveScheduler.start(intervalInSeconds = 86400)
|
||||
|
||||
|
||||
|
||||
object UsernameLockedChecker {
|
||||
def beginServicing(session: LiftSession, req: Req){
|
||||
AuthUser.currentUser match {
|
||||
case Full(user) =>
|
||||
LoginAttempt.userIsLocked(localIdentityProvider, user.username.get) match {
|
||||
case true =>
|
||||
AuthUser.logoutCurrentUser
|
||||
logger.warn(s"User ${user.username.get} has been logged out due to it has been locked.")
|
||||
case false => // Do nothing
|
||||
}
|
||||
case _ => // Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
LiftSession.onBeginServicing = UsernameLockedChecker.beginServicing _ ::
|
||||
LiftSession.onBeginServicing
|
||||
|
||||
APIUtil.akkaSanityCheck() match {
|
||||
case Full(c) if c == true => logger.info(s"remotedata.secret matched = $c")
|
||||
|
||||
@ -3064,28 +3064,6 @@ object Glossary extends MdcLoggable {
|
||||
|
|
||||
|""".stripMargin)
|
||||
|
||||
|
||||
|
||||
glossaryItems += GlossaryItem(
|
||||
title = "Dynamic Resource Doc",
|
||||
description =
|
||||
s"""
|
||||
| In OBP we largely define our endpoints using an internal case class or model called ResourceDoc
|
||||
|
|
||||
| Using this endpoint, developers can create their own Resource Docs at run time thus creating fully featured
|
||||
| Open Bank Project style endpoints dynamically.
|
||||
|
|
||||
|
|
||||
| In order to do this you need to prepare your desired Resource Doc as JSON.
|
||||
| The business logic code can be written in the *method_body* field as encoded Scala code.
|
||||
|
|
||||
| This feature is somewhat work in progress (WIP).
|
||||
|
|
||||
|The following videos are available:
|
||||
|* [Introduction to Dynamic Resource Docs] (https://vimeo.com/623381607)
|
||||
|
|
||||
|""".stripMargin)
|
||||
|
||||
glossaryItems += GlossaryItem(
|
||||
title = "Dynamic Message Doc",
|
||||
description =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user