| | 479 | |
| | 480 | <cfelseif attr is "name"> |
| | 481 | <cfif structKeyExists(this.fuseactions,attribs.name)> |
| | 482 | <cfthrow type="fusebox.overloadedFuseaction" |
| | 483 | message="overloaded Fuseaction" |
| | 484 | detail="You referenced a fuseaction, #attribs.name#, which has been defined multiple times in circuit #getAlias()#. Fusebox does not allow overloaded methods." /> |
| | 485 | </cfif> |
| | 486 | |
| | 487 | <cfelseif attr is "access"> |
| | 488 | <cfset access = attributes.access /> |
| | 489 | <cfif listFind("private,internal,public",access) eq 0> |
| | 490 | <cfthrow type="fusebox.badGrammar.illegalAccess" |
| | 491 | message="Fuseaction access illegal" |
| | 492 | detail="The 'access' value '#access#' is illegal on Fuseaction #attribs.name# in Circuit #getAlias()#. 'private', 'internal' or 'public' are the only legal values." /> |
| | 493 | </cfif> |
| | 494 | |
| | 495 | <cfelseif attr is "permissions"> |
| | 496 | <cfset permissions = attribs.permissions /> |
| | 497 | |
| | 498 | <cfelseif strict> |
| | 499 | <cfthrow type="fusebox.badGrammar.unexpectedAttributes" |
| | 500 | message="Unexpected attributes" |
| | 501 | detail="Unexpected attribute '#attr#' found on Fuseaction #attribs.name# in Circuit #getAlias()#." /> |
| 466 | | <cfif structKeyExists(attribs,"access")> |
| 467 | | <cfif listFind("private,internal,public",attribs.access) eq 0> |
| 468 | | <cfthrow type="fusebox.badGrammar.illegalAccess" |
| 469 | | message="Fuseaction access illegal" |
| 470 | | detail="The 'access' value '#attribs.access#' is illegal on Fuseaction #attribs.name# in Circuit #getAlias()#. 'private', 'internal' or 'public' are the only legal values." /> |
| 471 | | </cfif> |
| 472 | | <cfelse> |
| 473 | | <!--- default fuseaction access to circuit access ---> |
| 474 | | <cfset attribs.access = this.access /> |
| 475 | | </cfif> |
| 476 | | <cfif structKeyExists(this.fuseactions,attribs.name)> |
| 477 | | <cfthrow type="fusebox.overloadedFuseaction" |
| 478 | | message="overloaded Fuseaction" |
| 479 | | detail="You referenced a fuseaction, #attribs.name#, which has been defined multiple times in circuit #getAlias()#. Fusebox does not allow overloaded methods." /> |
| 480 | | </cfif> |
| 483 | | .init(this,attribs.name,attribs.access,children[i].xmlChildren,false,customAttribs) /> |
| 484 | | |
| 485 | | <!--- FB41 compatibility for security plugins ---> |
| 486 | | <cfif structKeyExists(attribs,"permissions")> |
| 487 | | <cfset this.fuseactions[attribs.name].permissions = attribs.permissions /> |
| 488 | | <cfelse> |
| 489 | | <cfset this.fuseactions[attribs.name].permissions = "" /> |
| 490 | | </cfif> |
| | 507 | .init(this,attribs.name,access,children[i].xmlChildren,false,customAttribs) /> |
| | 508 | <!--- FB41 security plugin compatibility: ---> |
| | 509 | <cfset this.fuseactions[attribs.name].permissions = permissions /> |