Package org.dspace.content
Class SiteServiceImpl
- java.lang.Object
-
- org.dspace.content.DSpaceObjectServiceImpl<Site>
-
- org.dspace.content.SiteServiceImpl
-
- All Implemented Interfaces:
DSpaceObjectService<Site>,SiteService
public class SiteServiceImpl extends DSpaceObjectServiceImpl<Site> implements 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
Fields Modifier and Type Field Description protected AuthorizeServiceauthorizeServiceprotected ConfigurationServiceconfigurationServiceprotected SiteDAOsiteDAO-
Fields inherited from class org.dspace.content.DSpaceObjectServiceImpl
choiceAuthorityService, handleService, metadataAuthorityService, metadataFieldService, metadataValueService, relationshipService
-
Fields 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 Modifier Constructor Description protectedSiteServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SitecreateSite(Context context)voiddelete(Context context, Site dso)Sitefind(Context context, UUID id)Generic find for when the precise type of an Entity is not knownSitefindSite(Context context)StringgetName(Site dso)Get a proper name for the object.intgetSupportsTypeConstant()Returns the Constants which this service supportsvoidupdate(Context context, Site site)voidupdateLastModified(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, setMetadataSingleValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
authorizeService
@Autowired(required=true) protected AuthorizeService authorizeService
-
configurationService
@Autowired(required=true) protected ConfigurationService configurationService
-
siteDAO
@Autowired(required=true) protected SiteDAO siteDAO
-
-
Method Detail
-
createSite
public Site createSite(Context context) throws SQLException
- Specified by:
createSitein interfaceSiteService- Throws:
SQLException
-
findSite
public Site findSite(Context context) throws SQLException
- Specified by:
findSitein interfaceSiteService- Throws:
SQLException
-
find
public Site find(Context context, UUID id) throws SQLException
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
public void updateLastModified(Context context, Site dso) throws SQLException, AuthorizeException
- Specified by:
updateLastModifiedin interfaceDSpaceObjectService<Site>- Throws:
SQLExceptionAuthorizeException
-
update
public void update(Context context, Site site) throws SQLException, AuthorizeException
- Specified by:
updatein interfaceDSpaceObjectService<Site>- Overrides:
updatein classDSpaceObjectServiceImpl<Site>- Throws:
SQLExceptionAuthorizeException
-
getName
public String getName(Site dso)
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
public void delete(Context context, Site dso) throws SQLException, AuthorizeException, IOException
- 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
-
-