|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.resources.AttributeHolder org.w3c.tools.resources.Resource org.w3c.tools.resources.FramedResource org.w3c.jigedit.filters.PutListResource
public class PutListResource
Field Summary | |
---|---|
protected static int |
ATTR_AUTO_DELETE
Attribute index - The auto delete flag |
protected static int |
ATTR_AUTO_PUBLISH
Attribute index - The auto publish flag |
protected static int |
ATTR_FILE
Attribute index - The file used to store the modification list. |
protected static int |
ATTR_MAX_PUBLISHED
Attribute index - The max number of published entries stored |
protected static int |
ATTR_ROOT
Attribute index - The web server public space. |
protected static int |
ATTR_SPACE
Attribute index - The user's local space. |
protected static boolean |
debug
|
static int |
FILE_CF
status: conflict |
static int |
FILE_DEL
status: deleted |
static int |
FILE_MG
status: File merged |
static int |
FILE_PB
status: File published |
static int |
FILE_UC
status: File unchanged |
protected static Serializer |
serializer
|
Fields inherited from class org.w3c.tools.resources.FramedResource |
---|
ATTR_OID, attrListener, debugEvent, event_disabled, framesRef, structListener |
Fields inherited from class org.w3c.tools.resources.Resource |
---|
ATTR_CONTEXT, ATTR_HELP_URL, ATTR_IDENTIFIER, ATTR_LAST_MODIFIED, ATTR_PARENT, ATTR_RESOURCE_FRAMES, ATTR_STORE_ENTRY, ATTR_URL, co, id |
Fields inherited from class org.w3c.tools.resources.AttributeHolder |
---|
attributes, values |
Constructor Summary | |
---|---|
PutListResource()
|
Method Summary | |
---|---|
protected void |
addDelEntry(DeletedEntry e)
Add an entry into the putlist |
protected void |
addEntry(PutedEntry e)
Add an entry into the putlist |
protected void |
addPubEntry(PutedEntry e)
Add a published entry into the putlist. |
int |
confirmDelete(Request request)
|
protected int |
delete(DeletedEntry de)
Delete the file relative to the given entry. |
boolean |
getAutoDeleteFlag()
Get our auto delete flag. |
boolean |
getAutoPublishFlag()
Get our auto publish flag. |
java.io.File |
getCvsSpace()
Get this user's local CVS space root directory. |
protected java.util.Enumeration |
getDelEntries()
Get the deleted entries. |
protected java.util.Enumeration |
getDelEntriesKeys()
Get the deleted entries keys |
protected DeletedEntry |
getDelEntry(java.lang.String key)
Get the deleted entry relative to the given key. |
java.io.File |
getDelFile()
Get the file to use to store the edited list of deleted files. |
protected java.util.Enumeration |
getEntries()
Get the modified entries. |
protected java.util.Enumeration |
getEntriesKeys()
Get the modified entries keys |
protected PutedEntry |
getEntry(java.lang.String key)
Get the modified entry relative to the given key. |
java.io.File |
getFile()
Get the file to use to store the edited list of files. |
int |
getMaxPublishedEntryStored()
Get the max number of published entries stored in the putlist. |
java.io.File |
getPubFile()
Get the file to use to store the edited list of published files. |
protected java.util.Enumeration |
getPublishedEntries()
Get the published entries. |
java.io.File |
getRoot()
Get the root directory of the public server to update. |
protected java.io.File |
getServerFile(java.io.File file)
Compute the path of the public file for the given local file. |
void |
initialize(java.lang.Object[] values)
Initialize the frames of that framed resource. |
protected DeletedEntry |
lookupDelEntry(Request request)
|
protected PutedEntry |
lookupEntry(Request request)
|
void |
notifyUnload()
This resource is being unloaded. |
protected int |
publish(PutedEntry pe)
Publish the file relative to the given entry. |
protected void |
readDelList()
Restore the deleted list from the file. |
protected void |
readList()
Restore the list from the file. |
protected void |
readPubList()
Restore the published list from the file. |
void |
registerDeleteRequest(Request request)
|
int |
registerRequest(Request request)
Register the given request, which must has a PUT method. |
protected void |
removeDelEntry(java.lang.String key)
Remove a deleted entry from the putlist |
protected void |
removeEntry(java.lang.String key)
Remove a modified entry from the putlist |
protected void |
removeOldestPublishedEntry()
Remove the oldest published entry from the putlist. |
protected void |
removePubEntry(java.lang.String key)
Remove a published entry from the putlist |
protected void |
removeUnconfirmedDelEntries()
|
protected void |
setAutoDelete(boolean onoff)
Enable or disable the auto delete feature. |
protected void |
setAutoPublish(boolean onoff)
Enable or disable the auto publish feature. |
protected void |
setMaxPublishedEntryStored(int max)
Set the max number of published entries stored in the putlist. |
protected void |
write(java.io.File file,
java.util.Enumeration genum)
|
protected void |
writeDelList()
Dump the current list of [ublished files back to disk. |
protected void |
writeList()
Dump the current list of edited files back to disk. |
protected void |
writePubList()
Dump the current list of published files back to disk. |
Methods inherited from class org.w3c.tools.resources.Resource |
---|
acceptUnload, checkMultipleLock, collectFrames, getContext, getFrame, getFrames, getHelpURL, getHelpURL, getIdentifier, getLastModified, getParent, getResourceReference, getServer, getSpace, getSpaceEntry, getStoreEntry, getURLPath, getValue, getValue, initialize, isInitialized, isUnloaded, pickleValues, setContext, setContext, setValue, unsafeGetContext, unsafeGetFrame, unsafeGetFrames, unsafeGetIdentifier, unsafeGetResourceReference, unsafeGetURLPath, unsafeGetValue, updateAttributes |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
---|
definesAttribute, definesAttribute, getAttributes, getBoolean, getChar, getClone, getClone, getDouble, getFloat, getInt, getLong, getString, getValue, lookupAttribute, print, setBoolean, setChar, setDouble, setFloat, setInt, setLong, setString, setValue, unsafeDefinesAttribute, unsafeGetDouble, unsafeGetString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final boolean debug
public static final int FILE_PB
public static final int FILE_UC
public static final int FILE_MG
public static final int FILE_CF
public static final int FILE_DEL
protected static int ATTR_FILE
protected static int ATTR_SPACE
protected static int ATTR_ROOT
protected static int ATTR_AUTO_PUBLISH
protected static int ATTR_AUTO_DELETE
protected static int ATTR_MAX_PUBLISHED
protected static Serializer serializer
Constructor Detail |
---|
public PutListResource()
Method Detail |
---|
public boolean getAutoPublishFlag()
protected void setAutoPublish(boolean onoff)
onoff
- if onoff is true auto publish is enable.public boolean getAutoDeleteFlag()
protected void setAutoDelete(boolean onoff)
onoff
- if onoff is true auto publish is enable.public int getMaxPublishedEntryStored()
protected void setMaxPublishedEntryStored(int max)
max
- This number.protected java.util.Enumeration getEntries()
PutedEntry
protected java.util.Enumeration getEntriesKeys()
protected PutedEntry getEntry(java.lang.String key)
key
- The key relative to the PutedEntry
PutedEntry
protected void addEntry(PutedEntry e)
e
- the entry to addprotected void removeEntry(java.lang.String key)
key
- the key of the entry to removeprotected java.util.Enumeration getDelEntries()
DeletedEntry
protected java.util.Enumeration getDelEntriesKeys()
protected DeletedEntry getDelEntry(java.lang.String key)
key
- The key relative to the DeletedEntry
DeletedEntry
protected void addDelEntry(DeletedEntry e)
e
- the entry to addprotected void removeDelEntry(java.lang.String key)
key
- the key of the entry to removeprotected java.util.Enumeration getPublishedEntries()
PutedEntry
protected void removeOldestPublishedEntry()
protected void addPubEntry(PutedEntry e)
e
- The published entry to add.PutedEntry
protected void removePubEntry(java.lang.String key)
key
- the key of the entry to removeprotected java.io.File getServerFile(java.io.File file)
public java.io.File getFile()
public java.io.File getPubFile()
public java.io.File getDelFile()
public java.io.File getRoot()
public java.io.File getCvsSpace()
protected void write(java.io.File file, java.util.Enumeration genum)
protected void writeList()
protected void writePubList()
protected void writeDelList()
protected void removeUnconfirmedDelEntries()
protected void readList()
protected void readPubList()
protected void readDelList()
protected PutedEntry lookupEntry(Request request)
protected DeletedEntry lookupDelEntry(Request request)
public int registerRequest(Request request)
file
- The modified file.public void registerDeleteRequest(Request request)
public int confirmDelete(Request request)
protected int delete(DeletedEntry de)
entry
- The DeletedEntry.
protected int publish(PutedEntry pe)
entry
- The PutedEntry.
public void notifyUnload()
FramedResource
notifyUnload
in class FramedResource
public void initialize(java.lang.Object[] values)
FramedResource
initialize
in class FramedResource
values
- Default attribute values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |