Top Fields Constructors Methods
net.fortuna.ical4j.agent

public Class VToDoUserAgent

extends AbstractUserAgent<VToDo>
Class Inheritance
Imports
net.fortuna.ical4j.model.Calendar, net.fortuna.ical4j.model.component.VToDo, net.fortuna.ical4j.model.property.Organizer, .ProdId, .Uid, net.fortuna.ical4j.transform.itip.RequestTransformer, java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
private final RequestTransformer

Constructor Summary

AccessConstructor and Description
public
VToDoUserAgent(ProdId prodId, Organizer organizer, Supplier<Uid> uidGenerator)

Method Summary

Modifier and TypeMethod and Description
public Calendar
add(VToDo
a calendar component to add
component
)

Implements net.fortuna.ical4j.agent.UserAgent.add.

3.4.4.
public Calendar
cancel(VToDo...
one or more component objects
component
)

Implements net.fortuna.ical4j.agent.UserAgent.cancel.

3.4.5.
public Calendar
counter(Calendar
a calendar request to counter
request
)

Implements net.fortuna.ical4j.agent.UserAgent.counter.


    3.4.7.
public Calendar
declineCounter(Calendar
a counter to a request
counter
)

Implements net.fortuna.ical4j.agent.UserAgent.declineCounter.

3.4.8.
public Calendar
delegate(Calendar
a calendar implement the iTIP REQUEST method
request
)

Implements net.fortuna.ical4j.agent.UserAgent.delegate.

3.2.2.3.
public Calendar
publish(VToDo...
one or more component objects
component
)

Implements net.fortuna.ical4j.agent.UserAgent.publish.

3.4.1.
public Calendar
refresh(VToDo
a calendar component to refresh
component
)

Implements net.fortuna.ical4j.agent.UserAgent.refresh.

3.4.6.
public Calendar
reply(Calendar
a calendar request
request
)

Implements net.fortuna.ical4j.agent.UserAgent.reply.

3.4.3.
public Calendar
request(VToDo...
one or more component objects
component
)

Implements net.fortuna.ical4j.agent.UserAgent.request.

3.4.2.
Inherited from net.fortuna.ical4j.agent.AbstractUserAgent:
getProdIdtransformvalidatewrap

Field Detail

delegateTransformerback to summary
private final RequestTransformer delegateTransformer

Constructor Detail

VToDoUserAgentback to summary
public VToDoUserAgent(ProdId prodId, Organizer organizer, Supplier<Uid> uidGenerator)

Method Detail

addback to summary
public Calendar add(VToDo component)

Implements net.fortuna.ical4j.agent.UserAgent.add.

3.4.4.  ADD

    The "ADD" method allows the "Organizer" to add one or more new
    instances to an existing "VTODO" using a single iTIP message without
    having to send the entire "VTODO" with all the existing instance
    data, as it would have to do if the "REQUEST" method were used.

    The "UID" must be that of the existing to-do.  If the "UID" property
    value in the "ADD" is not found on the recipient's calendar, then the
    recipient SHOULD send a "REFRESH" to the "Organizer" in order to be
    updated with the latest version of the "VTODO".  If an "Attendee"
    implementation does not support the "ADD" method, it should respond
    with a "REQUEST-STATUS" value of 3.14 and ask for a "REFRESH".

    When handling an "ADD" message, the "Attendee" treats each component
    in the "ADD" message as if it were referenced via an "RDATE" in the
    main component.

    The "SEQUENCE" property value is incremented since the sequence of
    to-dos has changed.
Parameters
component:VToDo

Doc from net.fortuna.ical4j.agent.UserAgent.add.

a calendar component to add

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.add.

a calendar object validated to conform to iTIP method ADD

Annotations
@Override
cancelback to summary
public Calendar cancel(VToDo... component)

Implements net.fortuna.ical4j.agent.UserAgent.cancel.

