WO app not re-fetching from LDAP
WO app not re-fetching from LDAP
- Subject: WO app not re-fetching from LDAP
- From: Dustin Withers <email@hidden>
- Date: Tue, 15 Aug 2006 16:50:25 -0500
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:
This email sent to email@hidden