Class ShareFeedUtil
- java.lang.Object
-
- de.uplanet.lucy.server.share.businesslogic.feed.util.ShareFeedUtil
-
@Scriptable public final class ShareFeedUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deleteArchivedFeeds(IProcessingContext p_ctx, long p_lDelay)
Delete archived feeds.static void
deleteFeeds(IProcessingContext p_ctx, String p_strDataGroupGuid, Collection<String> p_recordIds, boolean p_bSeparateTransactionPerCycle)
Delete feeds for data records of a data group for which plugins are defined.static void
deleteFeedsFromDeletedEvents(IProcessingContext p_ctx)
Delete feeds from deleted events.static void
deleteFeedsFromDeletedGroups(IProcessingContext p_ctx)
Delete feeds from deleted groups.static void
deleteFeedsMarkedAsDeleted(IProcessingContext p_ctx, long p_lDelay)
Delete feeds marked as deleted.static void
deleteFeedsWithInvalidReferences(IProcessingContext p_ctx)
Delete feeds with invalid references, i.e.static String
getFeedPluginRecordId(IProcessingContext p_ctx, Collection<String> p_fieldGuids, Collection<Object> p_values)
-
-
-
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
-
-