Skip to content

Commit

Permalink
[fix/MNT-24172-fixRendition2PdfIndex] fix for rendition2 recreation
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-singh4 committed Jan 10, 2025
1 parent b18d9e7 commit 29c2f47
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 156 deletions.
18 changes: 9 additions & 9 deletions data-model/src/main/java/org/alfresco/model/RenditionModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Alfresco Data model classes
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2025 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
Expand All @@ -25,7 +25,7 @@
*/
package org.alfresco.model;

import org.alfresco.api.AlfrescoPublicApi;
import org.alfresco.api.AlfrescoPublicApi;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;

Expand All @@ -36,20 +36,17 @@
public interface RenditionModel
{
/**
* Aspect added to renditions created by RenditionService2.
* Initially used to avoid duplicate rendition requests via the original RenditionService and the new one.
* Aspect added to renditions created by RenditionService2. Initially used to avoid duplicate rendition requests via the original RenditionService and the new one.
*/
static final QName ASPECT_RENDITION2 = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "rendition2");

/**
* The source node's content hash code. Used to work out if a transform should replace the existing rendition,
* as transforms may be provided out of order.
* The source node's content hash code. Used to work out if a transform should replace the existing rendition, as transforms may be provided out of order.
*/
static final QName PROP_RENDITION_CONTENT_HASH_CODE = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "contentHashCode");

/**
* @deprecated This rendition aspect will no longger be needed once the original RenditionService has been
* replaced by RenditionService2 which additionally uses a rendition2 aspect to mark its renditions.
* @deprecated This rendition aspect will no longger be needed once the original RenditionService has been replaced by RenditionService2 which additionally uses a rendition2 aspect to mark its renditions.
*/
@Deprecated
static final QName ASPECT_RENDITION = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "rendition");
Expand All @@ -68,9 +65,12 @@ public interface RenditionModel

static final QName ASPECT_RENDITIONED = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "renditioned");
static final QName ASSOC_RENDITION = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "rendition");

/**
* @since 4.0.1
*/
static final QName ASPECT_PREVENT_RENDITIONS = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "preventRenditions");

static final QName ASPECT_VISIBLE_RENDITION2 = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "visibleRendition2");

}
Loading

0 comments on commit 29c2f47

Please sign in to comment.