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
| //activate or deactivate the plugin | |
| grails.plugins.springsecurity.ldap.active=true | |
| if(grails.plugins.springsecurity.ldap.active) { | |
| // specify this when you want to skip attempting to load from db and only use LDAP | |
| grails.plugins.springsecurity.providerNames = ['ldapAuthProvider', 'anonymousAuthenticationProvider'] | |
| } |
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
| import org.codehaus.groovy.grails.plugins.springsecurity.GrailsUserDetailsService | |
| import org.springframework.security.core.userdetails.UserDetails | |
| import org.springframework.security.core.userdetails.UsernameNotFoundException | |
| import User | |
| class CustomUserDetailsService implements GrailsUserDetailsService { | |
| //this creates a List of GrantedAuthorityImpl | |
| MyAuthoritiesBuilder myAuthoritiesBuilder | |
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
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentDateMidnight, class: org.joda.time.DateMidnight | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentDateTime, class: org.joda.time.DateTime | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentDateTimeZoneAsString, class: org.joda.time.DateTimeZone | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentDurationAsString, class: org.joda.time.Duration | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentInstantAsMillisLong, class: org.joda.time.Instant | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentInterval, class: org.joda.time.Interval | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentLocalDate, class: org.joda.time.LocalDate | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime, class: org.joda.time.LocalDateTime | |
| 'user-type' type: org.jadira.usertype.dateandtime.joda.PersistentLocalTime, class: org.joda.time.LocalTime | |
| 'user-type' type: org.j |
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> |
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
| | 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
| 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
| 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
| 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
| beans = { | |
| lobHandlerDetector(OracleLobHandler) { nativeJdbcExtractor = new CommonsDbcpNativeJdbcExtractor() } | |
| } |