Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31534

Remove deprecated code since 7.10

    XMLWordPrintable

    Details

    • Upgrade notes:
      Hide

      Deprecated 7.10 code removal

      Contributions

      Extension point

      org.nuxeo.theme.styling.service.ThemeStylingService#pages does not take org.nuxeo.theme.styling.service.descriptors.ThemePage objects anymore. It now only takes org.nuxeo.theme.styling.service.descriptors.PageDescriptor
      org.nuxeo.theme.styling.service.ThemeStylingService#styles was removed as it is replaced by org.nuxeo.ecm.platform.WebResources#resources
      org.nuxeo.theme.styling.service.ThemeStylingService#resources was removed as it is replaced by org.nuxeo.ecm.platform.WebResources#resources

      Facets

      org.nuxeo.ecm.platform.picture.coreTypes#MultiviewPicture was removed, no replacement

      Constants

      org.nuxeo.ecm.core.api.event.CoreEventConstants.DOCUMENT_MODEL_ID was used for compatibility, replaced by DESTINATION_NAME
      org.nuxeo.ecm.core.api.pathsegment.PathSegmentServiceDefault.NUXEO_MAX_SEGMENT_SIZE_PROPERTY was used for compatibility, replaced by PathSegmentService#NUXEO_MAX_SEGMENT_SIZE_PROPERTY
      org.nuxeo.ecm.core.opencmis.impl.server.NuxeoRepository.NUXEO_VERSION_PROP was used for compatibility, replaced by org.nuxeo.common.Environment#DISTRIBUTION_VERSION
      PicturePreviewAdapterFactory.ORIGINAL_VIEW_NAME was removed, the Original view does not exist anymore. See NXP-16070
      org.nuxeo.ecm.core.io.download.DownloadService.NXBIGFILE was used for compatibility, replaced by #NXFILE

      Fields

      org.nuxeo.ecm.user.invite.UserRegistrationInfo.password The password should not be stored
      org.nuxeo.theme.styling.service.descriptors.PageDescriptor.appendStyles was removed, use resources instead
      org.nuxeo.theme.styling.service.descriptors.PageDescriptor.styles was removed, use resources instead

      Methods

      org.nuxeo.ecm.core.api.impl.blob.URLBlob.#URLBlob(URL, String, String, String) was removed. Use a separate #setFilename call instead
      org.nuxeo.ecm.core.api.security.ACP#addACL(String, ACL) was replaced by #addACL(ACL) to have correctly ordered acls. To force by-passing the order, use #addACL(int, ACL)
      org.nuxeo.ecm.core.api.security.impl.ACPImpl#addACL(String, ACL) was replaced by #addACL(ACL) to have correctly ordered acls. To force by-passing the order, use #addACL(int, ACL)
      org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter#getCommandLineService() was removed
      org.nuxeo.connect.client.vindoz.InstallAfterRestart#isVindozBox() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead
      org.nuxeo.ecm.admin.NuxeoCtlManager#isWindows() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead
      org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManager#initBatch(String, String) was replaced by #initBatch()
      org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent#initBatch(String, String) was replaced by #initBatch()
      org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService#getIconRenditionStream(String) was removed. The thumbnail is now a default rendition, see NXP-16662
      org.nuxeo.ecm.core.opencmis.impl.server.NuxeoObjectData#getIconRendition(DocumentModel, CallContext) was removed. The thumbnail is now a default rendition, see NXP-16662
      org.nuxeo.ecm.core.opencmis.impl.server.NuxeoObjectData#getIconStream(String, CallContext) was removed. The thumbnail is now a default rendition, see NXP-16662
      org.nuxeo.ecm.user.invite.UserRegistrationConfiguration#getUserInfoPasswordField() was removed
      org.nuxeo.ecm.user.invite.UserRegistrationInfo#getPassword() was removed
      org.nuxeo.ecm.user.invite.UserRegistrationInfo#setPassword(String) was removed
      org.nuxeo.ecm.directory.Directory#getReference(String) was replaced by #getReferences(String)
      org.nuxeo.ecm.directory.AbstractDirectory#getReference(String) was replaced by #getReferences(String)
      org.nuxeo.ecm.platform.filemanager.utils.FileManagerUtils#getBytesFromFile(File) was removed. Use org.apache.commons.io.IOUtils#toByteArray instead
      org.nuxeo.ecm.platform.picture.ImagingComponent#getImageMetadata(Blob) was removed. Use org.nuxeo.binary.metadata.api.BinaryMetadataService#readMetadata(Blob, boolean) instead
      org.nuxeo.ecm.platform.picture.api.ImagingService#getImageMetadata(Blob) was removed. Use org.nuxeo.binary.metadata.api.BinaryMetadataService#readMetadata(Blob, boolean) instead
      org.nuxeo.ecm.platform.picture.api.PictureConversion#getTitle() was replaced by #getId()
      org.nuxeo.ecm.platform.picture.api.PictureView#getContent() was replaced by #getBlob
      org.nuxeo.ecm.platform.picture.api.PictureViewImpl#getContent() was replaced by #getBlob
      org.nuxeo.ecm.platform.picture.api.adapters#AbstractPictureAdapter.setMetadata() was removed
      org.nuxeo.ecm.platform.rendition.service.RenditionService#getDeclaredRenditionDefinitionsForProviderType(String) was removed
      org.nuxeo.ecm.platform.rendition.service.RenditionCreator#getDetachedDendition() was replaced by #getDetachedRendition
      org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl#getDeclaredRenditionDefinitionsForProviderType(String) was removed
      org.nuxeo.ecm.platform.task.TaskService#createTask(CoreSession, NuxeoPrincipal, List<DocumentModel>, String, String, String, String, List<String>, boolean, String, String, Date, Map<String, String>, String, Map<String, Serializable>) was replaced by #createTaskForProcess(CoreSession, NuxeoPrincipal, List, String, String, String, String, String, List, boolean, String, String, Date, Map, String, Map)
      org.nuxeo.ecm.platform.task.core.service.TaskServiceImpl#createTask(CoreSession, NuxeoPrincipal, List<DocumentModel>, String, String, String, String, List<String>, boolean, String, String, Date, Map<String, String>, String, Map<String, Serializable>) was replaced by #createTaskForProcess(CoreSession, NuxeoPrincipal, List, String, String, String, String, String, List, boolean, String, String, Date, Map, String, Map)
      org.nuxeo.theme.styling.service.ThemeStylingServiceImpl#getResourceFromStyle(String) was removed
      org.nuxeo.theme.styling.service.descriptors.PageDescriptor#getAppendStyles() was removed. Use resources instead
      org.nuxeo.theme.styling.service.descriptors.PageDescriptor#getStyles() was removed. Use resources instead
      org.nuxeo.theme.styling.service.descriptors.PageDescriptor#setStyles(List<String>) was removed. Use resources instead
      org.nuxeo.theme.styling.service.descriptors.PageDescriptor#setAppendStyles(boolean) was removed. Use resources instead
      org.nuxeo.theme.styling.service.registries.PageRegistry#getThemePage(String) was replaced by #getPage(String)
      org.nuxeo.theme.styling.service.registries.PageRegistry#getThemePages() was replaced #getPages(String)
      org.nuxeo.theme.styling.service.registries.PageRegistry#getConfigurationApplyingToAllThemes() Use #getConfigurationApplyingToAll() instead
      org.nuxeo.ecm.restapi.server.jaxrs.blob.BlobObject#buildResponseFromBlob(Request, HttpServletRequest, Blob, String) was removed
      org.nuxeo.connect.update.task.guards.PlatformHelper#isWindows() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead
      org.nuxeo.connect.update.task.guards.PlatformHelper#isNotWindows() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead

      Classes

      org.nuxeo.ecm.core.api.DocumentException was removed
      org.nuxeo.ecm.automation.core.operations.document.DocumentPermissionHelper was removed. Methods to managing permissions are now on ACP / ACL
      org.nuxeo.ecm.automation.jaxrs.io.audit.LogEntryListWriter was removed. This marshaller was migrated to org.nuxeo.ecm.platform.audit.io.LogEntryListJsonWriter. To use it in JAX-RS, register the org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate to forward the JAX-RS marshalling to nuxeo-core-io
      org.nuxeo.ecm.automation.jaxrs.io.audit.LogEntryWriter was removed. This marshaller was migrated to org.nuxeo.ecm.platform.audit.io.LogEntryJsonWriter. To use it in JAX-RS, register the org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate to forward the JAX-RS marshalling to nuxeo-core-io
      org.nuxeo.ecm.automation.jaxrs.io.documents.JSONDocumentModelReader was removed. The Nuxeo JSON marshalling was migrated to nuxeo-core-io. This class is replaced by DocumentModelJsonReader which is registered by default and available to marshal DocumentModel from the Nuxeo Rest API thanks to the JAX-RS marshaller org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate.
      org.nuxeo.ecm.platform.picture.api.BlobHelper was removed. Use org.nuxeo.ecm.core.api.Blob#getFile directly
      org.nuxeo.ecm.platform.picture.api.PictureTemplate was replaced by org.nuxeo.ecm.platform.picture.api.PictureConversion
      org.nuxeo.ecm.platform.picture.magick.MagickExecutor was removed
      org.nuxeo.ecm.platform.web.common.UserAgentMatcher was replaced by org.nuxeo.common.utils.UserAgentMatcher
      org.nuxeo.ecm.platform.web.common.resources.AggregatedJSProvider was removed. Use webresources extension points instead
      org.nuxeo.theme.styling.service.descriptors.SimpleStyle was removed. Use the org.nuxeo.ecm.web.resources.core.ResourceDescriptor with flavor endpoint instead
      org.nuxeo.theme.styling.service.descriptors.ThemePage was removed
      org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.DocumentModelJsonReaderLegacy was removed as it used org.nuxeo.ecm.automation.jaxrs.io.documents.JSONDocumentModelReader

      Show
      Deprecated 7.10 code removal Contributions Extension point org.nuxeo.theme.styling.service.ThemeStylingService#pages does not take org.nuxeo.theme.styling.service.descriptors.ThemePage objects anymore. It now only takes org.nuxeo.theme.styling.service.descriptors.PageDescriptor org.nuxeo.theme.styling.service.ThemeStylingService#styles was removed as it is replaced by org.nuxeo.ecm.platform.WebResources#resources org.nuxeo.theme.styling.service.ThemeStylingService#resources was removed as it is replaced by org.nuxeo.ecm.platform.WebResources#resources Facets org.nuxeo.ecm.platform.picture.coreTypes#MultiviewPicture was removed, no replacement Constants org.nuxeo.ecm.core.api.event.CoreEventConstants.DOCUMENT_MODEL_ID was used for compatibility, replaced by DESTINATION_NAME org.nuxeo.ecm.core.api.pathsegment.PathSegmentServiceDefault.NUXEO_MAX_SEGMENT_SIZE_PROPERTY was used for compatibility, replaced by PathSegmentService#NUXEO_MAX_SEGMENT_SIZE_PROPERTY org.nuxeo.ecm.core.opencmis.impl.server.NuxeoRepository.NUXEO_VERSION_PROP was used for compatibility, replaced by org.nuxeo.common.Environment#DISTRIBUTION_VERSION PicturePreviewAdapterFactory.ORIGINAL_VIEW_NAME was removed, the Original view does not exist anymore. See NXP-16070 org.nuxeo.ecm.core.io.download.DownloadService.NXBIGFILE was used for compatibility, replaced by #NXFILE Fields org.nuxeo.ecm.user.invite.UserRegistrationInfo.password The password should not be stored org.nuxeo.theme.styling.service.descriptors.PageDescriptor.appendStyles was removed, use resources instead org.nuxeo.theme.styling.service.descriptors.PageDescriptor.styles was removed, use resources instead Methods org.nuxeo.ecm.core.api.impl.blob.URLBlob.#URLBlob(URL, String, String, String) was removed. Use a separate #setFilename call instead org.nuxeo.ecm.core.api.security.ACP#addACL(String, ACL) was replaced by #addACL(ACL) to have correctly ordered acls. To force by-passing the order, use #addACL(int, ACL) org.nuxeo.ecm.core.api.security.impl.ACPImpl#addACL(String, ACL) was replaced by #addACL(ACL) to have correctly ordered acls. To force by-passing the order, use #addACL(int, ACL) org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter#getCommandLineService() was removed org.nuxeo.connect.client.vindoz.InstallAfterRestart#isVindozBox() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead org.nuxeo.ecm.admin.NuxeoCtlManager#isWindows() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManager#initBatch(String, String) was replaced by #initBatch() org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent#initBatch(String, String) was replaced by #initBatch() org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService#getIconRenditionStream(String) was removed. The thumbnail is now a default rendition, see NXP-16662 org.nuxeo.ecm.core.opencmis.impl.server.NuxeoObjectData#getIconRendition(DocumentModel, CallContext) was removed. The thumbnail is now a default rendition, see NXP-16662 org.nuxeo.ecm.core.opencmis.impl.server.NuxeoObjectData#getIconStream(String, CallContext) was removed. The thumbnail is now a default rendition, see NXP-16662 org.nuxeo.ecm.user.invite.UserRegistrationConfiguration#getUserInfoPasswordField() was removed org.nuxeo.ecm.user.invite.UserRegistrationInfo#getPassword() was removed org.nuxeo.ecm.user.invite.UserRegistrationInfo#setPassword(String) was removed org.nuxeo.ecm.directory.Directory#getReference(String) was replaced by #getReferences(String) org.nuxeo.ecm.directory.AbstractDirectory#getReference(String) was replaced by #getReferences(String) org.nuxeo.ecm.platform.filemanager.utils.FileManagerUtils#getBytesFromFile(File) was removed. Use org.apache.commons.io.IOUtils#toByteArray instead org.nuxeo.ecm.platform.picture.ImagingComponent#getImageMetadata(Blob) was removed. Use org.nuxeo.binary.metadata.api.BinaryMetadataService#readMetadata(Blob, boolean) instead org.nuxeo.ecm.platform.picture.api.ImagingService#getImageMetadata(Blob) was removed. Use org.nuxeo.binary.metadata.api.BinaryMetadataService#readMetadata(Blob, boolean) instead org.nuxeo.ecm.platform.picture.api.PictureConversion#getTitle() was replaced by #getId() org.nuxeo.ecm.platform.picture.api.PictureView#getContent() was replaced by #getBlob org.nuxeo.ecm.platform.picture.api.PictureViewImpl#getContent() was replaced by #getBlob org.nuxeo.ecm.platform.picture.api.adapters#AbstractPictureAdapter.setMetadata() was removed org.nuxeo.ecm.platform.rendition.service.RenditionService#getDeclaredRenditionDefinitionsForProviderType(String) was removed org.nuxeo.ecm.platform.rendition.service.RenditionCreator#getDetachedDendition() was replaced by #getDetachedRendition org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl#getDeclaredRenditionDefinitionsForProviderType(String) was removed org.nuxeo.ecm.platform.task.TaskService#createTask(CoreSession, NuxeoPrincipal, List<DocumentModel>, String, String, String, String, List<String>, boolean, String, String, Date, Map<String, String>, String, Map<String, Serializable>) was replaced by #createTaskForProcess(CoreSession, NuxeoPrincipal, List, String, String, String, String, String, List, boolean, String, String, Date, Map, String, Map) org.nuxeo.ecm.platform.task.core.service.TaskServiceImpl#createTask(CoreSession, NuxeoPrincipal, List<DocumentModel>, String, String, String, String, List<String>, boolean, String, String, Date, Map<String, String>, String, Map<String, Serializable>) was replaced by #createTaskForProcess(CoreSession, NuxeoPrincipal, List, String, String, String, String, String, List, boolean, String, String, Date, Map, String, Map) org.nuxeo.theme.styling.service.ThemeStylingServiceImpl#getResourceFromStyle(String) was removed org.nuxeo.theme.styling.service.descriptors.PageDescriptor#getAppendStyles() was removed. Use resources instead org.nuxeo.theme.styling.service.descriptors.PageDescriptor#getStyles() was removed. Use resources instead org.nuxeo.theme.styling.service.descriptors.PageDescriptor#setStyles(List<String>) was removed. Use resources instead org.nuxeo.theme.styling.service.descriptors.PageDescriptor#setAppendStyles(boolean) was removed. Use resources instead org.nuxeo.theme.styling.service.registries.PageRegistry#getThemePage(String) was replaced by #getPage(String) org.nuxeo.theme.styling.service.registries.PageRegistry#getThemePages() was replaced #getPages(String) org.nuxeo.theme.styling.service.registries.PageRegistry#getConfigurationApplyingToAllThemes() Use #getConfigurationApplyingToAll() instead org.nuxeo.ecm.restapi.server.jaxrs.blob.BlobObject#buildResponseFromBlob(Request, HttpServletRequest, Blob, String) was removed org.nuxeo.connect.update.task.guards.PlatformHelper#isWindows() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead org.nuxeo.connect.update.task.guards.PlatformHelper#isNotWindows() was removed. Use org.apache.commons.lang3.SystemUtils#IS_OS_WINDOWS instead Classes org.nuxeo.ecm.core.api.DocumentException was removed org.nuxeo.ecm.automation.core.operations.document.DocumentPermissionHelper was removed. Methods to managing permissions are now on ACP / ACL org.nuxeo.ecm.automation.jaxrs.io.audit.LogEntryListWriter was removed. This marshaller was migrated to org.nuxeo.ecm.platform.audit.io.LogEntryListJsonWriter . To use it in JAX-RS, register the org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate to forward the JAX-RS marshalling to nuxeo-core-io org.nuxeo.ecm.automation.jaxrs.io.audit.LogEntryWriter was removed. This marshaller was migrated to org.nuxeo.ecm.platform.audit.io.LogEntryJsonWriter . To use it in JAX-RS, register the org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate to forward the JAX-RS marshalling to nuxeo-core-io org.nuxeo.ecm.automation.jaxrs.io.documents.JSONDocumentModelReader was removed. The Nuxeo JSON marshalling was migrated to nuxeo-core-io. This class is replaced by DocumentModelJsonReader which is registered by default and available to marshal DocumentModel from the Nuxeo Rest API thanks to the JAX-RS marshaller org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate . org.nuxeo.ecm.platform.picture.api.BlobHelper was removed. Use org.nuxeo.ecm.core.api.Blob#getFile directly org.nuxeo.ecm.platform.picture.api.PictureTemplate was replaced by org.nuxeo.ecm.platform.picture.api.PictureConversion org.nuxeo.ecm.platform.picture.magick.MagickExecutor was removed org.nuxeo.ecm.platform.web.common.UserAgentMatcher was replaced by org.nuxeo.common.utils.UserAgentMatcher org.nuxeo.ecm.platform.web.common.resources.AggregatedJSProvider was removed. Use webresources extension points instead org.nuxeo.theme.styling.service.descriptors.SimpleStyle was removed. Use the org.nuxeo.ecm.web.resources.core.ResourceDescriptor with flavor endpoint instead org.nuxeo.theme.styling.service.descriptors.ThemePage was removed org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.DocumentModelJsonReaderLegacy was removed as it used org.nuxeo.ecm.automation.jaxrs.io.documents.JSONDocumentModelReader
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #79, nxplatform #80
    • Story Points:
      2

      Description

      Remove all deprecated code since Nuxeo 7.10.

      Make sure the upgrade notes list:

      • The removed classes
      • The removed public/protected methods
      • The removed public/protected constants

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: