|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oclc.da.gdfr.registryprototype.atom.IWSACollectionBasedAtomHandler
public class IWSACollectionBasedAtomHandler
IWSA Collection -based implementation that stores entries and media-entries
to an RFA supported database. Implemented
using org.oclc.da.gdfr.registryprototype.atom.IWSACollectionBasedAtomService.
| Field Summary | |
|---|---|
java.lang.String |
ATOM_ENTRY_XSL
|
java.lang.String |
ATOM_FEED_XSL
|
java.lang.String |
DEPOSIT_XSL
|
int |
XSL_TIMEOUT_SECONDS
|
| Constructor Summary | |
|---|---|
IWSACollectionBasedAtomHandler()
Contruct handler for one request, using specified file storage directory. |
|
| Method Summary | |
|---|---|
void |
deleteEntry(java.lang.String[] pathInfo)
Delete entry specified by pathInfo. |
IWSACollectionBasedCollection |
findCollectionByHandle(java.lang.String collectionName)
|
DataObject |
getCollection(java.lang.String[] pathInfo)
Get collection specified by pathinfo. |
DataObject |
getEntry(java.lang.String[] pathInfo)
Get entry specified by pathInfo. |
DataObject |
getIntrospection()
Return introspection document |
boolean |
isCollectionURI(java.lang.String[] pathInfo)
Return true if specified pathinfo represents URI of a collection. |
boolean |
isEntryURI(java.lang.String[] pathInfo)
Return true if specified pathinfo represents URI of an Atom entry. |
boolean |
isIntrospectionURI(java.lang.String[] pathInfo)
Return true if specified pathinfo represents URI of introspection doc. |
DataObject |
postEntry(java.lang.String[] pathInfo,
DataObject entry,
java.lang.String authenticatedUser)
Create a new entry specified by pathInfo and posted entry. |
DataObject |
putEntry(java.lang.String[] pathInfo,
DataObject entry,
java.lang.String authenticatedUser)
Update entry specified by pathInfo and posted entry. |
boolean |
validateUser(java.lang.String login,
java.lang.String password)
Method used for validating user. |
| 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 ATOM_FEED_XSL
public final java.lang.String ATOM_ENTRY_XSL
public final java.lang.String DEPOSIT_XSL
public final int XSL_TIMEOUT_SECONDS
| Constructor Detail |
|---|
public IWSACollectionBasedAtomHandler()
req - Request to be handled.uploaddir - File storage upload dir.| Method Detail |
|---|
public boolean validateUser(java.lang.String login,
java.lang.String password)
login - user submitted login idpassword - user submitted password
public DataObject getIntrospection()
throws RegistryException
com.sun.syndication.propono.atom.server.RegistryException - Unexpected exception.
RegistryException
public DataObject getCollection(java.lang.String[] pathInfo)
throws RegistryException
pathInfo - Path info from Servlet request.
com.sun.syndication.propono.atom.server.RegistryException - Invalid collection or other exception.
RegistryException
public DataObject postEntry(java.lang.String[] pathInfo,
DataObject entry,
java.lang.String authenticatedUser)
throws RegistryException
entry - Entry to be added to collection.pathInfo - Path info from Servlet request.
com.sun.syndication.propono.atom.server.RegistryException - On invalid collection or other error.
RegistryException
public DataObject getEntry(java.lang.String[] pathInfo)
throws RegistryException
pathInfo - Path info portion of URL
RegistryException
public DataObject putEntry(java.lang.String[] pathInfo,
DataObject entry,
java.lang.String authenticatedUser)
throws RegistryException
entry - pathInfo - Path info portion of URL
com.sun.syndication.propono.atom.server.RegistryException
RegistryException
public void deleteEntry(java.lang.String[] pathInfo)
throws RegistryException
pathInfo - Path info portion of URL
RegistryExceptionpublic boolean isIntrospectionURI(java.lang.String[] pathInfo)
public boolean isCollectionURI(java.lang.String[] pathInfo)
public boolean isEntryURI(java.lang.String[] pathInfo)
public IWSACollectionBasedCollection findCollectionByHandle(java.lang.String collectionName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||