|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.DSpaceObject
org.dspace.browse.BrowseItem
public class BrowseItem
Entity class to represent an item that is being used to generate Browse results. This behaves in many was similar to the Item object, but its metadata handling has been further optimised for performance in both reading and writing, and it does not deal with other objects related to items FIXME: this class violates some of the encapsulation of the Item, but there is unfortunately no way around this until DAOs and an interface are provided for the Item class.
| Constructor Summary | |
|---|---|
BrowseItem(Context context,
int id,
boolean in_archive,
boolean withdrawn)
Construct a new browse item with the given context and the database id |
|
| Method Summary | |
|---|---|
String |
getHandle()
Get the Handle of the object. |
int |
getID()
get the database id of the item |
DCValue[] |
getMetadata(String schema,
String element,
String qualifier,
String lang)
Get String array of metadata values matching the given parameters |
String |
getName()
Get a proper name for the object. |
Thumbnail |
getThumbnail()
Get a thumbnail object out of the item. |
int |
getType()
Get the type of object. |
int |
getType(boolean real)
Deprecated. |
boolean |
isArchived()
|
boolean |
isWithdrawn()
|
void |
setID(int id)
Set the database id of the item |
void |
update()
|
void |
updateLastModified()
|
| Methods inherited from class org.dspace.content.DSpaceObject |
|---|
addDetails, clearDetails, find, getAdminObject, getDetails, getParentObject, getTypeText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrowseItem(Context context,
int id,
boolean in_archive,
boolean withdrawn)
context - the DSpace contextid - the database id of the itemin_archive - withdrawn - | Method Detail |
|---|
public DCValue[] getMetadata(String schema,
String element,
String qualifier,
String lang)
throws SQLException
schema - metadata schemaelement - metadata elementqualifier - metadata qualifierlang - metadata language
SQLExceptionpublic int getType()
getType in class DSpaceObjectpublic int getType(boolean real)
real - public int getID()
getID in class DSpaceObjectpublic void setID(int id)
id - the database id of the itempublic String getHandle()
DSpaceObjectnull
getHandle in class DSpaceObjectnull if it doesn't have
one
public Thumbnail getThumbnail()
throws SQLException
SQLExceptionpublic String getName()
DSpaceObjectnull.
Name should be suitable for display in a user interface.
getName in class DSpaceObjectnull if it doesn't have
one
public void update()
throws SQLException,
AuthorizeException
update in class DSpaceObjectSQLException
AuthorizeExceptionpublic void updateLastModified()
updateLastModified in class DSpaceObjectpublic boolean isArchived()
public boolean isWithdrawn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||