Changeset 439
- Timestamp:
- 05/02/06 15:21:35
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java
r436 r439 997 997 } 998 998 999 public boolean getSubscribed(BwCalendar val) throws CalFacadeException {1000 BwSubscription sub = BwSubscription.makeSubscription(val, null, false, false, false);1001 setupOwnedEntity(sub);1002 1003 return getPreferences().getSubscriptions().contains(sub);1004 }1005 1006 999 public Collection getSubscriptions() throws CalFacadeException { 1007 1000 Collection c = getPreferences().getSubscriptions(); trunk/calendar3/calsvci/src/org/bedework/calsvci/CalSvcI.java
r436 r439 545 545 * of a calendar. 546 546 * 547 * @deprecated 547 548 * @param val int id of calendar 548 549 * @return CalendarVO null for unknown calendar … … 769 770 */ 770 771 public abstract void updateSubscription(BwSubscription val) throws CalFacadeException; 771 772 /** Return true if the user is subscribed to the given calendar773 *774 * @param val BwCalendar object775 * @return boolean true is user is subscribed to indicated calendar776 * @throws CalFacadeException777 */778 public abstract boolean getSubscribed(BwCalendar val) throws CalFacadeException;779 772 780 773 /** Get this users subscription. trunk/calendar3/webclient/src/org/bedework/webclient/BwActionForm.java
r375 r439 63 63 import org.bedework.appcommon.EventFormatter; 64 64 import org.bedework.appcommon.MyCalendarVO; 65 import org.bedework.calfacade.BwCalendar;66 65 import org.bedework.webcommon.DurationBean; 67 66 import org.bedework.webcommon.BwActionFormBase; … … 187 186 188 187 /* ==================================================================== 189 * Subscriptions190 * ==================================================================== */191 192 /** Allows us to generate checkboxes showing subscribed status193 *194 * @param i int key of calendar195 * @return boolean true is user is subscribed to indicated calendar196 */197 public boolean getSubscribed(int i) {198 try {199 BwCalendar cal = fetchSvci().getCalendar(i);200 201 if (cal == null) {202 return false;203 }204 return fetchSvci().getSubscribed(cal);205 } catch (Throwable t) {206 err.emit(t);207 return false;208 }209 }210 211 /* ====================================================================212 188 * Events 213 189 * ==================================================================== */
