Re: WO app not re-fetching from LDAP
Re: WO app not re-fetching from LDAP
- Subject: Re: WO app not re-fetching from LDAP
- From: Chuck Hill <email@hidden>
- Date: Tue, 15 Aug 2006 14:53:40 -0700
The font of all knowledge: http://en.wikibooks.org/w/index.php?
title=Programming:WebObjects
You should find this particularly tasty: http://en.wikibooks.org/wiki/
Programming:WebObjects/EOF/Using_EOF/Caching_and_Freshness
Chuck
On Aug 15, 2006, at 2:50 PM, Dustin Withers wrote:
Hello All,
I've written a simple company directory application and I've
deployed it and we've noticed one small bug that I don't know how
to fix. When ever the LDAP gets updated the company directory
doesn't and you have to restart the instance.
Here is my main method which fetchs the initial records
/** @TypeInfo inetOrgPerson */
public NSArray userList;
public inetOrgPerson user;
private boolean rowOfClass = true;
public Main(WOContext context) {
super(context);
EOFetchSpecification fs =
EOFetchSpecification.fetchSpecificationNamed
("people","inetOrgPerson");
EOEditingContext ec = session().defaultEditingContext();
userList = ec.objectsWithFetchSpecification(fs);
NSMutableArray sortOrderings = new NSMutableArray();
EOSortOrdering firstNameSort = new EOSortOrdering("givenName",
EOSortOrdering.CompareCaseInsensitiveAscending);
sortOrderings.addObject(firstNameSort);
userList = EOSortOrdering.sortedArrayUsingKeyOrderArray(userList,
sortOrderings);
}
Any ideas?
Thanks,
-dustin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden