Interface BeanProcessor<T>

  • Type Parameters:
    T - type of java bean handled by the processor

    public interface BeanProcessor<T>
    A service that converts between iKnowBase Documents and java beans.
    • Method Detail

      • load

        T load​(ContentServicesClient client,
               DocumentReference documentReference)
        Loads a document from the database, and returns as a java bean.
        Parameters:
        client - the ContentServicesClient
        documentReference - reference of the document to load
        Returns:
        the loaded bean
      • save

        DocumentReference save​(ContentServicesClient client,
                               T bean)
        Saves a java bean as an iKnowBase document
        Parameters:
        client - the ContentServicesClient
        bean - bean to save
        Returns:
        reference to the saved document