Class AssetPublicationUtil


  • public class AssetPublicationUtil
    extends java.lang.Object
    • Constructor Detail

      • AssetPublicationUtil

        public AssetPublicationUtil()
    • 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)
      • 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)