public class BrowseItem extends DSpaceObject
| Constructor and Description |
|---|
BrowseItem(Context context,
int id,
boolean in_archive,
boolean withdrawn,
boolean discoverable)
Construct a new browse item with the given context and the database id
|
| Modifier and Type | Method and Description |
|---|---|
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 |
isDiscoverable() |
boolean |
isWithdrawn() |
void |
setID(int id)
Set the database id of the item
|
void |
update() |
void |
updateLastModified() |
addDetails, clearDetails, find, getAdminObject, getDetails, getParentObject, getTypeTextpublic BrowseItem(Context context, int id, boolean in_archive, boolean withdrawn, boolean discoverable)
context - the DSpace contextid - the database id of the itemin_archive - withdrawn - public DCValue[] getMetadata(String schema, String element, String qualifier, String lang) throws SQLException
schema - metadata schemaelement - metadata elementqualifier - metadata qualifierlang - metadata languageSQLExceptionpublic 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()
DSpaceObjectnullgetHandle in class DSpaceObjectnull if it doesn't have
onepublic 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
onepublic void update()
throws SQLException,
AuthorizeException
update in class DSpaceObjectSQLExceptionAuthorizeExceptionpublic void updateLastModified()
updateLastModified in class DSpaceObjectpublic boolean isArchived()
public boolean isWithdrawn()
public boolean isDiscoverable()
Copyright © 2015 DuraSpace. All Rights Reserved.