Class SyncType


  • public class SyncType
    extends java.lang.Object
    The type of syncing.

    If you want to specify to sync only specific parts of content, please use this class in conjunction with CDAClient.sync(SyncType) and one of the static methods defined here.

    • Method Detail

      • allAssets

        public static SyncType allAssets()
        Returns:
        a type syncing all assets.
      • allEntries

        public static SyncType allEntries()
        Returns:
        a type syncing all entries.
      • onlyEntriesOfType

        public static SyncType onlyEntriesOfType​(java.lang.String type)
        Sync all entries of a specific content type.
        Parameters:
        type - which content type to sync.
        Returns:
        a type syncing all entries of a specific type.
        See Also:
        Contentful Docs
      • onlyDeletion

        public static SyncType onlyDeletion()
        Returns:
        a type syncing all deleted resources, including assets and entries.
      • onlyDeletedAssets

        public static SyncType onlyDeletedAssets()
        Returns:
        a type syncing all deleted assets.
      • onlyDeletedEntries

        public static SyncType onlyDeletedEntries()
        Returns:
        a type syncing all deleted entries.
      • getName

        public java.lang.String getName()
        Returns:
        a string representation of the type's name
      • getContentType

        public java.lang.String getContentType()
        Returns:
        the content type name if present.