|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.sword.DSpaceATOMEntry
public abstract class DSpaceATOMEntry
Class to represent a DSpace Item as an ATOM Entry. This handles the objects in a default way, but the intention is for you to be able to extend the class with your own representation if necessary.
| Field Summary | |
|---|---|
protected Bitstream |
bitstream
The bitstream this ATOM entry represents |
protected Deposit |
deposit
the original deposit |
protected SWORDEntry |
entry
the SWORD ATOM entry which this class effectively decorates |
protected Item |
item
the item this ATOM entry represents |
protected DepositResult |
result
the deposit result |
protected SWORDService |
swordService
sword service implementation |
| Constructor Summary | |
|---|---|
protected |
DSpaceATOMEntry(SWORDService service)
Create a new atom entry object around the given service |
| Method Summary | |
|---|---|
protected void |
addAuthors()
add the author names from the bibliographic metadata. |
protected void |
addContributors()
Add the list of contributors to the item. |
protected void |
addGenerator()
add the generator field content |
protected void |
addPackagingElement()
set the packaging format of the deposit |
protected void |
addTreatment()
Add deposit treatment text |
protected void |
constructEntry()
Construct the entry |
SWORDEntry |
getSWORDEntry(DepositResult result,
Deposit deposit)
Construct the SWORDEntry object which represents the given item with the given handle. |
SWORDEntry |
getSWORDEntry(DSpaceObject dso)
get the sword entry for the given dspace object. |
void |
reset()
Reset all the internal variables of the class to their original values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SWORDEntry entry
protected Item item
protected Bitstream bitstream
protected DepositResult result
protected SWORDService swordService
protected Deposit deposit
| Constructor Detail |
|---|
protected DSpaceATOMEntry(SWORDService service)
service - | Method Detail |
|---|
public void reset()
public SWORDEntry getSWORDEntry(DSpaceObject dso)
throws DSpaceSWORDException
dso -
DSpaceSWORDException
public SWORDEntry getSWORDEntry(DepositResult result,
Deposit deposit)
throws DSpaceSWORDException
result - the result of the deposit operationdeposit - the original deposit request
DSpaceSWORDException
protected void constructEntry()
throws DSpaceSWORDException
DSpaceSWORDExceptionprotected void addTreatment()
protected void addGenerator()
protected void addPackagingElement()
protected void addAuthors()
protected void addContributors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||