|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.DSpaceObject
org.dspace.content.Site
public class Site
Represents the root of the DSpace Archive. By default, the handle suffix "0" represents the Site, e.g. "1721.1/0"
| Field Summary | |
|---|---|
static int |
SITE_ID
"database" identifier of the site |
| Constructor Summary | |
|---|---|
Site()
|
|
| Method Summary | |
|---|---|
static DSpaceObject |
find(Context context,
int id)
Get Site object corresponding to db id (which is ignored). |
String |
getHandle()
Get the Handle of the object. |
int |
getID()
Get the internal ID (database primary key) of this object |
String |
getName()
Get a proper name for the object. |
static String |
getSiteHandle()
Static method to return site Handle without creating a Site. |
int |
getType()
Get the type of this object, found in Constants |
String |
getURL()
|
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 |
| Field Detail |
|---|
public static final int SITE_ID
| Constructor Detail |
|---|
public Site()
| Method Detail |
|---|
public int getType()
getType in class DSpaceObjectpublic int getID()
getID in class DSpaceObjectpublic String getHandle()
null
getHandle in class DSpaceObjectnull if it doesn't have
onepublic static String getSiteHandle()
public static DSpaceObject find(Context context,
int id)
throws SQLException
context - the context.id - integer database id, ignored.
SQLException
public void update()
throws SQLException,
AuthorizeException
update in class DSpaceObjectSQLException
AuthorizeExceptionpublic String getName()
DSpaceObjectnull.
Name should be suitable for display in a user interface.
getName in class DSpaceObjectnull if it doesn't have
onepublic void updateLastModified()
updateLastModified in class DSpaceObjectpublic String getURL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||