Changeset 147 for trunk/grails-app/conf
- Timestamp:
- Oct 8, 2009, 7:58:38 PM (15 years ago)
- Location:
- trunk/grails-app/conf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r140 r147 111 111 ] 112 112 113 /** Class-diagram plugin overrides. 114 * 115 */ 116 classDiagram { 117 associations { 118 arrows { 119 // See http://www.graphviz.org/doc/info/arrows.html for available arrowheads and their visual appearance 120 references = "open" 121 belongsTo = "odiamond" 122 embedded = "diamond" 123 inherits = "onormal" 124 none = "none" 125 } 126 decorators { 127 // plain text to be shown on edge ends 128 hasOne = "1" 129 hasMany = "*" 130 none = "" 131 } 132 } 133 skins { 134 classicSpacey { 135 name = " Classic Spacey" 136 graphStyle = [bgcolor:"none", mclimit:100, nodesep:'1.5 equally', ranksep:'2 equally' ] 137 nodeStyle = [style:"rounded,filled", color:"blue", fillcolor:"azure2", fontname:"Verdana", fontsize:18] 138 edgeStyle = [color:"gray40", fontname:"Verdana", fontsize:18, labelfontsize:20, labeldistance:3.5] 139 } 140 } 141 } 113 /** Navigation plugin alternate menu. 114 * The alternate top level titles are not displayed anywhere. 115 * Subitems i18n message bundles are not currently resolving with this plugin. 116 */ 117 navigation.navAlt = [ 118 [order:10, controller:'person', title:'person', action:'list', 119 subItems: [ 120 [order:10, controller:'person', title:'Person List', action:'list', isVisible: { true }], 121 [order:20, controller:'person', title:'Create', action:'create', isVisible: { true }], 122 [order:90, controller:'person', title:'Show', action:'show', isVisible: { params.action == 'show' }], 123 [order:91, controller:'person', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 124 ] 125 ], 126 [order:20, controller:'taskProcedureDetailed', title:'task', action:'list', 127 subItems: [ 128 [order:10, controller:'taskProcedureDetailed', title:'Task Procedure List', action:'list', isVisible: { true }], 129 [order:20, controller:'taskProcedureDetailed', title:'Create', action:'create', isVisible: { true }], 130 [order:90, controller:'taskProcedureDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], 131 [order:91, controller:'taskProcedureDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 132 ] 133 ] 134 ] -
trunk/grails-app/conf/SecurityConfig.groovy
r145 r147 3 3 def authenticateService 4 4 5 // see DefaultSecurityConfig.groovy for all settable/overridable properties5 // See DefaultSecurityConfig.groovy for all settable/overridable properties 6 6 7 7 active = true … … 14 14 authorityDomainClass = "Authority" 15 15 16 // Required if we want to run "grails generate-manager"17 // Which recreates the controller and views, so save the views!16 // Required if we want to run "grails generate-manager" 17 // Which recreates the controller and views, so save the views! 18 18 // requestMapClass = 'Requestmap' 19 19 20 // The whole application relies on controllerAnnotations and the static rules bellow. 20 21 useRequestMapDomainClass = false 21 22 useControllerAnnotations = true 22 23 23 // Set true especially if used across the internet.24 // Set true especially if used across the internet. 24 25 forceHttps = 'false' 25 26 26 // Pessimistic locking, deny access to all URLs that don't27 // have an applicable URL-Role configuration.28 // This forces us to set an annotation, static rule or29 // extend BaseController and prevents accidentally leaving pages open.27 // Pessimistic locking, deny access to all URLs that don't 28 // have an applicable URL-Role configuration. 29 // This forces us to set an annotation, static rule or 30 // extend BaseController and prevents accidentally leaving pages open. 30 31 controllerAnnotationsRejectIfNoRule = true 31 32 // Static rules for controllers, actions and urls.33 // Since we are using pessimistic locking we have to set some things34 // here but most security should be set in the controllers.32 33 // Static rules for controllers, actions and urls. 34 // Since we are using pessimistic locking we have to set some things 35 // here but most security should be set in the controllers. 35 36 controllerAnnotationStaticRules = [ 36 37 '/': ['IS_AUTHENTICATED_FULLY'], … … 39 40 '/images/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], 40 41 '/js/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], 41 '/plugins/**': ['IS_AUTHENTICATED_FULLY'], 42 // '/plugins/help-balloons-1.2/**': ['IS_AUTHENTICATED_FULLY'], 43 // '/plugins/richui-0.6/**': ['IS_AUTHENTICATED_FULLY'], 44 // '/plugins/navigation-1.1/**': ['IS_AUTHENTICATED_FULLY'], 45 // '/plugins/filterpane-0.6.2/**': ['IS_AUTHENTICATED_FULLY'], 46 // '/plugins/calendar-1.2.0-SNAPSHOT2/**': ['IS_AUTHENTICATED_FULLY'], 47 // 48 // '/plugins/class-diagram-0.3/**': ['IS_AUTHENTICATED_FULLY'], 49 // '/classDiagram*': ['IS_AUTHENTICATED_FULLY'], 50 // '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'], 42 '/plugins/**': ['IS_AUTHENTICATED_FULLY'], 43 '/classDiagram*': ['IS_AUTHENTICATED_FULLY'], 44 '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'], 51 45 '/login*': ['IS_AUTHENTICATED_ANONYMOUSLY'], 52 46 '/login/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], … … 55 49 ] 56 50 57 //We always want to go to the home page so that bookmarks are not used. 51 // Always call the welcome action so that bookmarks are not used, a 52 // welcome message can be populated and the sessionTimeout can be set. 58 53 defaultTargetUrl = '/appCore/welcome' 59 54 alwaysUseDefaultTargetUrl = true 60 55 61 // User caching, turned this off so that password changes take effect.62 // It would appear that user is still in the session as logout/login56 // User caching, turned this off so that password changes take effect. 57 // It would appear that user is still in the session as logout/login 63 58 // is still required for role changes to take effect. 64 // If this option causes high database load try:59 // If this option causes high database load try: 65 60 // import org.acegisecurity.providers.dao.DaoAuthenticationProvider 66 61 // import org.acegisecurity.context.SecurityContextHolder … … 71 66 cacheUsers = false 72 67 73 // // List for andevents and run the closure(s) that follow.74 // // Unfortunately the session is not available yet so many things can't be done here, us andefaultTargetUrl and controller.68 // // Listen for events and run the closure(s) that follow. 69 // // Unfortunately the session is not available yet so many things can't be done here, use a defaultTargetUrl and controller. 75 70 // useSecurityEventListener = true 76 71 //
Note: See TracChangeset
for help on using the changeset viewer.