Interface MountInfoProvider
- 
@ProviderType public interface MountInfoProviderHolds information related to theMounts configured in aContentRepository.The configuration may either be trivial - only a default mount is configured, or defining at least one non-default mount.
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull MountgetDefaultMount()Returns the default mount@Nullable MountgetMountByName(java.lang.String name)Returns the mount instance for given mount name@NotNull MountgetMountByPath(java.lang.String path)Maps a given path to logical store name.@NotNull java.util.Collection<Mount>getMountsPlacedDirectlyUnder(java.lang.String path)Returns all mounts placed directly under the specified path@NotNull java.util.Collection<Mount>getMountsPlacedUnder(java.lang.String path)Returns all mounts placed under the specified path@NotNull java.util.Collection<Mount>getNonDefaultMounts()Set of non default mount points configured for the setupbooleanhasNonDefaultMounts()Return true if there are explicit mounts configured 
 - 
 
- 
- 
Method Detail
- 
getMountByPath
@NotNull @NotNull Mount getMountByPath(java.lang.String path)
Maps a given path to logical store name.- Parameters:
 path- node path for which backing store location is to be determined- Returns:
 - mountInfo for the given path. If no explicit mount configured then default mount would be returned
 
 
- 
getNonDefaultMounts
@NotNull @NotNull java.util.Collection<Mount> getNonDefaultMounts()
Set of non default mount points configured for the setup- Returns:
 - a collection of mounts, possibly empty
 
 
- 
getMountByName
@Nullable @Nullable Mount getMountByName(java.lang.String name)
Returns the mount instance for given mount name- Parameters:
 name- name of the mount- Returns:
 - mount instance for given mount name. If no mount exists for given name
 
nullwould be returned 
 
- 
hasNonDefaultMounts
boolean hasNonDefaultMounts()
Return true if there are explicit mounts configured- Returns:
 - true if at least one non-default mount is configured, false otherwise
 
 
- 
getMountsPlacedUnder
@NotNull @NotNull java.util.Collection<Mount> getMountsPlacedUnder(java.lang.String path)
Returns all mounts placed under the specified path- Parameters:
 path- the path under which mounts are to be found- Returns:
 - a collection of mounts, possibly empty
 - See Also:
 Mount.isUnder(String)
 
- 
getMountsPlacedDirectlyUnder
@NotNull @NotNull java.util.Collection<Mount> getMountsPlacedDirectlyUnder(java.lang.String path)
Returns all mounts placed directly under the specified path- Parameters:
 path- the path under which mounts are to be foud- Returns:
 - a collection of mounts, possibly empty
 - See Also:
 Mount.isDirectlyUnder(String)
 
- 
getDefaultMount
@NotNull @NotNull Mount getDefaultMount()
Returns the default mount- Returns:
 - the default mount
 
 
 - 
 
 -