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

Remove deprecated code since 8.10

    XMLWordPrintable

    Details

    • Upgrade notes:
      Hide

      Deprecated 8.10 code removal

      Constants

      org.nuxeo.ecm.platform.importer.source.FileWithIndividualMetadasSourceNode.PROPERTY_FILE_SUFIX was replaced by PROPERTY_FILE_SUFFIX
      org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.DEFAULT_START_PAGE was replaced by LoginScreenHelper#getStartupPagePath()

      Methods

      org.nuxeo.ecm.core.api.CoreSession#isStateSharedByAllThreadSessions() was removed as it always returns true by design
      org.nuxeo.ecm.core.api.CoreSession#copy(DocumentRef, DocumentRef, String, boolean) was replaced by #copy(DocumentRef, DocumentRef, String, CopyOption...)
      org.nuxeo.ecm.core.api.CoreSession#copy(List<DocumentRef>, DocumentRef, boolean) was replaced by #copy(List, DocumentRef, CopyOption...)
      org.nuxeo.ecm.core.api.CoreSession#copyProxyAsDocument(DocumentRef, DocumentRef, String, boolean) was replaced by #copyProxyAsDocument(DocumentRef, DocumentRef, String, CopyOption...)
      org.nuxeo.ecm.core.api.CoreSession#copyProxyAsDocument(List<DocumentRef>, DocumentRef, boolean) was replaced by #copyProxyAsDocument(List, DocumentRef, CopyOption...)
      org.nuxeo.ecm.core.api.DocumentModel#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts()
      org.nuxeo.ecm.core.api.DocumentModel#getParts() was removed
      org.nuxeo.ecm.core.api.DocumentModel.getParts() is internal. Use direct org.nuxeo.ecm.core.api.model.Property getters instead
      org.nuxeo.ecm.core.api.IterableQueryResult#isLife() was replaced by #mustBeClosed()
      org.nuxeo.ecm.core.api.impl.DocumentModelImpl#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts()
      org.nuxeo.ecm.core.api.impl.SimpleDocumentModel#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts()
      org.nuxeo.ecm.core.api.impl.SimpleDocumentModel#getParts() was removed
      org.nuxeo.ecm.core.api.model.DeltaLong#DeltaLong(long, long) was replaced by #DeltaLong(Long, long)
      org.nuxeo.ecm.core.api.model.DeltaLong#deltaOrLong(Number, long) was replaced by #valueOf(Number, long)
      org.nuxeo.ecm.core.event.impl.ShallowDocumentModel#getPart(String) was removed
      org.nuxeo.ecm.core.event.impl.ShallowDocumentModel#getParts() was removed
      org.nuxeo.ecm.core.event.impl.ShallowDocumentModel#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts() but is unsupported
      org.nuxeo.ecm.core.work.AbstractWork#initSession() was replaced by #openSystemSession()
      org.nuxeo.ecm.core.work.AbstractWork#initSession(String) was replaced by #openSystemSession() to open a session on the configured repository name, otherwise use CoreInstance#getCoreSessionSystem(String)
      org.nuxeo.ecm.core.storage.dbs.DBSSession.DBSQueryResult#isLife() was replaced by #mustBeClosed()
      org.nuxeo.ecm.core.storage.sql.jdbc.ResultSetQueryResult#isLife() was replaced by #mustBeClosed()
      org.nuxeo.ecm.core.api.AbstractSession#copy(DocumentRef, DocumentRef, String, boolean) was replaced by #copy(DocumentRef, DocumentRef, String, CopyOption...)
      org.nuxeo.ecm.core.api.AbstractSession#copy(List<DocumentRef>, DocumentRef, boolean) was replaced by #copy(List, DocumentRef, CopyOption...)
      org.nuxeo.ecm.core.api.AbstractSession#copyProxyAsDocument(DocumentRef, DocumentRef, String, boolean) was replaced by #copyProxyAsDocument(DocumentRef, DocumentRef, String, CopyOption...)
      org.nuxeo.ecm.core.api.AbstractSession#copyProxyAsDocument(List<DocumentRef>, DocumentRef, boolean) was replaced by #copyProxyAsDocument(List, DocumentRef, CopyOption...)
      org.nuxeo.ecm.core.api.local.LocalSession#isStateSharedByAllThreadSessions() was removed as it always returns true by design
      org.nuxeo.ecm.core.opencmis.impl.server.CMISQLtoNXQL.NXQLtoCMISIterableQueryResult#isLife() was replaced by #mustBeClosed()
      org.nuxeo.ecm.csv.core.CSVImporterDocumentFactory#exists(CoreSession, String, String, String, Map<String, Serializable>) was replaced by #exists(CoreSession, String, String, Map<String, Serializable>)
      org.nuxeo.ecm.csv.core.DefaultCSVImporterDocumentFactory#exists(CoreSession, String, String, String, Map<String, Serializable>) was replaced by #exists(CoreSession, String, String, Map<String, Serializable>)
      org.nuxeo.elasticsearch.api.EsIterableQueryResultImpl#isLife() was replaced by #mustBeClosed()
      org.nuxeo.elasticsearch.core.EsResultSetImpl#isLife() was replaced by #mustBeClosed()
      org.nuxeo.ecm.permissions.PermissionListener#handleReplaceACE(DocumentEventContext, String, ACE, ACE) was removed
      org.nuxeo.ecm.platform.audit.api.AuditReader#getLogEntriesFor(String) was replaced by #getLogEntriesFor(String, String)
      org.nuxeo.ecm.platform.audit.service.BaseLogEntryProvider#getLogEntriesFor(String) was replaced by #getLogEntriesFor(String, String)
      org.nuxeo.ecm.platform.audit.service.BaseLogEntryProvider#getLogEntriesFor(String, Map<String, FilterMapEntry>, boolean) was removed. If you use the org.nuxeo.ecm.platform.audit.service.LogEntryProvider implementation, you can use org.nuxeo.ecm.platform.audit.service.LogEntryProvider#queryLogs(QueryBuilder)
      org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend#getLogEntriesFor(String) was replaced by #getLogEntriesFor(String, String)
      org.nuxeo.ecm.platform.audit.service.LogEntryProvider#getLogEntriesFor(String) was replaced by #queryLogs(QueryBuilder)
      org.nuxeo.ecm.platform.audit.service.LogEntryProvider#getLogEntriesFor(String, Map<String, FilterMapEntry>, boolean) was replaced by #queryLogs(QueryBuilder)
      org.nuxeo.ecm.platform.importer.source.FileWithIndividualMetadasSourceNode#isPropertyFile(File) was removed
      org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl#storeRendition(DocumentModel, Rendition, String) was removed

      Classes

      org.nuxeo.ecm.core.api.DataModelMap was removed. Use Map<String, DataModel>
      org.nuxeo.ecm.core.api.impl.DataModelMapImpl was removed. Use Map<String, DataModel>
      org.nuxeo.ecm.platform.routing.core.io.JsonEncodeDecodeUtils was replaced by org.nuxeo.ecm.core.io.registry.Writer#write(Object, Class, java.lang.reflect.Type, javax.ws.rs.core.MediaType, java.io.OutputStream) See how org.nuxeo.ecm.platform.routing.core.io.DocumentRouteWriter#writeVariables(org.nuxeo.ecm.platform.routing.api.DocumentRoute, JsonGenerator, org.nuxeo.ecm.core.io.registry.MarshallerRegistry, org.nuxeo.ecm.core.io.registry.context.RenderingContext, SchemaManager) uses it
      org.nuxeo.ecm.platform.routing.core.io.TaskCompletionRequestLegacyJsonReader was replaced by TaskCompletionRequestJsonReader
      org.nuxeo.ecm.platform.routing.core.io.WorkflowRequestLegacyJsonReader was replaced by WorkflowRequestJsonReader

      Show
      Deprecated 8.10 code removal Constants org.nuxeo.ecm.platform.importer.source.FileWithIndividualMetadasSourceNode.PROPERTY_FILE_SUFIX was replaced by PROPERTY_FILE_SUFFIX org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.DEFAULT_START_PAGE was replaced by LoginScreenHelper#getStartupPagePath() Methods org.nuxeo.ecm.core.api.CoreSession#isStateSharedByAllThreadSessions() was removed as it always returns true by design org.nuxeo.ecm.core.api.CoreSession#copy(DocumentRef, DocumentRef, String, boolean) was replaced by #copy(DocumentRef, DocumentRef, String, CopyOption...) org.nuxeo.ecm.core.api.CoreSession#copy(List<DocumentRef>, DocumentRef, boolean) was replaced by #copy(List, DocumentRef, CopyOption...) org.nuxeo.ecm.core.api.CoreSession#copyProxyAsDocument(DocumentRef, DocumentRef, String, boolean) was replaced by #copyProxyAsDocument(DocumentRef, DocumentRef, String, CopyOption...) org.nuxeo.ecm.core.api.CoreSession#copyProxyAsDocument(List<DocumentRef>, DocumentRef, boolean) was replaced by #copyProxyAsDocument(List, DocumentRef, CopyOption...) org.nuxeo.ecm.core.api.DocumentModel#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts() org.nuxeo.ecm.core.api.DocumentModel#getParts() was removed org.nuxeo.ecm.core.api.DocumentModel.getParts() is internal. Use direct org.nuxeo.ecm.core.api.model.Property getters instead org.nuxeo.ecm.core.api.IterableQueryResult#isLife() was replaced by #mustBeClosed() org.nuxeo.ecm.core.api.impl.DocumentModelImpl#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts() org.nuxeo.ecm.core.api.impl.SimpleDocumentModel#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts() org.nuxeo.ecm.core.api.impl.SimpleDocumentModel#getParts() was removed org.nuxeo.ecm.core.api.model.DeltaLong#DeltaLong(long, long) was replaced by #DeltaLong(Long, long) org.nuxeo.ecm.core.api.model.DeltaLong#deltaOrLong(Number, long) was replaced by #valueOf(Number, long) org.nuxeo.ecm.core.event.impl.ShallowDocumentModel#getPart(String) was removed org.nuxeo.ecm.core.event.impl.ShallowDocumentModel#getParts() was removed org.nuxeo.ecm.core.event.impl.ShallowDocumentModel#setPropertyObject(Property) was added to allow removal of org.nuxeo.ecm.core.api.DocumentModel#getParts() but is unsupported org.nuxeo.ecm.core.work.AbstractWork#initSession() was replaced by #openSystemSession() org.nuxeo.ecm.core.work.AbstractWork#initSession(String) was replaced by #openSystemSession() to open a session on the configured repository name, otherwise use CoreInstance#getCoreSessionSystem(String) org.nuxeo.ecm.core.storage.dbs.DBSSession.DBSQueryResult#isLife() was replaced by #mustBeClosed() org.nuxeo.ecm.core.storage.sql.jdbc.ResultSetQueryResult#isLife() was replaced by #mustBeClosed() org.nuxeo.ecm.core.api.AbstractSession#copy(DocumentRef, DocumentRef, String, boolean) was replaced by #copy(DocumentRef, DocumentRef, String, CopyOption...) org.nuxeo.ecm.core.api.AbstractSession#copy(List<DocumentRef>, DocumentRef, boolean) was replaced by #copy(List, DocumentRef, CopyOption...) org.nuxeo.ecm.core.api.AbstractSession#copyProxyAsDocument(DocumentRef, DocumentRef, String, boolean) was replaced by #copyProxyAsDocument(DocumentRef, DocumentRef, String, CopyOption...) org.nuxeo.ecm.core.api.AbstractSession#copyProxyAsDocument(List<DocumentRef>, DocumentRef, boolean) was replaced by #copyProxyAsDocument(List, DocumentRef, CopyOption...) org.nuxeo.ecm.core.api.local.LocalSession#isStateSharedByAllThreadSessions() was removed as it always returns true by design org.nuxeo.ecm.core.opencmis.impl.server.CMISQLtoNXQL.NXQLtoCMISIterableQueryResult#isLife() was replaced by #mustBeClosed() org.nuxeo.ecm.csv.core.CSVImporterDocumentFactory#exists(CoreSession, String, String, String, Map<String, Serializable>) was replaced by #exists(CoreSession, String, String, Map<String, Serializable>) org.nuxeo.ecm.csv.core.DefaultCSVImporterDocumentFactory#exists(CoreSession, String, String, String, Map<String, Serializable>) was replaced by #exists(CoreSession, String, String, Map<String, Serializable>) org.nuxeo.elasticsearch.api.EsIterableQueryResultImpl#isLife() was replaced by #mustBeClosed() org.nuxeo.elasticsearch.core.EsResultSetImpl#isLife() was replaced by #mustBeClosed() org.nuxeo.ecm.permissions.PermissionListener#handleReplaceACE(DocumentEventContext, String, ACE, ACE) was removed org.nuxeo.ecm.platform.audit.api.AuditReader#getLogEntriesFor(String) was replaced by #getLogEntriesFor(String, String) org.nuxeo.ecm.platform.audit.service.BaseLogEntryProvider#getLogEntriesFor(String) was replaced by #getLogEntriesFor(String, String) org.nuxeo.ecm.platform.audit.service.BaseLogEntryProvider#getLogEntriesFor(String, Map<String, FilterMapEntry>, boolean) was removed. If you use the org.nuxeo.ecm.platform.audit.service.LogEntryProvider implementation, you can use org.nuxeo.ecm.platform.audit.service.LogEntryProvider#queryLogs(QueryBuilder) org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend#getLogEntriesFor(String) was replaced by #getLogEntriesFor(String, String) org.nuxeo.ecm.platform.audit.service.LogEntryProvider#getLogEntriesFor(String) was replaced by #queryLogs(QueryBuilder) org.nuxeo.ecm.platform.audit.service.LogEntryProvider#getLogEntriesFor(String, Map<String, FilterMapEntry>, boolean) was replaced by #queryLogs(QueryBuilder) org.nuxeo.ecm.platform.importer.source.FileWithIndividualMetadasSourceNode#isPropertyFile(File) was removed org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl#storeRendition(DocumentModel, Rendition, String) was removed Classes org.nuxeo.ecm.core.api.DataModelMap was removed. Use Map<String, DataModel> org.nuxeo.ecm.core.api.impl.DataModelMapImpl was removed. Use Map<String, DataModel> org.nuxeo.ecm.platform.routing.core.io.JsonEncodeDecodeUtils was replaced by org.nuxeo.ecm.core.io.registry.Writer#write(Object, Class, java.lang.reflect.Type, javax.ws.rs.core.MediaType, java.io.OutputStream) See how org.nuxeo.ecm.platform.routing.core.io.DocumentRouteWriter#writeVariables(org.nuxeo.ecm.platform.routing.api.DocumentRoute, JsonGenerator, org.nuxeo.ecm.core.io.registry.MarshallerRegistry, org.nuxeo.ecm.core.io.registry.context.RenderingContext, SchemaManager) uses it org.nuxeo.ecm.platform.routing.core.io.TaskCompletionRequestLegacyJsonReader was replaced by TaskCompletionRequestJsonReader org.nuxeo.ecm.platform.routing.core.io.WorkflowRequestLegacyJsonReader was replaced by WorkflowRequestJsonReader
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #80, nxplatform #81
    • Story Points:
      3

      Description

      Remove all deprecated code since Nuxeo 8.10.

      Make sure the upgrade notes list:

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: