Package com.fwmotion.threescale.cms
Class ThreescaleCmsClientImpl
-
- All Implemented Interfaces:
-
com.fwmotion.threescale.cms.ThreescaleCmsClient
public class ThreescaleCmsClientImpl implements ThreescaleCmsClient
-
-
Constructor Summary
Constructors Constructor Description ThreescaleCmsClientImpl(FilesApi filesApi, SectionsApi sectionsApi, TemplatesApi templatesApi, ObjectMapper objectMapper)
ThreescaleCmsClientImpl(ApiClient apiClient)
-
Method Summary
Modifier and Type Method Description Stream<CmsSection>
streamSections()
Stream<CmsFile>
streamFiles()
Optional<InputStream>
getFileContent(long fileId)
Stream<CmsTemplate>
streamTemplates(boolean includeContent)
Optional<InputStream>
getTemplateDraft(long templateId)
Optional<InputStream>
getTemplatePublished(long templateId)
void
save(@Nonnull() CmsSection section)
void
save(@Nonnull() CmsFile file, @Nullable() File fileContent)
void
save(@Nonnull() CmsTemplate template, @Nullable() File templateDraft)
void
publish(long templateId)
void
delete(@Nonnull() ThreescaleObjectType type, long id)
-
-
Constructor Detail
-
ThreescaleCmsClientImpl
ThreescaleCmsClientImpl(FilesApi filesApi, SectionsApi sectionsApi, TemplatesApi templatesApi, ObjectMapper objectMapper)
-
ThreescaleCmsClientImpl
ThreescaleCmsClientImpl(ApiClient apiClient)
-
-
Method Detail
-
streamSections
@Nonnull() Stream<CmsSection> streamSections()
-
streamFiles
@Nonnull() Stream<CmsFile> streamFiles()
-
getFileContent
@Nonnull() Optional<InputStream> getFileContent(long fileId)
-
streamTemplates
@Nonnull() Stream<CmsTemplate> streamTemplates(boolean includeContent)
-
getTemplateDraft
@Nonnull() Optional<InputStream> getTemplateDraft(long templateId)
-
getTemplatePublished
@Nonnull() Optional<InputStream> getTemplatePublished(long templateId)
-
save
void save(@Nonnull() CmsSection section)
-
save
void save(@Nonnull() CmsTemplate template, @Nullable() File templateDraft)
-
publish
void publish(long templateId)
-
delete
void delete(@Nonnull() ThreescaleObjectType type, long id)
-
-
-
-