Package org.exoplatform.agenda.model
Class ChannelDelivery
java.lang.Object
org.exoplatform.agenda.model.ChannelDelivery
What a delivery channel answers when agenda asks it to carry a calendar
share (EXO-90357).
Three answers, and the eXo record stands whatever the answer:
ChannelDelivery.Status.DELIVERED — the channel granted the share on its side and
says under which reference; ChannelDelivery.Status.NOT_APPLICABLE — this share is
none of the channel's business (the owner or the colleague has no account
there, the calendar lives on no server); ChannelDelivery.Status.FAILED — the channel
should have carried it and could not, with a code agenda logs at WARN; the
record then stands undelivered and the owner is told nothing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe three outcomes of a delivery. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelDeliveryThe channel granted the share on its side.static ChannelDeliverydelivered(String channelId, String deliveryRef, CalendarShareLevel deliveredLevel) The channel granted the share on its side, at the level it names — which may be narrower than the record's (EXO-90378).static ChannelDeliveryThe channel should have carried the share and could not.static ChannelDeliveryThe share is none of the channel's business.
-
Method Details
-
delivered
The channel granted the share on its side.- Parameters:
channelId- the channel, never blankdeliveryRef- the channel's reference, may be null- Returns:
- the answer
-
notApplicable
The share is none of the channel's business.- Returns:
- the answer
-
failed
The channel should have carried the share and could not.- Parameters:
failureCode- a code the drawer can word, never blank- Returns:
- the answer
-