3.4.5.  CANCEL

    The "CANCEL" method in a "VTODO" calendar component is used to send a
    cancellation notice of an existing "VTODO" calendar request to the
    affected "Attendees".  The message is sent by the "Organizer" of a
    "VTODO" calendar component to the "Attendees" of the "VTODO" calendar
    component.  For a recurring "VTODO" calendar component, either the
    whole "VTODO" calendar component or instances of a "VTODO" calendar
    component may be cancelled.  To cancel the complete range of a
    recurring "VTODO" calendar component, the "UID" property value for
    the "VTODO" calendar component MUST be specified and a "RECURRENCE-
    ID" MUST NOT be specified in the "CANCEL" method.  In order to cancel
    an individual instance of a recurring "VTODO" calendar component, the
    "RECURRENCE-ID" property value for the "VTODO" calendar component
    MUST be specified in the "CANCEL" method.

    There are two options for canceling a sequence of instances of a
    recurring "VTODO" calendar component:

    a.  The "RECURRENCE-ID" property for an instance in the sequence MUST
    be specified with the "RANGE" property parameter value of
    "THISANDFUTURE" to indicate cancellation of the specified "VTODO"
    calendar component and all instances after.

    b.  Individual recurrence instances may be cancelled by specifying
    multiple "VTODO" components each with a "RECURRENCE-ID" property
    corresponding to one of the instances to be cancelled.

    The "Organizer" MUST send a "CANCEL" message to each "Attendee"
    affected by the cancellation.  This can be done by using either a
    single "CANCEL" message for all "Attendees" or multiple messages with
    different subsets of the affected "Attendees" in each.

    When a "VTODO" is cancelled, the "SEQUENCE" property value MUST be
    incremented as described in Section 2.1.4.
Parameters
component:VToDo[]

Doc from net.fortuna.ical4j.agent.UserAgent.cancel.

one or more component objects

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.cancel.

a calendar object validated to conform to iTIP method CANCEL

Annotations
@Override
counterback to summary
public Calendar counter(Calendar request)

Implements net.fortuna.ical4j.agent.UserAgent.counter.


    3.4.7.  COUNTER

    The "COUNTER" method in a "VTODO" calendar component is used by an
    "Attendee" of an existing "VTODO" calendar component to submit to the
    "Organizer" a counter proposal for the "VTODO" calendar component.

    The counter proposal is an iCalendar object consisting of a "VTODO"
    calendar component that provides the complete description of the
    alternate "VTODO" calendar component.

    The "Organizer" rejects the counter proposal by sending the
    "Attendee" a "DECLINECOUNTER" method.  The "Organizer" accepts the
    counter proposal by rescheduling the to-do as described in
    Section 3.4.2.1, "REQUEST for Rescheduling a To-Do".  The
    "Organizer's" CUA SHOULD send a "REQUEST" message to all "Attendees"
    affected by any change triggered by an accepted "COUNTER".
Parameters
request:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.counter.

a calendar request to counter

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.counter.

a calendar object validated to conform to iTIP method COUNTER

Annotations
@Override
declineCounterback to summary
public Calendar declineCounter(Calendar counter)

Implements net.fortuna.ical4j.agent.UserAgent.declineCounter.

3.4.8.  DECLINECOUNTER

    The "DECLINECOUNTER" method in a "VTODO" calendar component is used
    by an "Organizer" of the "VTODO" calendar component to reject a
    counter proposal offered by one of the "Attendees".  The "Organizer"
    sends the message to the "Attendee" that sent the "COUNTER" method to
    the "Organizer".
Parameters
counter:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.declineCounter.

a counter to a request

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.declineCounter.

a calendar object validated to conform to iTIP method DECLINECOUNTER

Annotations
@Override
delegateback to summary
public Calendar delegate(Calendar request)

Implements net.fortuna.ical4j.agent.UserAgent.delegate.

Doc from net.fortuna.ical4j.agent.UserAgent.delegate.

