Class ShareFeedUtil


  • @Scriptable
    public final class ShareFeedUtil
    extends Object
    • Method Detail

      • deleteArchivedFeeds

        public static void deleteArchivedFeeds​(IProcessingContext p_ctx,
                                               long p_lDelay)
                                        throws Exception
        Delete archived feeds. For usage in Share administration workflow.
        Parameters:
        p_ctx - The processing context.
        p_lDelay - The delay. Delete feeds that have been archived since at least p_lDelay milliseconds.
        Throws:
        Exception
      • deleteFeedsMarkedAsDeleted

        public static void deleteFeedsMarkedAsDeleted​(IProcessingContext p_ctx,
                                                      long p_lDelay)
                                               throws Exception
        Delete feeds marked as deleted. For usage in Share administration workflow.
        Parameters:
        p_ctx - The processing context.
        p_lDelay - The delay. Delete feeds that have been marked as deleted since at least p_lDelay milliseconds.
        Throws:
        Exception
      • deleteFeedsFromDeletedGroups

        public static void deleteFeedsFromDeletedGroups​(IProcessingContext p_ctx)
                                                 throws Exception
        Delete feeds from deleted groups. For usage in Share administration workflow.
        Parameters:
        p_ctx - The processing context.
        Throws:
        Exception
      • deleteFeedsFromDeletedEvents

        public static void deleteFeedsFromDeletedEvents​(IProcessingContext p_ctx)
                                                 throws Exception
        Delete feeds from deleted events. For usage in Share administration workflow.
        Parameters:
        p_ctx - The processing context.
        Throws:
        Exception
      • deleteFeedsWithInvalidReferences

        public static void deleteFeedsWithInvalidReferences​(IProcessingContext p_ctx)
                                                     throws Exception
        Delete feeds with invalid references, i.e. feeds that reference non-existent data records.
        Parameters:
        p_ctx - The processing context.
        Throws:
        Exception
      • deleteFeeds

        public static void deleteFeeds​(IProcessingContext p_ctx,
                                       String p_strDataGroupGuid,
                                       Collection<String> p_recordIds,
                                       boolean p_bSeparateTransactionPerCycle)
                                throws Exception
        Delete feeds for data records of a data group for which plugins are defined.
        Parameters:
        p_ctx - The processing context.
        p_strDataGroupGuid - The data group.
        p_recordIds - The record IDs.
        p_bSeparateTransactionPerCycle - true to use a separate transaction per cycle, false otherwise.
        Throws:
        Exception
      • getFeedPluginRecordId

        public static String getFeedPluginRecordId​(IProcessingContext p_ctx,
                                                   Collection<String> p_fieldGuids,
                                                   Collection<Object> p_values)
                                            throws Exception
        Parameters:
        p_ctx - The processing context.
        p_fieldGuids - The collection of primary key field GUIDs of a plugin data record.
        p_values - The collection of values for the primary key fields.
        Returns:
        The plugin record ID in the format used in Share feeds.
        Throws:
        Exception