Package it.tidalwave.bluemarine2.model
Class VirtualMediaFolder
- java.lang.Object
-
- it.tidalwave.bluemarine2.model.spi.EntityWithRoles
-
- it.tidalwave.bluemarine2.model.VirtualMediaFolder
-
- All Implemented Interfaces:
MediaFolder
,Entity
,PathAwareEntity
,Dumpable
,it.tidalwave.role.Composite<PathAwareEntity,Finder<? extends PathAwareEntity>>
,it.tidalwave.role.SimpleComposite<PathAwareEntity>
,As
public class VirtualMediaFolder extends EntityWithRoles implements MediaFolder
Represents a folder which doesn't have a physical counterpart in the repository. It can be used to created in-memory aggregations of media items.- Author:
- Fabrizio Giudici
- Stereotype:
- Datum
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VirtualMediaFolder.EntityCollectionFactory
static interface
VirtualMediaFolder.EntityFinderFactory
-
Nested classes/interfaces inherited from interface it.tidalwave.util.As
As.Defaults, As.NotFoundBehaviour<T extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.bluemarine2.model.spi.PathAwareEntity
_PathAwareEntity_
-
-
Constructor Summary
Constructors Constructor Description VirtualMediaFolder(MediaFolder parent, java.nio.file.Path pathSegment, java.lang.String displayName, VirtualMediaFolder.EntityCollectionFactory childrenFactory)
VirtualMediaFolder(MediaFolder parent, java.nio.file.Path pathSegment, java.lang.String displayName, VirtualMediaFolder.EntityFinderFactory finderFactory)
VirtualMediaFolder(java.util.Optional<? extends MediaFolder> optionalParent, java.nio.file.Path pathSegment, java.lang.String displayName, VirtualMediaFolder.EntityCollectionFactory childrenFactory)
VirtualMediaFolder(java.util.Optional<? extends MediaFolder> optionalParent, java.nio.file.Path pathSegment, java.lang.String displayName, VirtualMediaFolder.EntityFinderFactory finderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathAwareFinder
findChildren()
Returns aPathAwareFinder
for retrieving children.java.util.Optional<PathAwareEntity>
getParent()
Returns the optional parent of this object.java.lang.String
toDumpString()
-
Methods inherited from class it.tidalwave.bluemarine2.model.spi.EntityWithRoles
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface it.tidalwave.bluemarine2.model.MediaFolder
finderOf, finderOf
-
Methods inherited from interface it.tidalwave.bluemarine2.model.spi.PathAwareEntity
getPath, getRelativePath
-
-
-
-
Constructor Detail
-
VirtualMediaFolder
public VirtualMediaFolder(@Nonnull MediaFolder parent, @Nonnull java.nio.file.Path pathSegment, @Nonnull java.lang.String displayName, @Nonnull VirtualMediaFolder.EntityCollectionFactory childrenFactory)
-
VirtualMediaFolder
public VirtualMediaFolder(@Nonnull java.util.Optional<? extends MediaFolder> optionalParent, @Nonnull java.nio.file.Path pathSegment, @Nonnull java.lang.String displayName, @Nonnull VirtualMediaFolder.EntityCollectionFactory childrenFactory)
-
VirtualMediaFolder
public VirtualMediaFolder(@Nonnull MediaFolder parent, @Nonnull java.nio.file.Path pathSegment, @Nonnull java.lang.String displayName, @Nonnull VirtualMediaFolder.EntityFinderFactory finderFactory)
-
VirtualMediaFolder
public VirtualMediaFolder(@Nonnull java.util.Optional<? extends MediaFolder> optionalParent, @Nonnull java.nio.file.Path pathSegment, @Nonnull java.lang.String displayName, @Nonnull VirtualMediaFolder.EntityFinderFactory finderFactory)
-
-
Method Detail
-
getParent
@Nonnull public java.util.Optional<PathAwareEntity> getParent()
Description copied from interface:PathAwareEntity
Returns the optional parent of this object.- Specified by:
getParent
in interfacePathAwareEntity
- Returns:
- the parent
-
findChildren
@Nonnull public PathAwareFinder findChildren()
Description copied from interface:MediaFolder
Returns aPathAwareFinder
for retrieving children.- Specified by:
findChildren
in interfaceit.tidalwave.role.Composite<PathAwareEntity,Finder<? extends PathAwareEntity>>
- Specified by:
findChildren
in interfaceMediaFolder
- Returns:
- the
PathAwareFinder
-
toDumpString
@Nonnull public java.lang.String toDumpString()
- Specified by:
toDumpString
in interfaceDumpable
-
-