Package com.contentful.java.cda
Class SyncType
- java.lang.Object
-
- com.contentful.java.cda.SyncType
-
public class SyncType extends java.lang.ObjectThe 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyncType.TypeWhat should be synced?
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncTypeallAssets()static SyncTypeallEntries()java.lang.StringgetContentType()java.lang.StringgetName()static SyncTypeonlyDeletedAssets()static SyncTypeonlyDeletedEntries()static SyncTypeonlyDeletion()static SyncTypeonlyEntriesOfType(java.lang.String type)Sync all entries of a specific content type.
-
-
-
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.
-
-