Uses of Class
org.mycore.datamodel.niofs.MCRPath
Package
Description
Contains abstract classes and factories to build a
FileSystem
on top of different implementations.Contains classes to build a
FileSystem
on top of
MCRStoredNode
.Servlets, Commands and Xalan extensions
Service classes for IView2
Contains Classes/Interfaces to configure/extend the behavior of the MyCoRe-Sword2-Implementation.
-
Uses of MCRPath in org.mycore.datamodel.classifications2
-
Uses of MCRPath in org.mycore.datamodel.metadata
Modifier and TypeMethodDescriptionMCRMetaDerivateLink.getLinkedFile()
Returns theMCRPath
to this derivate link.Modifier and TypeMethodDescriptionMCRObjectDerivate.getOrCreateFileMetadata
(MCRPath file) MCRObjectDerivate.getOrCreateFileMetadata
(MCRPath file, String urn) MCRObjectDerivate.getOrCreateFileMetadata
(MCRPath file, String urn, String handle) void
MCRMetaDerivateLink.setLinkToFile
(MCRPath file) -
Uses of MCRPath in org.mycore.datamodel.niofs
Modifier and TypeMethodDescriptionMCRAbstractFileSystem.emptyPath()
MCRPath.getParent()
static MCRPath
MCRAbstractFileSystem.getPath
(String owner, String path, MCRAbstractFileSystem fs) static MCRPath
MCRPath.getRoot()
MCRAbstractFileSystem.getRootDirectory
(String owner) static MCRPath
MCRPath.getRootPath
(String owner) Returns the root directory for a given derivate.MCRPath.relativize
(Path other) MCRPath.subpath
(int beginIndex, int endIndex) MCRPath.subpathComplete()
returns complete subpath.static MCRPath
MCRAbstractFileSystem.toThisFileSystem
(MCRPath other) Modifier and TypeMethodDescriptionstatic Document
MCRPathXML.getDirectoryXML
(MCRPath path) static Document
MCRPathXML.getDirectoryXML
(MCRPath path, BasicFileAttributes attr) Sends the contents of an MCRDirectory as XML data to the clientstatic Document
MCRPathXML.getFileXML
(MCRPath path) Returns metadata of the file retrievable by 'path' in XML form.static Document
MCRPathXML.getFileXML
(MCRPath path, BasicFileAttributes attrs) Returns metadata of the file retrievable by 'path' in XML form.abstract Path
MCRAbstractFileStore.getPhysicalPath
(MCRPath path) Translates the given path into an absolute path of the physical filesystem.MCRAbstractFileSystem.toThisFileSystem
(MCRPath other) boolean
Checks if the file for given Path is still valid.boolean
MCRAbstractFileSystem.verifies
(MCRPath path, MCRFileAttributes<?> attrs) Checks if the file for given Path is still valid. -
Uses of MCRPath in org.mycore.datamodel.niofs.ifs2
ModifierConstructorDescriptionMCRFileChannel
(MCRPath path, MCRFile file, FileChannel baseChannel, boolean write, boolean create) -
Uses of MCRPath in org.mycore.frontend.fileupload
-
Uses of MCRPath in org.mycore.impex
-
Uses of MCRPath in org.mycore.iview2.frontend
-
Uses of MCRPath in org.mycore.iview2.frontend.resources
Modifier and TypeFieldDescriptionprotected MCRPath
MCRIViewZipResource.ZipStreamingOutput.derivateRoot
-
Uses of MCRPath in org.mycore.iview2.services
Modifier and TypeMethodDescriptionMCRImageThumbnailGenerator.getThumbnail
(MCRPath path, int size) boolean
MCRImageThumbnailGenerator.matchesFileType
(String mimeType, MCRPath path) -
Uses of MCRPath in org.mycore.media.services
Modifier and TypeMethodDescriptionMCRPdfThumbnailGenerator.getThumbnail
(MCRPath path, int size) MCRThumbnailGenerator.getThumbnail
(MCRPath path, int size) boolean
MCRPdfThumbnailGenerator.matchesFileType
(String mimeType, MCRPath path) boolean
MCRThumbnailGenerator.matchesFileType
(String mimeType, MCRPath path) -
Uses of MCRPath in org.mycore.mets.model
Modifier and TypeMethodDescriptionMCRMETSAbstractGenerator.getDerivatePath()
Returns the path to the derivate.MCRMETSHierarchyGenerator.FileRef.getPath()
MCRMETSHierarchyGenerator.FileRefImpl.getPath()
Modifier and TypeMethodDescriptionMCRMETSAbstractGenerator.getIgnorePaths()
Returns a set of paths which should be ignore while creating the mets.xml.Modifier and TypeMethodDescriptionprotected MCRMETSHierarchyGenerator.FileRef
MCRMETSHierarchyGenerator.buildFileRef
(MCRPath path, String contentType) static MCRMETSGenerator
Returns a generator for the given derivate.static MCRMETSGenerator
Returns a generator for the given derivate.Returns the generator.void
MCRMETSAbstractGenerator.setDerivatePath
(MCRPath derivatePath) Modifier and TypeMethodDescriptionstatic MCRMETSGenerator
Returns a generator for the given derivate.void
MCRMETSAbstractGenerator.setIgnorePaths
(Set<MCRPath> ignorePaths) -
Uses of MCRPath in org.mycore.mets.tools
Modifier and TypeMethodDescriptionstatic MCRPath
MCRMetsSave.createMetsFile
(String derivateID) static MCRPath
MCRMetsSave.getMetsFile
(String derivateID) Modifier and TypeMethodDescriptionMCRMetsSave.listFiles
(MCRPath path, Collection<MCRPath> ignore) Returns a list of files in the given path.Modifier and TypeMethodDescriptionstatic String
MCRMetsSave.getFileBase
(MCRPath path) Returns the name without any path information or file extension.static String
MCRMetsSave.getFileGroupUse
(MCRPath file) Decides in which file group the file should be insertedstatic String
Returns the mets:file/@ID for the given path.static boolean
MCRMetsSave.isComplete
(org.mycore.mets.model.files.FileGrp fileGroup, MCRPath rootDir) MCRMetsSave.listFiles
(MCRPath path, Collection<MCRPath> ignore) Returns a list of files in the given path.static void
MCRMetsSave.updateFiles
(org.mycore.mets.model.Mets mets, MCRPath derivatePath) Call this method to update the mets.xml if files of the derivate have changed.static void
MCRMetsSave.updateMetsOnFileAdd
(MCRPath file) Updates the mets.xml belonging to the given derivate.static void
MCRMetsSave.updateMetsOnFileDelete
(MCRPath file) Updates the mets.xml belonging to the given derivate.Modifier and TypeMethodDescriptionstatic List<org.mycore.mets.model.files.FileGrp>
MCRMetsSave.buildFileGroups
(List<MCRPath> paths) Builds new mets:fileGrp's based on the given paths using the mycore derivate convetions.MCRMetsSave.listFiles
(MCRPath path, Collection<MCRPath> ignore) Returns a list of files in the given path.MCRMetsSave.listFileUse
(List<MCRPath> paths) Returns a list of allMCRMetsFileUse
in the given paths. -
Uses of MCRPath in org.mycore.pi.urn.rest
ModifierConstructorDescriptionMCRURNGranularRESTService
(Function<MCRDerivate, Stream<MCRPath>> derivateFileStreamFunc) -
Uses of MCRPath in org.mycore.services.zipper
Modifier and TypeMethodDescriptionprotected String
MCRCompressServlet.getFilename
(MCRPath path) Constructs a path name in form of {ownerID}+'/'+{path} or {ownerID} if path is root component.protected abstract void
MCRCompressServlet.sendCompressedDirectory
(MCRPath file, BasicFileAttributes attrs, T container) protected void
MCRTarServlet.sendCompressedDirectory
(MCRPath file, BasicFileAttributes attrs, org.apache.commons.compress.archivers.tar.TarArchiveOutputStream container) protected void
MCRZipServlet.sendCompressedDirectory
(MCRPath file, BasicFileAttributes attrs, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream container) protected abstract void
MCRCompressServlet.sendCompressedFile
(MCRPath file, BasicFileAttributes attrs, T container) protected void
MCRTarServlet.sendCompressedFile
(MCRPath file, BasicFileAttributes attrs, org.apache.commons.compress.archivers.tar.TarArchiveOutputStream container) protected void
MCRZipServlet.sendCompressedFile
(MCRPath file, BasicFileAttributes attrs, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream container) -
Uses of MCRPath in org.mycore.sword
Modifier and TypeMethodDescriptionstatic void
MCRSwordUtil.extractZipToPath
(Path zipFilePath, MCRPath target) -
Uses of MCRPath in org.mycore.sword.application