Changeset 3 for trunk/grails-app/conf/BaseFilters.groovy
- Timestamp:
- Jan 12, 2011, 9:45:08 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 .classpath 5 5 .project 6 fileuploads
-
- Property svn:ignore
-
trunk/grails-app/conf/BaseFilters.groovy
r2 r3 21 21 class BaseFilters { 22 22 def gscfService 23 def synchronizationService 23 24 24 25 // define filters … … 93 94 } 94 95 96 fullSynchronization(controller:'*', action:'*') { 97 before = { 98 // Never perform full synchronization on rest call when the synchronize controller is used 99 if( controllerName == "rest" || controllerName == "synchronize" ) { 100 return true; 101 } 102 103 // Never perform synchronization on a POST request 104 if( request.method == "POST" ) 105 return true; 106 107 if( synchronizationService.timeForFullSynchronization() ) { 108 redirect( url: synchronizationService.urlForFullSynchronization( params ) ); 109 return false 110 } 111 112 return true 113 114 } 115 } 116 95 117 defineStyle(controller: '*', action: '*') { 96 118 // before every execution
Note: See TracChangeset
for help on using the changeset viewer.