public class Site extends DSpaceObject
| Modifier and Type | Field and Description |
|---|---|
static int |
SITE_ID
"database" identifier of the site
|
allMetadataFields, metadataCache, modifiedMetadata, ourContext| Constructor and Description |
|---|
Site() |
| Modifier and Type | Method and Description |
|---|---|
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() |
addDC, addDC, addDetails, addMetadata, addMetadata, addMetadata, addMetadata, clearDC, clearDetails, clearMetadata, find, getAdminObject, getAuthoritiesAndConfidences, getDC, getDetails, getElements, getElementsFilled, getIdentifiers, getMDValueByField, getMDValueByLegacyField, getMetadata, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataField, getMetadataFirstValue, getParentObject, getTypeText, removeMetadataFromDatabase, replaceMetadataValue, resetIdentifiersCache, setMetadataSingleValue, updateMetadatapublic static final int SITE_ID
public int getType()
getType in class DSpaceObjectpublic int getID()
getID in class DSpaceObjectpublic String getHandle()
nullgetHandle 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.SQLExceptionpublic void update()
throws SQLException,
AuthorizeException
update in class DSpaceObjectSQLExceptionAuthorizeExceptionpublic 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()
Copyright © 2014 DuraSpace. All Rights Reserved.