public String getOwnerHref() { return entity.getOwnerHref(); }
public void setOwnerHref(String val) { if (!CalFacadeUtil.eqObjval(getTarget().getOwnerHref(), val)) { ref.setOwnerHref(val); setChangeFlag(true); } }
/** Get the event's transparency * @param userHref or null * * @return String the event's transparency * @throws CalFacadeException */ @NoProxy public String getPeruserTransparency(final String userHref) throws CalFacadeException { if ((userHref == null) || userHref.equals(getOwnerHref())) { return getTransparency(); } final BwXproperty pu = findPeruserXprop(userHref, BwXproperty.peruserPropTransp); if (pu == null) { return getTransparency(); } return pu.getValue(); }
/** If this is the owner - set the real transparency, otherwise, if it differs * from the rwal add an x-prop * * @param userHref * @param val * @return non-null if x-prop is added for this user * @throws CalFacadeException */ @NoProxy public BwXproperty setPeruserTransparency(final String userHref, final String val) throws CalFacadeException { if (userHref.equals(getOwnerHref())) { setTransparency(val); return null; } BwXproperty pu = findPeruserXprop(userHref, BwXproperty.peruserPropTransp); if (pu == null) { pu = new BwXproperty(BwXproperty.peruserPropTransp, BwXproperty.peruserOwnerParam + "=" + userHref, val); addXproperty(pu); return pu; } pu.setValue(val); return null; }
private static void processAvailable(final IcalCallback cb, final BwCalendar cal, final Icalendar ical, final VAvailability val, final EventInfo vavail) throws CalFacadeException { try { final ComponentList avls = val.getAvailable(); if ((avls == null) || avls.isEmpty()) { return; } for (final Object o : avls) { if (!(o instanceof Available)) { throw new IcalMalformedException("Invalid available list"); } final EventInfo availi = toEvent(cb, cal, ical, (Component)o, true, false); availi.getEvent().setOwnerHref( vavail.getEvent().getOwnerHref()); vavail.addContainedItem(availi); vavail.getEvent().addAvailableUid(availi.getEvent().getUid()); } } catch (final CalFacadeException cfe) { throw cfe; } catch (final Throwable t) { throw new CalFacadeException(t); } }
ann.setOwnerHref(ownerHref); } else { ann.setOwnerHref(ev.getOwnerHref());
res.setOwnerHref(getOwnerHref());
return stringMatch(ev.getOwnerHref(), val);