Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

administrative

...

package

DCType (Deleted)

Class has been removed, isn’t used anywhere in the codebase

...

  • getAuthorityValueType() method moved to AuthorityValueService

app.itemexport package

ItemExport => ItemExportService

Factory usage: ItemExportServiceFactory.getInstance().getItemExportService()
  • Class has been split into ItemExportService & ItemExportCLITool
  • exportAsZip now requires an Iterator<Item> instead of an ItemIterator
  • getExportDownloadDirectory,deleteOldExportArchives methods now require an EPerson instead of an identifier
  • getExportFileSize & getExportFileLastModified now require a context

app.itemimport package

ItemImport => ItemImportService

Factory usage: ItemImportServiceFactory.getInstance().getItemImportService()

...

  • The class remains but all code related to the WebApp database table has been moved to the respective WebApp, WebAppService, WebAppDAO classes.
  • getApps method has been moved to WebAppService and now returns a list of WebApp objects

MetadataExposure => MetadataExposureService

Factory usage: UtilServiceFactory.getInstance().getMetadataExposureService();

  • Has been refactored into MetadataExposureService

OpenSearch => OpenSearchService

Factory usage: UtilServiceFactory.getInstance().getOpenSearchService();
  • Has been refactored into OpenSearchService
  • getResultsString(), getResultsDoc() methods now require a context

SyndicationFeed

  • populate() method now requires a context.

Util

  • getControlledVocabulariesDisplayValueLocalized now requires a list of MetadataValues instead of an array of Metadatum

MetadataUtilities

  • deleteMetadataByValue(), appendMetadata() methods now require a context
  • getDCValueString now requries a metadata value
  • readDeleteContentsFile() now returns a list of strings, this is due to the fact that exported files can have both legacy integers as well as UUIDS.

app.mediafilter package

MediaFilterManager => MediaFilterService

Factory usage: MediaFilterServiceFactory.getInstance().getMediaFilterService()
  • Class been split into MediaFilterService & MediaFilterCLITool

FormatFilter

  • getDestinationStream(), preProcessBitstream() now require verbose boolean
  • getDestinationStream() now requires an item

ImageMagickThumbnailFilter

  • getThumbnailFile(), getImageFile(), now requires verbose boolean

MediaFilter

  • preProcessBitstream() now requires verbose boolean

app.sfx package

SFXFileReader => SFXFileReaderService

Factory usage: SfxServiceFactory.getInstance().getSfxFileReaderService()
  • SFXFileReader migrated to SFXFileReaderService

app.statistics package

LogAnalyser

  • Now uses a discovery query to retrieve items by accessioned date instead of a complex query.

authenticate package

AuthenticationManager => AuthenticationService

Factory usage: AuthenticateServiceFactory.getInstance().getAuthenticationService()
  • Migrated to: AuthenticationService
  • getSpecialGroups() method now returns a list of groups instead of array of identifiers

AuthenticationMethod

  • getSpecialGroups() method now returns a list of groups instead of array of identifiers 

PasswordAuthentication

  • getSpecialGroups() method now returns a list of groups instead of array of identifiers 

ShibAuthentication

  • getSpecialGroups() method now returns a list of groups instead of array of identifiers 

authority package

AuthorityValue

  • getAuthorityTypes() method moved to AuthorityServiceFactory.getInstance().getAuthorTypes();
  • fromSolr() method moved to AuthorityValueService.
  • updateItem() method now requires context

AuthorityValueGenerator & AuthorityValueFinder => AuthorityValueService

Factory usage: AuthorityServiceFactory.getInstance().getAuthorityValueService();
  • Migrated into AuthorityValueService

AuthorityIndexClient

  • indexItem() method moved to AuthorityService

authorize Package

AuthorizeManager => AuthorizeService

Factory usage: AuthorizeServiceFactory.getInstance().getAuthorizeService()
  • getAuthorizedGroups now returns a list instead of an array of groups
  • isAnIdenticalPolicyAlreadyInPlace now requires a group as argument instead of a group identifier
  • isAnIdenticalPolicyAlreadyInPlace with dsoType & dsoId parameters has been removed, use the one which passes a DSpaceObject.
  • removeGroupPolicies(Context c, int groupID) now requires a group instead of a group identifier
  • getAuthorizedGroups now returns a list instead of an array of groups
  • findByTypeIdGroupAction(Context c, int dsoType, int dsoID, int groupID, int action, int policyID) has been changed to use Group & DSpaceObject instead of integers.
  • createOrModifyPolicy groupID parameter has been adjusted to use the group object

PolicySet

  • setPolicies() methods now require UUIDs instead of integers

ResourcePolicy => ResourcePolicy & ResourcePolicyService

Factory usage: AuthorizeServiceFactory.getInstance().getResourcePolicyService()
  • setResource() renamed to setdSpaceObject()
  • update(context) now also requires an object to update
  • delete(context) now also requires an object to delete

