Class LocalFolder
java.lang.Object
org.eclipse.dirigible.repository.local.LocalObject
org.eclipse.dirigible.repository.local.LocalFolder
public class LocalFolder extends LocalObject
Internal representation of a Folder/Collection kind of object.
-
Constructor Summary
Constructors Constructor Description LocalFolder(FileSystemRepository repository)Instantiates a new local folder. -
Method Summary
Modifier and Type Method Description voidcopyFolder(String newPath)Copy folder.voidcreateFile(String name, byte[] content, boolean isBinary, String contentType)Creates the file.voidcreateFolder(String name)Creates the folder.voiddeleteTree()Delete tree.List<LocalObject>getChildren()Gets the children.voidrenameFolder(String newPath)Rename folder.Methods inherited from class org.eclipse.dirigible.repository.local.LocalObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy, getName, getPath, getPermissions, getRepository, setCreatedAt, setCreatedBy, setModifiedAt, setModifiedBy, setName, setPath, setPermissions
-
Constructor Details
-
LocalFolder
Instantiates a new local folder.- Parameters:
repository- the repository
-
-
Method Details
-
deleteTree
Delete tree.- Throws:
LocalRepositoryException- the local repository exception
-
getChildren
Gets the children.- Returns:
- the children
- Throws:
LocalRepositoryException- the local repository exception
-
createFolder
Creates the folder.- Parameters:
name- the name- Throws:
LocalRepositoryException- the local repository exception
-
createFile
public void createFile(String name, byte[] content, boolean isBinary, String contentType) throws LocalRepositoryExceptionCreates the file.- Parameters:
name- the namecontent- the contentisBinary- the is binarycontentType- the content type- Throws:
LocalRepositoryException- the local repository exception
-
renameFolder
Rename folder.- Parameters:
newPath- the new path- Throws:
LocalRepositoryException- the local repository exception
-
copyFolder
Copy folder.- Parameters:
newPath- the new path- Throws:
LocalRepositoryException- the local repository exception
-