|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oclc.da.gdfr.registryprototype.atom.IWSACollectionBasedCollection
public class IWSACollectionBasedCollection
File based Atom collectionName implementation. This is the heart of the file-based Atom service implementation. It provides methods for adding, getting updating and deleting Atom entries and media entries.
| Field Summary | |
|---|---|
java.lang.String |
APP_PREFIX
|
java.lang.String |
HOST_PREFIX
|
| Constructor Summary | |
|---|---|
IWSACollectionBasedCollection(java.lang.String collectionName,
Collection collection,
java.lang.String collectionAdminData,
java.lang.String identifierType,
java.lang.String entryXSL,
java.lang.String feedXSL,
java.lang.String depositXSL)
Construct by providing title (plain text, no HTML), a workspace handle, a plural collectionName name (e.g. |
|
| Method Summary | |
|---|---|
DataObject |
addEntry(DataObject entry,
java.lang.String authenticatedUser)
Add entry to collectionName. |
void |
deleteEntry(java.lang.String item)
Delete an entry and any associated media file. |
DataObject |
getEntry(java.lang.String item)
Get an entry from the collectionName. |
DataObject |
getFeedDocument()
Get feed document representing collectionName. |
DataObject |
updateEntry(DataObject entry,
java.lang.String item,
java.lang.String authenticatedUser)
Update an entry in the collectionName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String HOST_PREFIX
public final java.lang.String APP_PREFIX
| Constructor Detail |
|---|
public IWSACollectionBasedCollection(java.lang.String collectionName,
Collection collection,
java.lang.String collectionAdminData,
java.lang.String identifierType,
java.lang.String entryXSL,
java.lang.String feedXSL,
java.lang.String depositXSL)
title - Title of collectionName (plain text, no HTML)collectionName - Collection namecollection - Collection class referenceidentifierType - Type of identifier supported by this collectionappuri - URI of Atom protocol service| Method Detail |
|---|
public DataObject getFeedDocument()
throws RegistryException
com.sun.syndication.propono.atom.server.RegistryException - On error retrieving feed file.
RegistryException
public DataObject addEntry(DataObject entry,
java.lang.String authenticatedUser)
throws RegistryException
entry - Entry to be added to collectionName. Entry will be saved to disk in a
directory under the collectionName's directory and the path will follow the
pattern [collectionName-plural]/[entryid]/entry.xml. The entry will be added
to the collectionName's feed in [collectionName-plural]/feed.xml.
java.lang.Exception - On error.
RegistryException
public DataObject getEntry(java.lang.String item)
throws RegistryException
item - Internal ID of entry to be returned
RegistryException - On error
public DataObject updateEntry(DataObject entry,
java.lang.String item,
java.lang.String authenticatedUser)
throws RegistryException
entry - Updated entry to be storedfileName - Internal ID of entry
java.lang.Exception - On error
RegistryException
public void deleteEntry(java.lang.String item)
throws RegistryException
fileName - Internal ID of entry
RegistryException - On error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||