Package com.day.cq.dam.commons.util
Class AssetPublicationUtil
java.lang.Object
com.day.cq.dam.commons.util.AssetPublicationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatTime(Locale locale, Long time) static CalendargetLastReplicated(ValueMap properties) static StringgetLastReplicatedBy(ValueMap properties) static StringgetLastReplicatedByPreview(ValueMap properties) static CalendargetLastReplicatedPreview(ValueMap properties) static StringgetLastReplicationAction(ValueMap properties) static StringgetLastReplicationActionPreview(ValueMap properties) static StringgetPendingStatus(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling) static StringgetPendingStatusFromCache(HttpServletRequest request, Resource resource, I18n i18n) static StringgetPendingStatusFromReplication(ReplicationStatus replicationStatus, I18n i18n) Publication Related Methodsstatic StringgetPendingStatusOfPreview(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling) static StringgetPendingStatusOfPreviewFromCache(HttpServletRequest request, Resource resource, I18n i18n) static StringgetScheduledStatus(List<Workflow> scheduledWorkflows, I18n i18n, Resource resource, SlingHttpServletRequest httpServletRequest) getScheduledWorkflows(WorkflowStatus workflowStatus) getScheduledWorkflowsOfPreview(WorkflowStatus workflowStatus) static booleanstatic booleanisScheduledActivationWorkflow(Workflow workflow) static booleanisScheduledDeactivationWorkflow(Workflow workflow)
-
Constructor Details
-
AssetPublicationUtil
public AssetPublicationUtil()
-
-
Method Details
-
getPendingStatusFromReplication
public static String getPendingStatusFromReplication(ReplicationStatus replicationStatus, I18n i18n) Publication Related Methods -
getPendingStatusFromCache
public static String getPendingStatusFromCache(HttpServletRequest request, Resource resource, I18n i18n) - Returns:
- returns the publication pending status.
-
getPendingStatusOfPreviewFromCache
public static String getPendingStatusOfPreviewFromCache(HttpServletRequest request, Resource resource, I18n i18n) - Returns:
- return preview publication pending status.
-
formatTime
-
getLastReplicated
-
getLastReplicatedPreview
-
getLastReplicatedBy
-
getLastReplicatedByPreview
-
getLastReplicationAction
-
getLastReplicationActionPreview
-
getPendingStatus
public static String getPendingStatus(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling) -
getPendingStatusOfPreview
public static String getPendingStatusOfPreview(HttpServletRequest httpRequest, Resource resource, I18n i18n, SlingScriptHelper sling) -
getScheduledStatus
-
getScheduledWorkflows
-
getScheduledWorkflowsOfPreview
-
isScheduledActivationWorkflow
-
isScheduledDeactivationWorkflow
-
isPreviewEnabled
-