Browse package

General

Removed the following classes since this isn’t supported any more:
  • BrowseCreateDAOPostgres
  • BrowseCreateDAOOracle
  • BrowseDAOUtilsOracle
  • BrowseDAOUtilsPostgres
  • BrowseItemDAOOracle
  • BrowseItemDAOPostgres
  • ItemCountDAOOracle
  • ItemCountDAOPostgres
  • BrowseDAOOracle
  • BrowseDAOPostgres

BrowseItem (Deleted)

  • Class has been removed, uses Item/ItemService now

BrowseItemDAO (Deleted)

  • Class has been removed, use ItemService now

BrowseInfo

  • getBrowseItemResults() now returns list of items instead of array of BrowseItem objects
  • getItemResults() method removed, use getBrowseItemResults() instead

BrowseCreateDAO

  • deleteByItemID(), deleteCommunityMappings(), updateCommunityMappings(), insertIndex(), updateIndex(), updateDistinctMappings(), deleteMappingsByItemID(), now require a UUID instead of an integer

BrowseDAO

  • getContainerID()/setContainerID() methods now require/return a UUID instead of an integer
  • oQuery() now returns items instead of browseItems

BrowseDAOFactory

  • getItemInstance() method has been removed, we are now using itemService directly
  • getUtils() method removed, wasn’t used.

BrowseDAOUtils (Deleted)

  • Class has been removed (wasn't used anymore)

 BrowseDAOUtilsDefault (Deleted)

  • Class has been removed (wasn't used anymore)

IndexBrowse

  • itemRemoved() method now requires a UUID instead of integer
  • itemMetadataProxy inner class has been removed, use Item class instead

SolrBrowseDAO

  • getContainerID()/setContainerID() methods now require/return a UUID instead of an integer
  • deleteByItemID(), deleteCommunityMappings(), updateCommunityMappings(), insertIndex(), updateIndex(), updateDistinctMappings(), deleteMappingsByItemID(), now require a UUID instead of an integer

Checker package

BitstreamDAO (Deleted)

  • Class has been removed, use bitstreamService.retrieve to get an input stream for a bitstream

BitstreamDispatcher

  • next() method uses bitstreams instead of integers

BitstreamInfoDAO (Deleted)

  • Uses combo of bitstreamService & ChecksumHistoryService to perform queries

ChecksumCheckResults => ChecksumResultCode

  • ChecksumCheckResults has been renamed to ChecksumResultCode and no longer is a class but an enum

ChecksumHistoryDAO

  • ChecksumHistoryDAO has been moved from org.dspace.checker.ChecksumHistoryDAO to org.dspace.checker.dao.impl.ChecksumHistoryDAOImpl & code has been made hibernate compatible

DAOSupport (Deleted)

  • Class removed, relied on the old Database code

ChecksumResult (New)

  • ChecksumResult class created to represent a “checksum_results” table row

DSpaceBitstreamInfo

  • Class has been removed, was a value object for Bitstream, uses bitstream now

ChecksumResultDAO => ChecksumResultService

ReporterDAO (Deleted)

  • Class removed, use MostRecentChecksumService & ChecksumHistoryService

BitstreamInfo => MostRecentChecksum

  • Has been refactored into “MostRecentChecksum” class

CheckerCommand

  • Constructor now requires a context

ChecksumHistory

  • getBitstreamId returns a UUID
  • getResult/setResult now require/return a ChecksumResult object instead of a string

ChecksumResultsCollector

  • collect() method now requires a context

HandleDispatcher

  • next() method returns a bitstream instead of integer
  • Constructor now uses context & handle instead of BitstreamInfoDAO & handle.

ListDispatcher => IteratorDispatcher

  • Renamed to IteratorDispatcher
  • Now uses an iterator instead of a list for a performance boost

LimitedCountDispatcher

  • next() method returns a bitstream instead of integer

LimitedDurationDispatcher

  • next() method returns a bitstream instead of integer

ResultsLogger

  • collect() now uses MostRecentChecksum instead of BitstreamInfo

ResultsPruner

  • getDefaultPruner(), getPruner(), constructor now require a context
  • addInterested() methods require a ChecksumResultCode object instead of string representation of this object.

SimpleReporter => SimpleReporterService

Factory usage: CheckerServiceFactory.getInstance().getSimpleReporterService();

  • getDeletedBitstreamReport(), getChangedChecksumReport(), getBitstreamNotFoundReport(), getNotToBeProcessedReport(), getUncheckedBitstreamsReport() methods all require a context.

SimpleReporterImpl => SimpleReporterServiceImpl

  • Is now used as a service & can be requested by using the factory from the checker package

SimpleDispatcher

  • Constructor now requires a context instead of BitstreamInfoDAO object
  • next() method now returns bitstream instead of integer