3.2.2.3.  Delegating an Event to Another CU

    Some calendar and scheduling systems allow "Attendees" to delegate
    their presence at an event to another "Calendar User". iTIP supports
    this concept using the following workflow.  Any "Attendee" may
    delegate their right to participate in a calendar "VEVENT" to another
    CU.  The implication is that the delegate participates in lieu of the
    original "Attendee", NOT in addition to the "Attendee".  The
    delegator MUST notify the "Organizer" of this action using the steps
    outlined below.  Implementations may support or restrict delegation
    as they see fit.  For instance, some implementations may restrict a
    delegate from delegating a "REQUEST" to another CU.

    The "Delegator" of an event forwards the existing "REQUEST" to the
    "Delegate".  The "REQUEST" method MUST include an "ATTENDEE" property
    with the calendar address of the "Delegate".  The "Delegator" MUST
    also send a "REPLY" method to the "Organizer" with the "Delegator's"
    "ATTENDEE" property "PARTSTAT" parameter value set to "DELEGATED".
    In addition, the "DELEGATED-TO" parameter MUST be included with the
    calendar address of the "Delegate".  Also, a new "ATTENDEE" property
    for the "Delegate" MUST be included and must specify the calendar
    user address set in the "DELEGATED-TO" parameter, as above.

    In response to the request, the "Delegate" MUST send a "REPLY" method
    to the "Organizer", and optionally to the "Delegator".  The "REPLY"
    method SHOULD include the "ATTENDEE" property with the "DELEGATED-
    FROM" parameter value of the "Delegator's" calendar address.

    The "Delegator" may continue to receive updates to the event even
    though they will not be attending.  This is accomplished by the
    "Delegator" setting their "role" attribute to "NON-PARTICIPANT" in
    the "REPLY" to the "Organizer".
Parameters
request:Calendar

a calendar implement the iTIP REQUEST method

Returns:Calendar

a calendar delegating the request via an iTIP REQUEST method

Annotations
@Override
publishback to summary
public Calendar publish(VToDo... component)

Implements net.fortuna.ical4j.agent.UserAgent.publish.

3.4.1.  PUBLISH

    The "PUBLISH" method in a "VTODO" calendar component has no
    associated response.  It is simply a posting of an iCalendar object
    that may be added to a calendar.  It MUST have an "Organizer".  It
    MUST NOT have "Attendees".  Its expected usage is for encapsulating
    an arbitrary "VTODO" calendar component as an iCalendar object.  The
    "Organizer" MAY subsequently update (with another "PUBLISH" method),
    add instances to (with an "ADD" method), or cancel (with a "CANCEL"
    method) a previously published "VTODO" calendar component.

Parameters
component:VToDo[]

Doc from net.fortuna.ical4j.agent.UserAgent.publish.

one or more component objects

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.publish.

a calendar object validated to conform to iTIP method PUBLISH

Annotations
@Override
refreshback to summary
public Calendar refresh(VToDo component)

Implements net.fortuna.ical4j.agent.UserAgent.refresh.

3.4.6.  REFRESH

    The "REFRESH" method in a "VTODO" calendar component is used by
    "Attendees" of an existing "VTODO" calendar component to request an
    updated description from the "Organizer" of the "VTODO" calendar
    component.  The "Organizer" of the "VTODO" calendar component MAY use
    this method to request an updated status from the "Attendees".  The
    "REFRESH" method MUST specify the "UID" property corresponding to the
    "VTODO" calendar component needing update.

    A refresh of a recurrence instance of a "VTODO" calendar component
    may be requested by specifying the "RECURRENCE-ID" property
    corresponding to the associated "VTODO" calendar component.  The
    "Organizer" responds with the latest description and rendition of the
    "VTODO" calendar component.  In most cases, this will be a "REQUEST"
    unless the "VTODO" has been cancelled, in which case the "Organizer"
    MUST send a "CANCEL".  This method is intended to facilitate machine
    processing of requests for updates to a "VTODO" calendar component.
Parameters
component:VToDo

Doc from net.fortuna.ical4j.agent.UserAgent.refresh.

a calendar component to refresh

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.refresh.

a calendar object validated to conform to iTIP method REFRESH

Annotations
@Override
replyback to summary
public Calendar reply(Calendar request)

Implements net.fortuna.ical4j.agent.UserAgent.reply.

3.4.3.  REPLY

    The "REPLY" method in a "VTODO" calendar component is used to respond
    (e.g., accept or decline) to a request or to reply to a delegation
    request.  It is also used by an "Attendee" to update their completion
    status.  When used to provide a delegation response, the "Delegator"
    MUST include the calendar address of the "Delegate" in the
    "DELEGATED-TO" parameter of the "Delegator's" "ATTENDEE" property.
    The "Delegate" MUST include the calendar address of the "Delegator"
    on the "DELEGATED-FROM" parameter of the "Delegate's" "ATTENDEE"
    property.

    The "REPLY" method MAY also be used to respond to an unsuccessful
    "VTODO" calendar component "REQUEST" method.  Depending on the
    "REQUEST-STATUS" value, no scheduling action may have been performed.

    The "Organizer" of a "VTODO" calendar component MAY receive a "REPLY"
    method from a "Calendar User" not in the original "REQUEST".  For
    example, a "REPLY" method MAY be received from a "Delegate" of a
    "VTODO" calendar component.  In addition, the "REPLY" method MAY be
    received from an unknown "Calendar User" who has been forwarded the
    "REQUEST" by an original "Attendee" of the "VTODO" calendar
    component.  This uninvited "Attendee" MAY be accepted or the
    "Organizer" MAY cancel the "VTODO" calendar component for the
    uninvited "Attendee" by sending them a "CANCEL" method.
Parameters
request:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.reply.

a calendar request

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.reply.

a calendar object validated to conform to iTIP method REPLY

Annotations
@Override
requestback to summary
public Calendar request(VToDo... component)

Implements net.fortuna.ical4j.agent.UserAgent.request.

3.4.2.  REQUEST

    The "REQUEST" method in a "VTODO" calendar component provides the
    following scheduling functions:

    o  Assign a to-do to one or more "Calendar Users".

    o  Reschedule an existing to-do.

    o  Update the details of an existing to-do, without rescheduling it.

    o  Update the completion status of "Attendees" of an existing to-do,
    without rescheduling it.

    o  Reconfirm an existing to-do, without rescheduling it.

    o  Delegate/reassign an existing to-do to another "Calendar User".

    The assigned "Calendar Users" are identified in the "VTODO" calendar
    component by individual "ATTENDEE;ROLE=REQ-PARTICIPANT" property
    value sequences.

    Typically, the originator of a "REQUEST" is the "Organizer" of the
    to-do, and the recipient of a "REQUEST" is the "Calendar User"
    assigned the to-do.  The "Attendee" uses the "REPLY" method to convey
    their acceptance and completion status to the "Organizer" of the
    "REQUEST".

    The "UID", "SEQUENCE", and "DTSTAMP" properties are used to
    distinguish the various uses of the "REQUEST" method.  If the "UID"
    property value in the "REQUEST" is not found on the recipient's
    calendar, then the "REQUEST" is for a new to-do.  If the "UID"
    property value is found on the recipient's calendar, then the
    "REQUEST" is a rescheduling, an update, or a reconfirmation of the
    "VTODO" calendar object.

    If the "Organizer" of the "REQUEST" method is not authorized to make
    a to-do request on the "Attendee's" calendar system, then an
    exception is returned in the "REQUEST-STATUS" property of a
    subsequent "REPLY" method, but no scheduling action is performed.

    For the "REQUEST" method, multiple "VTODO" components in a single
    iCalendar object are only permitted for components with the same
    "UID" property.  That is, a series of recurring events may have
    instance-specific information.  In this case, multiple "VTODO"
    components are needed to express the entire series.
Parameters
component:VToDo[]

Doc from net.fortuna.ical4j.agent.UserAgent.request.

one or more component objects

Returns:Calendar

Doc from net.fortuna.ical4j.agent.UserAgent.request.

a calendar object validated to conform to iTIP method REQUEST

Annotations
@Override