Package com.day.cq.dam.commons.util
Class AssetPublicationUtil
- java.lang.Object
-
- com.day.cq.dam.commons.util.AssetPublicationUtil
-
public class AssetPublicationUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AssetPublicationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
formatTime(java.util.Locale locale, java.lang.Long time)
static java.util.Calendar
getLastReplicated(ValueMap properties)
static java.lang.String
getLastReplicatedBy(ValueMap properties)
static java.lang.String
getLastReplicatedByPreview(ValueMap properties)
static java.util.Calendar
getLastReplicatedPreview(ValueMap properties)
static java.lang.String
getLastReplicationAction(ValueMap properties)
static java.lang.String
getLastReplicationActionPreview(ValueMap properties)
static java.lang.String
getPendingStatus(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling)
static java.lang.String
getPendingStatusFromCache(HttpServletRequest request, Resource resource, I18n i18n)
static java.lang.String
getPendingStatusFromReplication(ReplicationStatus replicationStatus, I18n i18n)
Publication Related Methodsstatic java.lang.String
getPendingStatusOfPreview(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling)
static java.lang.String
getPendingStatusOfPreviewFromCache(HttpServletRequest request, Resource resource, I18n i18n)
static java.lang.String
getScheduledStatus(java.util.List<Workflow> scheduledWorkflows, I18n i18n, Resource resource, SlingHttpServletRequest httpServletRequest)
static java.util.List<Workflow>
getScheduledWorkflows(WorkflowStatus workflowStatus)
static java.util.List<Workflow>
getScheduledWorkflowsOfPreview(WorkflowStatus workflowStatus)
static boolean
isPreviewEnabled(SlingScriptHelper sling)
static boolean
isScheduledActivationWorkflow(Workflow workflow)
static boolean
isScheduledDeactivationWorkflow(Workflow workflow)
-
-
-
Method Detail
-
getPendingStatusFromReplication
public static java.lang.String getPendingStatusFromReplication(ReplicationStatus replicationStatus, I18n i18n)
Publication Related Methods
-
getPendingStatusFromCache
public static java.lang.String getPendingStatusFromCache(HttpServletRequest request, Resource resource, I18n i18n)
- Returns:
- returns the publication pending status.
-
getPendingStatusOfPreviewFromCache
public static java.lang.String getPendingStatusOfPreviewFromCache(HttpServletRequest request, Resource resource, I18n i18n)
- Returns:
- return preview publication pending status.
-
formatTime
public static java.lang.String formatTime(java.util.Locale locale, java.lang.Long time)
-
getLastReplicated
public static java.util.Calendar getLastReplicated(ValueMap properties)
-
getLastReplicatedPreview
public static java.util.Calendar getLastReplicatedPreview(ValueMap properties)
-
getLastReplicatedBy
public static java.lang.String getLastReplicatedBy(ValueMap properties)
-
getLastReplicatedByPreview
public static java.lang.String getLastReplicatedByPreview(ValueMap properties)
-
getLastReplicationAction
public static java.lang.String getLastReplicationAction(ValueMap properties)
-
getLastReplicationActionPreview
public static java.lang.String getLastReplicationActionPreview(ValueMap properties)
-
getPendingStatus
public static java.lang.String getPendingStatus(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling)
-
getPendingStatusOfPreview
public static java.lang.String getPendingStatusOfPreview(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling)
-
getScheduledStatus
public static java.lang.String getScheduledStatus(java.util.List<Workflow> scheduledWorkflows, I18n i18n, Resource resource, SlingHttpServletRequest httpServletRequest)
-
getScheduledWorkflows
public static java.util.List<Workflow> getScheduledWorkflows(WorkflowStatus workflowStatus)
-
getScheduledWorkflowsOfPreview
public static java.util.List<Workflow> getScheduledWorkflowsOfPreview(WorkflowStatus workflowStatus)
-
isScheduledActivationWorkflow
public static boolean isScheduledActivationWorkflow(Workflow workflow)
-
isScheduledDeactivationWorkflow
public static boolean isScheduledDeactivationWorkflow(Workflow workflow)
-
isPreviewEnabled
public static boolean isPreviewEnabled(SlingScriptHelper sling)
-
-