public class SiteServiceImpl extends DSpaceObjectServiceImpl<Site> implements SiteService
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
protected ConfigurationService |
configurationService |
protected SiteDAO |
siteDAO |
choiceAuthorityService, handleService, metadataAuthorityService, metadataFieldService, metadataValueService| Modifier | Constructor and Description |
|---|---|
protected |
SiteServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Site |
createSite(Context context) |
void |
delete(Context context,
Site dso) |
Site |
find(Context context,
UUID id)
Generic find for when the precise type of a DSO is not known, just the
a pair of type number and database ID.
|
Site |
findSite(Context context) |
String |
getName(Site dso)
Get a proper name for the object.
|
int |
getSupportsTypeConstant()
Returns the Constants which this service supports
|
void |
update(Context context,
Site site) |
void |
updateLastModified(Context context,
Site dso) |
addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, getAdminObject, getAuthoritiesAndConfidences, getElements, getElementsFilled, getIdentifiers, getMDValueByField, getMDValueByLegacyField, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getMetadataValuePlace, getParentObject, getTypeText, match, removeMetadataValues, setMetadataSingleValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, getAdminObject, getIdentifiers, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getParentObject, getTypeText, removeMetadataValues, setMetadataSingleValue@Autowired(required=true) protected AuthorizeService authorizeService
@Autowired(required=true) protected ConfigurationService configurationService
@Autowired(required=true) protected SiteDAO siteDAO
public Site createSite(Context context) throws SQLException
createSite in interface SiteServiceSQLExceptionpublic Site findSite(Context context) throws SQLException
findSite in interface SiteServiceSQLExceptionpublic Site find(Context context, UUID id) throws SQLException
DSpaceObjectServicefind in interface DSpaceObjectService<Site>context - - the contextid - - id within table of type'd objectsSQLException - only upon failure accessing the database.public void updateLastModified(Context context, Site dso) throws SQLException, AuthorizeException
updateLastModified in interface DSpaceObjectService<Site>SQLExceptionAuthorizeExceptionpublic void update(Context context, Site site) throws SQLException, AuthorizeException
update in interface DSpaceObjectService<Site>update in class DSpaceObjectServiceImpl<Site>SQLExceptionAuthorizeExceptionpublic String getName(Site dso)
DSpaceObjectServicenull.
Name should be suitable for display in a user interface.getName in interface DSpaceObjectService<Site>getName in class DSpaceObjectServiceImpl<Site>dso - DSpaceObjectnull if it doesn't have
onepublic void delete(Context context, Site dso) throws SQLException, AuthorizeException, IOException
delete in interface DSpaceObjectService<Site>SQLExceptionAuthorizeExceptionIOExceptionpublic int getSupportsTypeConstant()
DSpaceObjectServicegetSupportsTypeConstant in interface DSpaceObjectService<Site>Copyright © 2016 DuraSpace. All rights reserved.