• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: false sense of security?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: false sense of security?


  • Subject: Re: false sense of security?
  • From: David Teran <email@hidden>
  • Date: Wed, 1 Sep 2004 23:24:17 +0200

Am 01.09.2004 um 17:47 schrieb William Norris:

However, it appears to me that WOConditional (or any Dynamic Element
for that matter) will not allow you to bind functions that take in
parameters.  The only thing that actually works would be a series of
functions - userInAdminGroup(), userInStudentGroup(), etc... but as
far as I'm concerned, that's not even a viable option.


Create you own component: wrap a WOConditional inside this component and inside the conditional a WOComponentContent. Then add API: userGroupName, user and a method in your component:


public boolean hasPermission() {
	return user.isInUserGroup(userGroupName);
}


thats all you need. Make them stateless and turn off binding synchronization to speed things up.


regards David
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >false sense of security? (From: William Norris <email@hidden>)
 >Re: false sense of security? (From: "Arturo Perez" <email@hidden>)
 >Re: false sense of security? (From: William Norris <email@hidden>)

  • Prev by Date: Re: false sense of security?
  • Next by Date: NSTimestampFormatter problem
  • Previous by thread: Re: false sense of security?
  • Next by thread: RE: false sense of security?
  • Index(es):
    • Date
    • Thread