[Bedework-commit] calendarapi r1445 - in trunk/calFacade/src/org/bedework/calfacade: . exc

svnadmin at bedework.org svnadmin at bedework.org
Thu Feb 17 10:32:00 EST 2011


Author: douglm
Date: 2011-02-17 10:32:00 -0500 (Thu, 17 Feb 2011)
New Revision: 1445

Modified:
   trunk/calFacade/src/org/bedework/calfacade/BwSystem.java
   trunk/calFacade/src/org/bedework/calfacade/exc/ValidationError.java
Log:
Support adding group as attendee.

Modified: trunk/calFacade/src/org/bedework/calfacade/BwSystem.java
===================================================================
--- trunk/calFacade/src/org/bedework/calfacade/BwSystem.java	2011-02-17 15:31:56 UTC (rev 1444)
+++ trunk/calFacade/src/org/bedework/calfacade/BwSystem.java	2011-02-17 15:32:00 UTC (rev 1445)
@@ -1,33 +1,5 @@
-/*
- Copyright (c) 2000-2005 University of Washington.  All rights reserved.
-
- Redistribution and use of this distribution in source and binary forms,
- with or without modification, are permitted provided that:
-
-   The above copyright notice and this permission notice appear in
-   all copies and supporting documentation;
-
-   The name, identifiers, and trademarks of the University of Washington
-   are not used in advertising or publicity without the express prior
-   written permission of the University of Washington;
-
-   Recipients acknowledge that this distribution is made available as a
-   research courtesy, "as is", potentially with defects, without
-   any obligation on the part of the University of Washington to
-   provide support, services, or repair;
-
-   THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR
-   IMPLIED, WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION
-   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-   PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE UNIVERSITY OF
-   WASHINGTON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
-   DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
-   PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT (INCLUDING
-   NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
-   THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
 /* **********************************************************************
-    Copyright 2005 Rensselaer Polytechnic Institute. All worldwide rights reserved.
+    Copyright 2011 Rensselaer Polytechnic Institute. All worldwide rights reserved.
 
     Redistribution and use of this distribution in source and binary forms,
     with or without modification, are permitted provided that:
@@ -931,6 +903,23 @@
     return getIntProperty(BedeworkServerTags.maxWebCalPeriod, 32 * 3);
   }
 
+  /** Set the max attendees
+   *
+   * @param val
+   */
+  public void setMaxAttendees(final Integer val) {
+    setIntProperty(BedeworkServerTags.maxAttendees, val);
+  }
+
+  /** Get the max attendees
+   *
+   * @return int attendees
+   */
+  @NoDump
+  public int getMaxAttendees() {
+    return getIntProperty(BedeworkServerTags.maxAttendees, 100);
+  }
+
   /* ====================================================================
    *                   Object methods
    * ==================================================================== */

Modified: trunk/calFacade/src/org/bedework/calfacade/exc/ValidationError.java
===================================================================
--- trunk/calFacade/src/org/bedework/calfacade/exc/ValidationError.java	2011-02-17 15:31:56 UTC (rev 1444)
+++ trunk/calFacade/src/org/bedework/calfacade/exc/ValidationError.java	2011-02-17 15:32:00 UTC (rev 1445)
@@ -235,6 +235,9 @@
       point the event entry at a supplemental web page by entering a <em>URL</em>. */
   public static final String tooLongSummary = prefix + "toolong.summary";
 
+  /** Too many attendees. */
+  public static final String tooManyAttendees = prefix + "toomany.attendees";
+
   private String errorCode;
 
   private String extra;
@@ -242,7 +245,7 @@
   /**
    * @param errorCode
    */
-  public ValidationError(String errorCode) {
+  public ValidationError(final String errorCode) {
     this(errorCode, null);
   }
 
@@ -250,7 +253,7 @@
    * @param errorCode
    * @param extra
    */
-  public ValidationError(String errorCode, String extra) {
+  public ValidationError(final String errorCode, final String extra) {
     this.errorCode = errorCode;
     this.extra = extra;
   }
@@ -258,7 +261,7 @@
   /**
    * @param val
    */
-  public void setErrorCode(String val) {
+  public void setErrorCode(final String val) {
     errorCode = val;
   }
 
@@ -272,7 +275,7 @@
   /**
    * @param val
    */
-  public void setExtra(String val) {
+  public void setExtra(final String val) {
     extra = val;
   }
 



More information about the Bedework-commit mailing list