From users-return-3930-apmail-directory-users-archive=directory.apache.org@directory.apache.org Wed Jun 15 10:57:21 2011 Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9ED7A4946 for ; Wed, 15 Jun 2011 10:57:21 +0000 (UTC) Received: (qmail 97786 invoked by uid 500); 15 Jun 2011 10:57:21 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 97753 invoked by uid 500); 15 Jun 2011 10:57:21 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 97745 invoked by uid 99); 15 Jun 2011 10:57:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 10:57:21 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jim@willeke.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yw0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 10:57:16 +0000 Received: by ywa8 with SMTP id 8so189838ywa.37 for ; Wed, 15 Jun 2011 03:56:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.91.65.8 with SMTP id s8mr620057agk.203.1308135415342; Wed, 15 Jun 2011 03:56:55 -0700 (PDT) Received: by 10.91.51.27 with HTTP; Wed, 15 Jun 2011 03:56:55 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Jun 2011 06:56:55 -0400 Message-ID: Subject: Re: Storing conference room details, advice needed From: Jim Willeke To: users@directory.apache.org Content-Type: multipart/alternative; boundary=001485f8f0acbfe60f04a5be021e --001485f8f0acbfe60f04a5be021e Content-Type: text/plain; charset=ISO-8859-1 A an example, assume we have a conference roomName: sabertooth DN: roomName=saberTooth, floor=3, building=U8, ou=buildings, ou=butler,o=willeke roomName: saberTooth capacity: 221 availability: active location: somewhere description: A mean Conference Room building: U8 floor: 3 resources: cn=scanner,ou=resources, ou=butler,o=willeke resources: cn=projector,ou=resources, ou=butler,o=willeke We also have a resource: DN: cn=scanner,ou=resources, ou=butler,o=willeke cn: scanner description: HP Scanner location: roomName=saberTooth, floor=3, building=U8, ou=buildings, ou=butler,o=willeke networkAddress: 192.168.4.5 ou: butler o: willeke owner: cn=jim,ou=butler,o=willeke serialNumber: X345YD The location on the resource could be a reciprocal attribute to the resources attribute on the conference room. This allows knowing where the resources are by viewing the resource and what resources are in the room by viewing the conference room. A perhaps better method would be to only use the location on the resource and then a query (location=roomName=saberTooth, floor=3, building=U8, ou=buildings, ou=butler,o=willeke) form an appropriate searchBase would show all the resources assigned to the room. The construction of schema frameworks such as this is very similar to the construction of a proper database schema. Both of which is a bit of a mix of science, art, and experience. -jim Jim Willeke On Wed, Jun 15, 2011 at 2:22 AM, Manish Kutaula wrote: > Hi jim, > > I didnot get the idea of making each resource as a objectClass. Having a > multi-valued attribute in conference class to hold the resources is fine. > > Manish Kutaula > > > > > From: > Jim Willeke > To: > users@directory.apache.org > Date: > 06/14/2011 07:39 PM > Subject: > Re: Storing conference room details, advice needed > > > > Without a lot of details as to how your specific operation works, I think > I > would create each "resource" as an objectClass and then have a > multi-valued > attribute on the conference room for resources which is of DN syntax. > > This would allow you to move resources from one conference room to > another. > > -jim > Jim Willeke > > > On Tue, Jun 14, 2011 at 7:10 AM, Manish Kutaula > wrote: > > > Hi, > > > > i have a requirement that i have to store conference room details in > > apacheds server. For this i have created a new object class and > attributes > > to store the details of conference room which are: > > > > roomName: > > capacity: > > availability: > > location: > > description > > building > > floor > > > > I have one more requirement in which i have to store the resources of > > conference room i.e. audio/video facility, speaker phone, bridge etc. > > how can i store these resources, one possible solution can be that i > make > > a resource type attribute and make it multi-valued and store the values > in > > it. > > > > Finally, i have to retrieve the data from apacheds server and generate a > > xml for it. > > > > what can be the most practical solution for it. any quick ideas will be > > helpful. > > > > Thanks, > > --Manish Kutaula > > =====-----=====-----===== > > Notice: The information contained in this e-mail > > message and/or attachments to it may contain > > confidential or privileged information. If you are > > not the intended recipient, any dissemination, use, > > review, distribution, printing or copying of the > > information contained in this e-mail message > > and/or attachments to it are strictly prohibited. If > > you have received this communication in error, > > please notify us by reply e-mail or telephone and > > immediately and permanently delete the message > > and any attachments. Thank you > > > > > > > > > --001485f8f0acbfe60f04a5be021e--