Package com.fwmotion.threescale.cms
Interface ThreescaleCmsClient
-
- All Implemented Interfaces:
public interface ThreescaleCmsClient
-
-
Method Summary
Modifier and Type Method Description Stream<CmsObject>
streamAllCmsObjects()
List<CmsObject>
listAllCmsObjects()
abstract Stream<CmsSection>
streamSections()
List<CmsSection>
listSections()
abstract Stream<CmsFile>
streamFiles()
List<CmsFile>
listFiles()
abstract Optional<InputStream>
getFileContent(long fileId)
Optional<InputStream>
getFileContent(@Nonnull() CmsFile file)
abstract Stream<CmsTemplate>
streamTemplates(boolean includeContent)
List<CmsTemplate>
listTemplates(boolean includeContent)
abstract Optional<InputStream>
getTemplateDraft(long templateId)
Optional<InputStream>
getTemplateDraft(@Nonnull() CmsTemplate template)
abstract Optional<InputStream>
getTemplatePublished(long templateId)
Optional<InputStream>
getTemplatePublished(@Nonnull() CmsTemplate template)
abstract void
save(@Nonnull() CmsSection section)
abstract void
save(@Nonnull() CmsFile file, @Nonnull() File fileContent)
abstract void
save(@Nonnull() CmsTemplate template, @Nonnull() File draft)
abstract void
publish(long templateId)
void
publish(@Nonnull() CmsTemplate template)
abstract void
delete(@Nonnull() ThreescaleObjectType type, long id)
void
delete(@Nonnull() CmsObject object)
-
-
Method Detail
-
streamAllCmsObjects
@Nonnull() Stream<CmsObject> streamAllCmsObjects()
-
listAllCmsObjects
@Nonnull() List<CmsObject> listAllCmsObjects()
-
streamSections
@Nonnull() abstract Stream<CmsSection> streamSections()
-
listSections
@Nonnull() List<CmsSection> listSections()
-
streamFiles
@Nonnull() abstract Stream<CmsFile> streamFiles()
-
getFileContent
@Nonnull() abstract Optional<InputStream> getFileContent(long fileId)
-
getFileContent
@Nonnull() Optional<InputStream> getFileContent(@Nonnull() CmsFile file)
-
streamTemplates
@Nonnull() abstract Stream<CmsTemplate> streamTemplates(boolean includeContent)
-
listTemplates
@Nonnull() List<CmsTemplate> listTemplates(boolean includeContent)
-
getTemplateDraft
@Nonnull() abstract Optional<InputStream> getTemplateDraft(long templateId)
-
getTemplateDraft
@Nonnull() Optional<InputStream> getTemplateDraft(@Nonnull() CmsTemplate template)
-
getTemplatePublished
@Nonnull() abstract Optional<InputStream> getTemplatePublished(long templateId)
-
getTemplatePublished
@Nonnull() Optional<InputStream> getTemplatePublished(@Nonnull() CmsTemplate template)
-
save
abstract void save(@Nonnull() CmsSection section)
-
save
abstract void save(@Nonnull() CmsTemplate template, @Nonnull() File draft)
-
publish
abstract void publish(long templateId)
-
publish
void publish(@Nonnull() CmsTemplate template)
-
delete
abstract void delete(@Nonnull() ThreescaleObjectType type, long id)
-
-
-
-