IDocument |
IDocumentService.add(Path path) |
Adds a new document with the given path
|
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"));
|
IDocument |
IDocumentService.get(Path path) |
Get a document by its path
|
List<IDocument> |
IDocumentService.getAllBelow(Path path) |
Get all documents that are located below the given path.
|
List<IDocument> |
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 |
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"));
|