Package org.apache.jackrabbit.vault.vlt
Class VltFile
- java.lang.Object
-
- org.apache.jackrabbit.vault.vlt.VltFile
-
- All Implemented Interfaces:
DocumentSource
public class VltFile extends Object implements DocumentSource
VltFile...
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVltFile.StatePossible state of this file
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_CONTENT_TYPE
-
Constructor Summary
Constructors Constructor Description VltFile(VltDirectory parent, String name, VltEntry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileActionadd(boolean force)booleancanDescend()FileActioncommit(VaultFile remoteFile)FileActiondelete(boolean force)VltDirectorydescend()voiddiff()MetaFilegetBaseFile(boolean create)StringgetContentType()VltEntrygetEntry()FilegetFile()StringgetLabel()Returns a label of the source.StringgetLocation()Returns some location information of the source.StringgetName()StringgetPath()PropertiesgetProperties()StringgetProperty(String name)VltFile.StategetStatus()MetaFilegetTmpFile()booleanisBinary()Checks if this file has binary content.booleanresolved(boolean force)booleanrevert()voidsetProperty(String name, String value)FileActionstatus(VaultFile remoteFile)FileActionupdate(VaultFile remoteFile, boolean force)
-
-
-
Field Detail
-
PROP_CONTENT_TYPE
public static final String PROP_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VltFile
public VltFile(VltDirectory parent, String name, VltEntry entry) throws VltException
- Throws:
VltException
-
-
Method Detail
-
getProperties
public Properties getProperties() throws VltException
- Throws:
VltException
-
getProperty
public String getProperty(String name) throws VltException
- Throws:
VltException
-
setProperty
public void setProperty(String name, String value) throws VltException
- Throws:
VltException
-
getStatus
public VltFile.State getStatus() throws VltException
- Throws:
VltException
-
getName
public String getName()
-
getFile
public File getFile()
-
getPath
public String getPath()
-
getBaseFile
public MetaFile getBaseFile(boolean create) throws VltException
- Throws:
VltException
-
getContentType
public String getContentType()
-
isBinary
public boolean isBinary()
Checks if this file has binary content. It does not actually read the file data but callsMimeTypes.isBinary(String)with the content type of the work file.- Returns:
trueif this is binary
-
getTmpFile
public MetaFile getTmpFile() throws VltException
- Throws:
VltException
-
canDescend
public boolean canDescend()
-
descend
public VltDirectory descend() throws VltException
- Throws:
VltException
-
getEntry
public VltEntry getEntry()
-
diff
public void diff() throws VltException- Throws:
VltException
-
delete
public FileAction delete(boolean force) throws VltException
- Throws:
VltException
-
commit
public FileAction commit(VaultFile remoteFile) throws VltException
- Throws:
VltException
-
revert
public boolean revert() throws VltException- Throws:
VltException
-
resolved
public boolean resolved(boolean force) throws VltException- Throws:
VltException
-
update
public FileAction update(VaultFile remoteFile, boolean force) throws VltException
- Throws:
VltException
-
status
public FileAction status(VaultFile remoteFile) throws VltException
- Throws:
VltException
-
add
public FileAction add(boolean force) throws VltException
- Throws:
VltException
-
getLabel
public String getLabel()
Description copied from interface:DocumentSourceReturns a label of the source.- Specified by:
getLabelin interfaceDocumentSource- Returns:
- a label of the source.
-
getLocation
public String getLocation()
Description copied from interface:DocumentSourceReturns some location information of the source.- Specified by:
getLocationin interfaceDocumentSource- Returns:
- some location information.
-
-