• 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
WO app not re-fetching from LDAP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: WO app not re-fetching from LDAP
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WebObjects Foundation
  • Next by Date: Re: WebObjects Foundation
  • Previous by thread: WOBuilder Value (and Web IDE) - 2
  • Next by thread: Re: WO app not re-fetching from LDAP
  • Index(es):
    • Date
    • Thread