Changeset 394
- Timestamp:
- 04/20/06 08:54:20
- Files:
-
- trunk/calendar3/bldfiles/buildsh.xml (modified) (1 diff)
- trunk/calendar3/bldfiles/buildwar.xml (modified) (1 diff)
- trunk/calendar3/build.xml (modified) (1 diff)
- trunk/calendar3/calCore/build.xml (modified) (1 diff)
- trunk/calendar3/calCore/src/org/bedework/calcore/ldap (added)
- trunk/calendar3/calCore/src/org/bedework/calcore/ldap/LdapConfigProperties.java (added)
- trunk/calendar3/calCore/src/org/bedework/calcore/ldap/UserGroupsLdapImpl.java (added)
- trunk/calendar3/calEnv/build.xml (modified) (1 diff)
- trunk/calendar3/calEnv/src/org/bedework/calenv/CalOptions.java (added)
- trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java (modified) (1 diff)
- trunk/calendar3/common/src/edu/rpi/sss/util/xml/XmlUtil.java (modified) (7 diffs)
- trunk/calendar3/config/configs/democal.options.xml (added)
- trunk/calendar3/config/configs/democal.properties (modified) (1 diff)
- trunk/calendar3/webcommon/src/org/bedework/webcommon/access/AccessAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/bldfiles/buildsh.xml
r293 r394 106 106 file="${org.bedework.config.properties}" /> 107 107 108 <copy tofile="${app.dest.properties}/options.xml" 109 file="${org.bedework.config.options}" /> 110 108 111 <!-- =============================================================== 109 112 Add any resource files trunk/calendar3/bldfiles/buildwar.xml
r312 r394 183 183 file="${org.bedework.config.properties}" /> 184 184 185 <copy tofile="${app.dest.properties}/options.xml" 186 file="${org.bedework.config.options}" /> 187 185 188 <!-- Make a modified copy of the web.xml file --> 186 189 <copy tofile="${app.dest.web.xml}" trunk/calendar3/build.xml
r310 r394 64 64 <property name="org.bedework.config.properties" 65 65 location="${org.bedework.config.base}/configs/${org.bedework.clone.name}.properties" /> 66 <property name="org.bedework.config.options" 67 location="${org.bedework.config.base}/configs/${org.bedework.clone.name}.options.xml" /> 66 68 67 69 <echo message="==========================================================" /> trunk/calendar3/calCore/build.xml
r2 r394 31 31 <fileset id="base.java.sources" dir="${source.home}" > 32 32 <!-- <include name="edu/washington/cac/calfacade/impl/*.java"/>--> 33 <include name="org/bedework/calcore/ hibernate/*.java"/>33 <include name="org/bedework/calcore/**/*.java"/> 34 34 </fileset> 35 35 36 36 <patternset id="base.class.patternset"> 37 37 <!-- <include name="edu/washington/cac/calfacade/impl/*.class"/>--> 38 <include name="org/bedework/calcore/ hibernate/*.class"/>38 <include name="org/bedework/calcore/**/*.class"/> 39 39 </patternset> 40 40 trunk/calendar3/calEnv/build.xml
r2 r394 30 30 <path id="compile.classpath"> 31 31 <pathelement location="${log4j.jar}"/> 32 <pathelement location="${org.bedework.common.jar}"/> 32 33 </path> 33 34 trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java
r377 r394 2004 2004 } 2005 2005 2006 calendar = getCal().getCalendar(path); 2006 try { 2007 calendar = getCal().getCalendar(path); 2008 } catch (CalFacadeAccessException cfae) { 2009 calendar = null; 2010 } 2011 2007 2012 if (calendar == null) { 2008 2013 // Assume deleted trunk/calendar3/common/src/edu/rpi/sss/util/xml/XmlUtil.java
r2 r394 60 60 import java.io.PrintWriter; 61 61 import java.io.Serializable; 62 import java.util. Vector;62 import java.util.ArrayList; 63 63 64 64 import org.w3c.dom.Attr; … … 693 693 * 694 694 * @param nd 695 * @return Vectorelement nodes. Always non-null696 * @throws SAXException 697 */ 698 public static VectorgetElements(Node nd) throws SAXException {699 Vector v = new Vector();695 * @return ArrayList element nodes. Always non-null 696 * @throws SAXException 697 */ 698 public static ArrayList getElements(Node nd) throws SAXException { 699 ArrayList al = new ArrayList(); 700 700 701 701 NodeList children = nd.getChildNodes(); … … 718 718 // Ignore 719 719 } else if (curnode.getNodeType() == Node.ELEMENT_NODE) { 720 v.add(curnode);720 al.add(curnode); 721 721 } else { 722 722 throw new SAXException("Unexpected child node " + curnode.getLocalName() + … … 725 725 } 726 726 727 return v;727 return al; 728 728 } 729 729 … … 760 760 } 761 761 762 /** See if this node has any children 763 * 764 * @param el 765 * @return boolean true for any child elements 766 * @throws SAXException 767 */ 768 public static boolean hasChildren(Element el) throws SAXException { 769 NodeList children = el.getChildNodes(); 770 771 for (int i = 0; i < children.getLength(); i++) { 772 Node curnode = children.item(i); 773 774 short ntype = curnode.getNodeType(); 775 if ((ntype != Node.TEXT_NODE) && 776 (ntype != Node.CDATA_SECTION_NODE) && 777 (ntype != Node.COMMENT_NODE)) { 778 return true; 779 } 780 } 781 782 return false; 783 } 784 762 785 /** 763 786 * @param nd … … 766 789 */ 767 790 public static Element[] getElementsArray(Node nd) throws SAXException { 768 Vector v= getElements(nd);769 770 return (Element[]) v.toArray(new Element[v.size()]);791 ArrayList al = getElements(nd); 792 793 return (Element[])al.toArray(new Element[al.size()]); 771 794 } 772 795 … … 777 800 */ 778 801 public static Element getOnlyElement(Node nd) throws SAXException { 779 Vector v = getElements(nd);780 781 if ( v.size()!= 1) {802 Element[] els = getElementsArray(nd); 803 804 if (els.length != 1) { 782 805 throw new SAXException("Expected exactly one child node for " + 783 806 nd.getLocalName()); 784 807 } 785 808 786 return (Element)v.elementAt(0);809 return els[0]; 787 810 } 788 811 trunk/calendar3/config/configs/democal.properties
r302 r394 59 59 org.bedework.syspar.mailerclass=org.bedework.mail.DummyMailer 60 60 org.bedework.syspar.admingroupsclass=org.bedework.calcore.hibernate.AdminGroupsDbImpl 61 org.bedework.syspar.usergroupsclass=org.bedework.calcore.hibernate.GroupsDbImpl 61 org.bedework.syspar.usergroupsclass=org.bedework.calcore.ldap.UserGroupsLdapImpl 62 #org.bedework.syspar.usergroupsclass=org.bedework.calcore.hibernate.GroupsDbImpl 62 63 # 63 64 # ------------------------------------------------------------------- trunk/calendar3/webcommon/src/org/bedework/webcommon/access/AccessAction.java
r376 r394 169 169 170 170 if (whoTypeStr == null) { 171 whoType = Ace.whoTypeUser; 172 } else if (whoTypeStr.equals("owner")) { 171 173 whoType = Ace.whoTypeOwner; 172 174 } else if (whoTypeStr.equals("user")) {
