org.dspace.content
Class Site

java.lang.Object
  extended by org.dspace.content.DSpaceObject
      extended by org.dspace.content.Site

public class Site
extends DSpaceObject

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 ignroed).
 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
 void update()
           
 
Methods inherited from class org.dspace.content.DSpaceObject
addDetails, clearDetails, find, getAdminObject, getDetails, getParentObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SITE_ID

public static final int SITE_ID
"database" identifier of the site

See Also:
Constant Field Values
Constructor Detail

Site

public Site()
Method Detail

getType

public int getType()
Get the type of this object, found in Constants

Specified by:
getType in class DSpaceObject
Returns:
type of the object

getID

public int getID()
Get the internal ID (database primary key) of this object

Specified by:
getID in class DSpaceObject
Returns:
internal ID of object

getHandle

public String getHandle()
Get the Handle of the object. This may return null

Specified by:
getHandle in class DSpaceObject
Returns:
Handle of the object, or null if it doesn't have one

getSiteHandle

public static String getSiteHandle()
Static method to return site Handle without creating a Site.


find

public static DSpaceObject find(Context context,
                                int id)
                         throws SQLException
Get Site object corresponding to db id (which is ignroed).

Parameters:
context - the context.
id - integer database id, ignored.
Throws:
SQLException

update

public void update()
            throws SQLException,
                   AuthorizeException,
                   IOException
Throws:
SQLException
AuthorizeException
IOException

getName

public String getName()
Description copied from class: DSpaceObject
Get a proper name for the object. This may return null. Name should be suitable for display in a user interface.

Specified by:
getName in class DSpaceObject
Returns:
Name for the object, or null if it doesn't have one


Copyright © 2010 DuraSpace. All Rights Reserved.