|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceSpace
Method Summary | |
---|---|
void |
acquireChildren(SpaceEntry sentry)
Acquire the children of the resource. |
void |
acquireChildren(SpaceEntry sentry,
java.io.File repository,
boolean transientFlag)
acquire children from an external file. |
ResourceReference |
addResource(SpaceEntry sentry,
Resource resource,
java.util.Hashtable defs)
Add this resource to the space. |
void |
checkpoint()
Checkpoint all modified resource, by saving them to disk. |
void |
deleteChildren(SpaceEntry sentry)
Delete all the children of resource indentified by its space entry. |
void |
deleteResource(SpaceEntry sentry,
Resource resource)
Delete this resource from the space. |
java.util.Enumeration |
enumerateResourceIdentifiers(SpaceEntry sentry)
Enumerate the name (ie identifiers) of the resource children identified by its space entry. |
ResourceEventQueue |
getEventQueue()
|
ResourceReference |
loadResource(SpaceEntry sentry,
java.lang.String identifier,
java.util.Hashtable defs)
Restore the resource whose name is given. |
ResourceReference |
loadRootResource(java.lang.String identifier,
java.util.Hashtable defs)
Restore the resource whose name is given from the root. |
ResourceReference |
lookupResource(SpaceEntry sentry,
java.lang.String identifier)
Lookup this resource. |
void |
markModified(SpaceEntry sentry,
Resource resource)
Mark the given resource as being modified. |
void |
renameResource(SpaceEntry sentry,
java.lang.String oldid,
java.lang.String newid)
Rename a resource in this resource space. |
void |
saveChildren(SpaceEntry sentry)
Save all the children of the resource indentified by its spaec entry. |
void |
saveResource(SpaceEntry sentry,
Resource resource)
Save this resource to the space. |
void |
shutdown()
Shutdown this resource space. |
Method Detail |
---|
ResourceEventQueue getEventQueue()
void shutdown()
void checkpoint()
ResourceReference loadRootResource(java.lang.String identifier, java.util.Hashtable defs)
identifier
- The identifier of the resource to restore.defs
- Default attribute values.ResourceReference lookupResource(SpaceEntry sentry, java.lang.String identifier)
sentry
- The resource space entry.identifier
- The resource identifier.
ResourceReference loadResource(SpaceEntry sentry, java.lang.String identifier, java.util.Hashtable defs)
sentry
- The resource space entry.identifier
- The identifier of the resource to restore.defs
- Default attribute values.ResourceReference addResource(SpaceEntry sentry, Resource resource, java.util.Hashtable defs)
sentry
- The resource space entry.resource
- The resource to add.defs
- Default attribute values.void saveResource(SpaceEntry sentry, Resource resource)
sentry
- The resource space entry.resource
- The resource to save.void markModified(SpaceEntry sentry, Resource resource)
sentry
- The resource space entry.resource
- The resource to mark as modified.void renameResource(SpaceEntry sentry, java.lang.String oldid, java.lang.String newid)
sentry
- The resource space entry.oldid
- The old resorce identifier.newid
- The new resorce identifier.void deleteResource(SpaceEntry sentry, Resource resource)
sentry
- The resource space entry.resource
- The resource to delete.void deleteChildren(SpaceEntry sentry)
sentry
- The resource space entryvoid saveChildren(SpaceEntry sentry)
sentry
- The resource space entryvoid acquireChildren(SpaceEntry sentry)
sentry
- The resource space entry.void acquireChildren(SpaceEntry sentry, java.io.File repository, boolean transientFlag)
sentry
- The resource space entry.repository
- The file used to store children.java.util.Enumeration enumerateResourceIdentifiers(SpaceEntry sentry)
sentry
- The space entry.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |