Class BaseConnectorInstance<CnctrT extends AbstractConnector,​InfoT extends BaseSubscriptionInfo,​ConfigT extends ConnectorConfigI>

    • Field Detail

      • fetchedIcal

        protected ietf.params.xml.ns.icalendar_2.IcalendarType fetchedIcal
      • prodid

        protected String prodid
      • of

        protected final ietf.params.xml.ns.icalendar_2.ObjectFactory of
    • Constructor Detail

      • BaseConnectorInstance

        protected BaseConnectorInstance​(Subscription sub,
                                        org.bedework.synch.wsmessages.SynchEndType end,
                                        InfoT info,
                                        CnctrT cnctr,
                                        ConfigT config)
    • Method Detail

      • addItem

        public org.oasis_open.docs.ws_calendar.ns.soap.AddItemResponseType addItem​(ietf.params.xml.ns.icalendar_2.IcalendarType val)
                                                                            throws SynchException
        Description copied from interface: ConnectorInstance
        Add a calendar component
        Returns:
        response
        Throws:
        SynchException
      • updateItem

        public org.oasis_open.docs.ws_calendar.ns.soap.UpdateItemResponseType updateItem​(org.oasis_open.docs.ws_calendar.ns.soap.UpdateItemType updates)
                                                                                  throws SynchException
        Description copied from interface: ConnectorInstance
        Update a calendar component.
        Parameters:
        updates - has the change token, href, and the component selection fields set.
        Returns:
        response
        Throws:
        SynchException
      • deleteItem

        public org.oasis_open.docs.ws_calendar.ns.soap.DeleteItemResponseType deleteItem​(String uid)
                                                                                  throws SynchException
        Description copied from interface: ConnectorInstance
        Delete a calendar component.
        Parameters:
        uid - - of the component to delete.
        Returns:
        response
        Throws:
        SynchException
      • fetchItem

        public org.oasis_open.docs.ws_calendar.ns.soap.FetchItemResponseType fetchItem​(String uid)
                                                                                throws SynchException
        Description copied from interface: ConnectorInstance
        Fetch a calendar component. The uid is required as a key as it is the only value which is guaranteed to be available at both ends.
        Parameters:
        uid - of item
        Returns:
        response
        Throws:
        SynchException
      • fetchItems

        public List<org.oasis_open.docs.ws_calendar.ns.soap.FetchItemResponseType> fetchItems​(List<String> uids)
                                                                                       throws SynchException
        Description copied from interface: ConnectorInstance
        Fetch a batch of calendar components. The number and order of the result set must match that of the parameter uids.
        Parameters:
        uids - of items
        Returns:
        responses
        Throws:
        SynchException
      • getText

        public <T extends ietf.params.xml.ns.icalendar_2.TextPropertyType> String getText​(Class<T> cl,
                                                                                          javax.xml.bind.JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BaseComponentType> comp,
                                                                                          QName tag)
      • getHttpChangeToken

        public final String getHttpChangeToken​(org.apache.http.client.methods.CloseableHttpResponse hresp)