Class EntryScope<Scope,​Entry extends IFileSystemEntry<Entry>>

  • Type Parameters:
    Scope - The type of the scope.
    Entry - The type of the file system entries.

    public final class EntryScope<Scope,​Entry extends IFileSystemEntry<Entry>>
    extends Object
    Combines a scope with a list of file system entries, intended to be used with e.g. IScopedEntityPersistenceAdapter. When the entries are empty, lists all files in the given scope. When the entries are not empty, limits the result to the given entries.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • EntryScope

        public EntryScope​(Scope scope,
                          List<Entry> entries)
        Creates a new combination of a scope with a list of file system entries.
        Parameters:
        scope - The scope to which the entries belong.
        entries - The list of file system entries to which to limit the result. If empty, no restriction applies.
    • Method Detail

      • entries

        public List<Entry> entries()
        Gets the list of file system entries to which to limit the result. If empty, no restriction applies.
        Returns:
        The list of file system entries.
      • scope

        public Scope scope()
        Gets the scope to which the entries belong.
        Returns:
        The scope.