Package org.dspace.content
Class SiteServiceImpl
- All Implemented Interfaces:
DSpaceObjectService<Site>,SiteService
Service implementation for the Site object.
This class is responsible for all business logic calls for the Site object and is autowired by spring.
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorizeServiceprotected ConfigurationServiceprotected SiteDAOFields inherited from class org.dspace.content.DSpaceObjectServiceImpl
choiceAuthorityService, handleService, metadataAuthorityService, metadataFieldService, metadataValueService, relationshipServiceFields inherited from interface org.dspace.content.service.DSpaceObjectService
MD_COPYRIGHT_TEXT, MD_INTRODUCTORY_TEXT, MD_LICENSE, MD_NAME, MD_PROVENANCE_DESCRIPTION, MD_SHORT_DESCRIPTION, MD_SIDEBAR_TEXT, MD_SOURCE, MD_USER_FORMAT_DESCRIPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSite(Context context) voidGeneric find for when the precise type of an Entity is not knownGet a proper name for the object.intReturns the Constants which this service supportsvoidvoidupdateLastModified(Context context, Site dso) Methods inherited from class org.dspace.content.DSpaceObjectServiceImpl
addAndShiftRightMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, getAdminObject, getAuthoritiesAndConfidences, getElements, getElementsFilled, getIdentifiers, getMDValueByField, getMDValueByLegacyField, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getMetadataFirstValue, getMetadataValuePlace, getParentObject, getTypeText, match, moveMetadata, moveSingleMetadataValue, removeMetadataValues, replaceMetadata, setMetadataModified, setMetadataSingleValue, setMetadataSingleValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.content.service.DSpaceObjectService
addAndShiftRightMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, getAdminObject, getIdentifiers, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getMetadataFirstValue, getParentObject, getTypeText, moveMetadata, removeMetadataValues, replaceMetadata, setMetadataModified, setMetadataSingleValue, setMetadataSingleValue
-
Field Details
-
authorizeService
-
configurationService
-
siteDAO
-
-
Constructor Details
-
SiteServiceImpl
protected SiteServiceImpl()
-
-
Method Details
-
createSite
- Specified by:
createSitein interfaceSiteService- Throws:
SQLException
-
findSite
- Specified by:
findSitein interfaceSiteService- Throws:
SQLException
-
find
Description copied from interface:DSpaceObjectServiceGeneric find for when the precise type of an Entity is not known- Specified by:
findin interfaceDSpaceObjectService<Site>- Parameters:
context- - the contextid- - uuid within table of typed dspace objects- Returns:
- the dspace object found, or null if it does not exist.
- Throws:
SQLException- only upon failure accessing the database.
-
updateLastModified
- Specified by:
updateLastModifiedin interfaceDSpaceObjectService<Site>- Throws:
SQLExceptionAuthorizeException
-
update
- Specified by:
updatein interfaceDSpaceObjectService<Site>- Overrides:
updatein classDSpaceObjectServiceImpl<Site>- Throws:
SQLExceptionAuthorizeException
-
getName
Description copied from interface:DSpaceObjectServiceGet a proper name for the object. This may returnnull. Name should be suitable for display in a user interface.- Specified by:
getNamein interfaceDSpaceObjectService<Site>- Overrides:
getNamein classDSpaceObjectServiceImpl<Site>- Parameters:
dso- DSpaceObject- Returns:
- Name for the object, or
nullif it doesn't have one
-
delete
- Specified by:
deletein interfaceDSpaceObjectService<Site>- Throws:
SQLExceptionAuthorizeExceptionIOException
-
getSupportsTypeConstant
public int getSupportsTypeConstant()Description copied from interface:DSpaceObjectServiceReturns the Constants which this service supports- Specified by:
getSupportsTypeConstantin interfaceDSpaceObjectService<Site>- Returns:
- a org.dspace.core.Constants that represents a IndexableObject type
-