|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.XMLFile
org.merlotxml.merlot.XMLEditorFile
An XML file that is a WebDav resource
Field Summary | |
protected com.speedlegal.webdav.EditorFile |
_efile
|
protected java.util.Vector |
_webDavProperties
WebDav property map |
Fields inherited from class org.merlotxml.merlot.XMLFile |
_dirty, _doc, _docType, _file, _new, _propchange |
Fields inherited from interface org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML |
Constructor Summary | |
XMLEditorFile(java.io.File f)
Reads in the given filename to create the Document tree |
Method Summary | |
protected void |
close()
|
protected void |
close(java.io.File f)
|
protected java.io.InputStream |
getFileInputStream()
|
boolean |
hasLock()
Description of the Method |
static boolean |
hasLock(com.speedlegal.webdav.EditorFile f)
Description of the Method |
protected boolean |
hasReadAccess()
Description of the Method |
static boolean |
hasReadAccess(com.speedlegal.webdav.EditorFile f)
Does a user have repository access to read this file? |
boolean |
hasWriteAccess()
Description of the Method |
static boolean |
hasWriteAccess(com.speedlegal.webdav.EditorFile f)
Does a user have repository access to write to this file? This means that: - the file is not locked by another user - the user has access to write to the file |
boolean |
isLocked()
Gets the locked attribute of the XMLFile object |
static boolean |
isLocked(com.speedlegal.webdav.EditorFile f)
Gets the locked attribute of the XMLFile class |
protected boolean |
isLockedByOther()
Gets the lockedByOther attribute of the XMLFile object |
protected static boolean |
isLockedByOther(com.speedlegal.webdav.EditorFile f)
Gets the lockedByOther attribute of the XMLFile class |
protected void |
parseDocument()
Description of the Method |
protected void |
removeLock()
Description of the Method |
static void |
removeLock(com.speedlegal.webdav.EditorFile f)
Perfoms a repository lock on the file |
void |
removeProperties()
Description of the Method |
void |
saveAs(java.io.File file)
Description of the Method |
protected boolean |
setLock()
Sets the lock attribute of the XMLFile object |
static boolean |
setLock(com.speedlegal.webdav.EditorFile f)
Perfoms a repository lock on the file |
protected void |
setLockedByOther(boolean state)
Sets the lockedByOther attribute of the XMLFile object |
void |
setProperties()
|
static void |
setProperties(com.speedlegal.webdav.EditorFile f,
java.util.Vector properties)
Set the given properties on the file, using PROPPATCH |
void |
setWebDavProperty(java.lang.String namespace,
java.lang.String property,
java.lang.String value)
Set the given WebDav property that will be updated/written when the file is saved with namespace support |
Methods inherited from class org.merlotxml.merlot.XMLFile |
addPropertyChangeListener, elementIsValid, firePropertyChange, getDoctype, getDocument, getDTD, getDTDAttributes, getDTDCacheEntry, getInsertableElements, getInsertableElements, getInstanciatedNode, getName, getPath, getValidDocument, getXMLEditorDoc, isDirty, isNew, printRawXML, putInstanciatedNode, save, setDirty, setNew, setXMLEditorDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.speedlegal.webdav.EditorFile _efile
protected java.util.Vector _webDavProperties
Constructor Detail |
public XMLEditorFile(java.io.File f) throws MerlotException
f
- Description of the Parameter
MerlotException
- Description of the ExceptionMethod Detail |
protected void parseDocument() throws MerlotException
XMLFile
parseDocument
in class XMLFile
MerlotException
- Description of the Exceptionprotected java.io.InputStream getFileInputStream() throws java.io.FileNotFoundException
getFileInputStream
in class XMLFile
java.io.FileNotFoundException
public static boolean setLock(com.speedlegal.webdav.EditorFile f)
f
- The new lock valueprotected boolean setLock()
public static void setProperties(com.speedlegal.webdav.EditorFile f, java.util.Vector properties)
f
- The new properties valueproperties
- The new properties valuepublic void setProperties()
public void setWebDavProperty(java.lang.String namespace, java.lang.String property, java.lang.String value)
namespace
- The new webDavProperty valueproperty
- The new webDavProperty valuevalue
- The new webDavProperty valuepublic void removeProperties()
public static void removeLock(com.speedlegal.webdav.EditorFile f)
f
- Description of the Parameterprotected void removeLock()
public static boolean hasReadAccess(com.speedlegal.webdav.EditorFile f)
f
- Description of the Parameter
protected boolean hasReadAccess()
public static boolean hasWriteAccess(com.speedlegal.webdav.EditorFile f)
f
- Description of the Parameter
public static boolean hasLock(com.speedlegal.webdav.EditorFile f)
f
- Description of the Parameter
public boolean hasLock()
public boolean isLocked()
public static boolean isLocked(com.speedlegal.webdav.EditorFile f)
f
- Description of the Parameter
public boolean hasWriteAccess()
protected boolean isLockedByOther()
protected static boolean isLockedByOther(com.speedlegal.webdav.EditorFile f)
f
- Description of the Parameter
protected void setLockedByOther(boolean state)
state
- The new lockedByOther valuepublic void saveAs(java.io.File file) throws MerlotException
saveAs
in class XMLFile
file
- Description of the Parameter
MerlotException
- Description of the Exceptionprotected void close()
close
in class XMLFile
protected void close(java.io.File f)
close
in class XMLFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |