Class LocalFile
java.lang.Object
org.eclipse.dirigible.repository.local.LocalObject
org.eclipse.dirigible.repository.local.LocalFile
public class LocalFile extends LocalObject
Internal representation of a File/Resource kind of object.
-
Constructor Summary
Constructors Constructor Description LocalFile(FileSystemRepository repository, boolean isBinary, String contentType)Instantiates a new local file. -
Method Summary
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
-
LocalFile
Instantiates a new local file.- Parameters:
repository- the repositoryisBinary- the is binarycontentType- the content type
-
-
Method Details
-
delete
Delete.- Throws:
LocalRepositoryException- the local repository exception
-
rename
Rename.- Parameters:
newPath- the new path- Throws:
LocalRepositoryException- the local repository exception
-
copyTo
Copy to.- Parameters:
newPath- the new path- Throws:
LocalRepositoryException- the local repository exception
-
getData
Gets the data.- Returns:
- the data
- Throws:
LocalRepositoryException- the local repository exception
-
setData
Sets the data.- Parameters:
content- the new data- Throws:
LocalRepositoryException- the local repository exception
-
isBinary
public boolean isBinary()Checks if is binary.- Returns:
- true, if is binary
-
getContentType
Gets the content type.- Returns:
- the content type
-