Interface MorpheusWikiPageService


  • public interface MorpheusWikiPageService
    Context methods for syncing Wiki Pages in Morpheus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.reactivex.Single<WikiPage> create​(WikiPage wikiPage)
      Create and return a new WikiPage in Morpheus
      io.reactivex.Single<java.lang.Boolean> create​(java.util.List<WikiPage> wikiPages)
      Create new WikiPages in Morpheus
      io.reactivex.Observable<WikiPage> listById​(java.util.Collection<java.lang.Long> ids)
      Get a list of WikiPage objects from a list of projection ids
      io.reactivex.Observable<WikiPageIdentityProjection> listSyncProjections​(java.lang.String refType, java.util.List<java.lang.Long> refIds)
      Get a list of WikiPage projections based on the refIds and refType
      io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<WikiPageIdentityProjection> wikiPages)
      Remove persisted WikiPages from Morpheus
      io.reactivex.Single<java.lang.Boolean> save​(java.util.List<WikiPage> wikiPages)
      Save updates to existing WikiPages
    • Method Detail

      • listSyncProjections

        io.reactivex.Observable<WikiPageIdentityProjection> listSyncProjections​(java.lang.String refType,
                                                                                java.util.List<java.lang.Long> refIds)
        Get a list of WikiPage projections based on the refIds and refType
        Parameters:
        refType - the refType to match on. Typically 'ComputeServer'
        refIds - the refIds to match on. Typically the ids of the Compute Servers
        Returns:
        Observable stream of sync projection
      • listById

        io.reactivex.Observable<WikiPage> listById​(java.util.Collection<java.lang.Long> ids)
        Get a list of WikiPage objects from a list of projection ids
        Parameters:
        ids - WikiPage ids
        Returns:
        Observable stream of WikiPage
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<WikiPage> wikiPages)
        Save updates to existing WikiPages
        Parameters:
        wikiPages - updated WikiPages
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<WikiPage> wikiPages)
        Create new WikiPages in Morpheus
        Parameters:
        wikiPages - new WikiPages to persist
        Returns:
        success
      • create

        io.reactivex.Single<WikiPage> create​(WikiPage wikiPage)
        Create and return a new WikiPage in Morpheus
        Parameters:
        wikiPage - new WikiPage to persist
        Returns:
        the wiki page
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<WikiPageIdentityProjection> wikiPages)
        Remove persisted WikiPages from Morpheus
        Parameters:
        wikiPages - WikiPages to delete
        Returns:
        success