This file contains hidden or 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
| class UserDatabaseAuthenticationProvider extends AbstractUserDetailsAuthenticationProvider { | |
| def dataSource | |
| @Override | |
| protected void additionalAuthenticationChecks(UserDetails userDetails, | |
| UsernamePasswordAuthenticationToken token) throws AuthenticationException { | |
| } | |
| @Override |
This file contains hidden or 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
| class MyController { | |
| def dataSource //instance of UserCredentialsDataSourceAdapter | |
| def index() { | |
| dataSource.setCredentialsForCurrentThread("user", "password") | |
| //this will call getConnection("user","password") | |
| //If we have a service, it will use the same username and password also | |
| Connection conn = dataSource.getConnection() | |
| } |
This file contains hidden or 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
| dataSource(UserCredentialsDataSourceAdapter){ | |
| targetDataSource= ref("dataSourceUnproxied") | |
| } |
This file contains hidden or 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
| beans = { | |
| lobHandlerDetector(OracleLobHandler) { nativeJdbcExtractor = new CommonsDbcpNativeJdbcExtractor() } | |
| } |
This file contains hidden or 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
| dataSource { | |
| pooled = false | |
| driverClassName = "oracle.jdbc.OracleDriver" | |
| //Add the Dialect for your database | |
| dialect = org.hibernate.dialect.Oracle10gDialect | |
| } | |
| hibernate { | |
| cache.use_second_level_cache = true | |
| cache.use_query_cache = false |
This file contains hidden or 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
| PluginATagLib { | |
| static namespace = "my" | |
| def input = { attrs, body -> | |
| out << attrs | |
| } | |
| } | |
| PluginBTagLib { | |
| static namespace = "my" | |
| static final String INPUT_CLASS = PluginATagLib.class.canonicalName |
This file contains hidden or 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
| package br.com.insoft4.core.constraints | |
| import org.codehaus.groovy.grails.commons.DefaultGrailsDomainClassProperty | |
| import org.codehaus.groovy.grails.commons.GrailsDomainClass | |
| import org.codehaus.groovy.grails.validation.ConstrainedProperty; | |
| import br.com.insoft4.core.types.EmpresaIdentity; | |
| import br.com.insoft4.core.types.SimNao | |
This file contains hidden or 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
| | Packaging Grails application..... | |
| | Packaging Grails application..... | |
| Configuring Spring Security Core ... | |
| ... finished configuring Spring Security Core | |
| ====================================================================== | |
| Application: insoft-security |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Teste</title> | |
| <meta name="layout" content="teste" /> | |
| <r:script disposition="defer"> | |
| alert('index!'); | |
| </r:script> | |
| <r:layoutResources /> |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title><g:layoutTitle default="Insoft4 UI Plugin"/></title> | |
| <g:layoutHead/> | |
| <r:layoutResources /> | |
| </head> | |
| <body> |