public class FilesystemObject extends java.lang.Object implements TransactionListenerI
Constructor and Description |
---|
FilesystemObject(java.io.File _baseDir,
java.io.File[] _files,
java.lang.String _name,
java.lang.Class _typ) |
FilesystemObject(java.io.File _baseDir,
java.io.File _file,
java.lang.String _name,
java.lang.Class _typ) |
FilesystemObject(java.io.File _baseDir,
java.lang.String _name,
java.lang.Class _typ) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.io.File f) |
boolean |
allEntriesExist() |
static void |
appendUnifiedDiff(java.lang.StringBuilder s,
java.lang.String oPath,
long oLmod,
java.lang.String oContent,
java.lang.String nPath,
long nLmod,
java.lang.String nContent) |
static void |
appendUnifiedDiff(java.lang.StringBuilder s,
java.lang.String oPath,
long oLmod,
java.lang.String oContent,
java.lang.String nPath,
long nLmod,
java.lang.String nContent,
boolean ignoreWhiteSpace) |
static void |
appendUnifiedDiff(java.lang.StringBuilder s,
java.lang.String oPath,
long oLmod,
java.lang.String oContent,
java.lang.String nPath,
long nLmod,
java.lang.String nContent,
boolean ignoreWhiteSpace,
int unifiedContent) |
void |
cancel() |
void |
checkPoint()
Callback after a transaction has been arrived at a checkpoint, e.g. after being committed or has no
uncommitted changes anymore.
|
boolean |
delete() |
void |
flush() |
java.io.File |
getBaseDir() |
BO |
getBo() |
java.lang.String |
getContent(int index) |
java.io.File |
getFile(int index) |
java.lang.String |
getFileAsString() |
static java.lang.String |
getFileAsString(java.io.File f) |
java.lang.String |
getFileAsString(int index) |
int |
getFileCount() |
long |
getLmod() |
long |
getLmod(int index) |
java.lang.String |
getName() |
java.lang.Class |
getTyp() |
java.lang.String |
getUnifiedDiff() |
java.lang.String |
getUnifiedDiff(boolean ignoreWhiteSpace) |
java.lang.String |
getUnifiedDiff(boolean ignoreWhiteSpace,
int unifiedContent) |
void |
init(java.io.File _baseDir,
java.io.File[] _files,
java.lang.String _name,
java.lang.Class _typ) |
boolean |
isDirty() |
void |
newProcs(BOProc[] boprocs)
Callback for newly created procs or changes to BOs known in the transaction.
|
static boolean |
putStringInFile(java.lang.String s,
java.io.File f) |
void |
putStringInFile(java.lang.String s,
int index) |
boolean |
refreshFS() |
void |
registerAtTx(Transaction tx,
BO _bo) |
void |
reload() |
void |
setBaseDir(java.io.File $17) |
void |
setBo(BO $20) |
void |
setContent(int index,
java.lang.String content) |
void |
setLmod(long lmod)
Sets the lmod of ALL files behind this object.
|
void |
setName(java.lang.String $18) |
void |
setTyp(java.lang.Class $19) |
FilesystemObject |
setXml(int index,
boolean xml) |
java.lang.String |
toString() |
void |
unregisterAtTx(Transaction tx) |
public FilesystemObject(java.io.File _baseDir, java.io.File _file, java.lang.String _name, java.lang.Class _typ)
public FilesystemObject(java.io.File _baseDir, java.io.File[] _files, java.lang.String _name, java.lang.Class _typ)
public FilesystemObject(java.io.File _baseDir, java.lang.String _name, java.lang.Class _typ)
public void init(java.io.File _baseDir, java.io.File[] _files, java.lang.String _name, java.lang.Class _typ)
public long getLmod()
public long getLmod(int index)
public void addFile(java.io.File f)
public int getFileCount()
public java.lang.String toString()
toString
in class java.lang.Object
public void registerAtTx(Transaction tx, BO _bo)
public void unregisterAtTx(Transaction tx)
public void newProcs(BOProc[] boprocs)
TransactionListenerI
newProcs
in interface TransactionListenerI
public void checkPoint()
TransactionListenerI
checkPoint
in interface TransactionListenerI
public void setContent(int index, java.lang.String content)
public java.lang.String getContent(int index)
public java.io.File getFile(int index)
public FilesystemObject setXml(int index, boolean xml)
public java.lang.String getName()
public void setLmod(long lmod)
public boolean isDirty()
public java.lang.String getUnifiedDiff()
public java.lang.String getUnifiedDiff(boolean ignoreWhiteSpace)
public java.lang.String getUnifiedDiff(boolean ignoreWhiteSpace, int unifiedContent)
public static void appendUnifiedDiff(java.lang.StringBuilder s, java.lang.String oPath, long oLmod, java.lang.String oContent, java.lang.String nPath, long nLmod, java.lang.String nContent)
public static void appendUnifiedDiff(java.lang.StringBuilder s, java.lang.String oPath, long oLmod, java.lang.String oContent, java.lang.String nPath, long nLmod, java.lang.String nContent, boolean ignoreWhiteSpace)
public static void appendUnifiedDiff(java.lang.StringBuilder s, java.lang.String oPath, long oLmod, java.lang.String oContent, java.lang.String nPath, long nLmod, java.lang.String nContent, boolean ignoreWhiteSpace, int unifiedContent)
public boolean delete()
public void cancel()
public void flush()
public void reload()
public boolean refreshFS()
public boolean allEntriesExist()
public java.lang.String getFileAsString()
public java.lang.String getFileAsString(int index)
public void putStringInFile(java.lang.String s, int index)
public static java.lang.String getFileAsString(java.io.File f)
public static boolean putStringInFile(java.lang.String s, java.io.File f)
public java.io.File getBaseDir()
public void setBaseDir(java.io.File $17)
public void setName(java.lang.String $18)
public java.lang.Class getTyp()
public void setTyp(java.lang.Class $19)
public BO getBo()
public void setBo(BO $20)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.