Class DragAndDropWebEditorStore.Container
- java.lang.Object
-
- org.silverpeas.core.contribution.content.ddwe.model.DragAndDropWebEditorStore.Container
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DragAndDropWebEditorStore
public static class DragAndDropWebEditorStore.Container extends Object implements Serializable
Container that contains the different kinds of content (temporary and final ones).- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<DragAndDropWebEditorStore.Content>
getContent()
Gets the final content if any.DragAndDropWebEditorStore.Content
getOrCreateContent()
Gets the final content and creating it if it does not yet exist.DragAndDropWebEditorStore.Content
getOrCreateTmpContent()
Gets the temporary content and creating it if it does not yet exist.Optional<DragAndDropWebEditorStore.Content>
getTmpContent()
Gets the temporary content if any.protected static DragAndDropWebEditorStore.Container
loadFrom(InputStream in)
protected static void
writeIn(DragAndDropWebEditorStore.Container content, OutputStream out)
-
-
-
Method Detail
-
loadFrom
protected static DragAndDropWebEditorStore.Container loadFrom(InputStream in)
-
writeIn
protected static void writeIn(DragAndDropWebEditorStore.Container content, OutputStream out)
-
getTmpContent
public Optional<DragAndDropWebEditorStore.Content> getTmpContent()
Gets the temporary content if any.- Returns:
- an optional
DragAndDropWebEditorStore.Content
instance.
-
getOrCreateTmpContent
public DragAndDropWebEditorStore.Content getOrCreateTmpContent()
Gets the temporary content and creating it if it does not yet exist.
-
getContent
public Optional<DragAndDropWebEditorStore.Content> getContent()
Gets the final content if any.- Returns:
- an optional
DragAndDropWebEditorStore.Content
instance.
-
getOrCreateContent
public DragAndDropWebEditorStore.Content getOrCreateContent()
Gets the final content and creating it if it does not yet exist.
-
-