Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix erroneous field name for calendar-data, was address-data, strangely
  • Loading branch information
brad committed Mar 13, 2012
1 parent 22a9a3b commit 55fe6c0
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -179,12 +179,11 @@ class CalendarDataProperty implements StandardProperty<CData> {

@Override
public String fieldName() {
return "address-data";
return "calendar-data";
}

@Override
public CData getValue(PropFindableResource res) {
log.trace("getValue: " + res.getClass());
if (res instanceof ICalResource) {
ICalResource ical = (ICalResource) res;
return new CData(ical.getICalData());
Expand Down Expand Up @@ -234,10 +233,12 @@ public Class<String> getValueClass() {
*/
class CalenderHomeSetProperty implements StandardProperty<HrefList> {

@Override
public String fieldName() {
return "calendar-home-set";
}

@Override
public HrefList getValue(PropFindableResource res) {
if (res instanceof CalDavPrincipal) {
return ((CalDavPrincipal) res).getCalendarHomeSet();
Expand All @@ -246,6 +247,7 @@ public HrefList getValue(PropFindableResource res) {
}
}

@Override
public Class<HrefList> getValueClass() {
return HrefList.class;
}
Expand Down

0 comments on commit 55fe6c0

Please sign in to comment.