Uses of Class
ch.ivyteam.ivy.workflow.document.Path

Packages that use Path
Package
Description
 
  • Uses of Path in ch.ivyteam.ivy.workflow.document

    Methods in ch.ivyteam.ivy.workflow.document that return Path
    Modifier and Type
    Method
    Description
    Path.append(Path path)
    Example:
    Path path = new Path("documents/sales").append(new Path("January/axonivy.docx"));
    Boolean isTrue = path.equals(new Path("documents/sales/January/axonivy.docs");
    Path.append(String path)
    Example:
    Path path = new Path("documents/sales").append("January/axonivy.docx");
    Boolean isTrue = path.equals(new Path("documents/sales/January/axonivy.docs");
    IDocument.getPath()
    Path of the document
    Path.relativize(Path parentPath)
    Example:
    Path relativePath = new Path("documents/sales/January/axonivy.docx").relativize(new Path("documents/sales"))
    Boolean isTrue = relativePath.equals(new Path("January/axonivy.docx"));
    Methods in ch.ivyteam.ivy.workflow.document with parameters of type Path
    Modifier and Type
    Method
    Description
    IDocumentService.add(Path path)
    Adds a new document with the given path
    Path.append(Path path)
    Example:
    Path path = new Path("documents/sales").append(new Path("January/axonivy.docx"));
    Boolean isTrue = path.equals(new Path("documents/sales/January/axonivy.docs");
    void
    IDocumentService.delete(Path path)
    Deletes the document with the given path.
    boolean
    Path.endsWith(Path postfix)
    Example:
    Boolean isTrue = new Path("documents/sales/January").endsWith(new Path("sales/January"));
    IDocumentService.get(Path path)
    Get a document by its path
    IDocumentService.getAllBelow(Path path)
    Get all documents that are located below the given path.
    IDocumentService.getAllDirectBelow(Path path)
    Get all documents that are located directly below the given path.
    boolean
    Path.isPostfixOf(Path path)
    Example:
    Boolean isTrue = new Path("sales/January").isPostfixOf(new Path("documents/sales/January"));
    boolean
    Path.isPrefixOf(Path path)
    Example:
    Boolean isTrue = new Path("documents/sales").isPrefixOf(new Path("documents/sales/January"));
    Path.relativize(Path parentPath)
    Example:
    Path relativePath = new Path("documents/sales/January/axonivy.docx").relativize(new Path("documents/sales"))
    Boolean isTrue = relativePath.equals(new Path("January/axonivy.docx"));
    boolean
    Path.startsWith(Path prefix)
    Example:
    Boolean isTrue = new Path("documents/sales/January").startsWith(new Path("documents/sales"));