Class ContentPublicationService
java.lang.Object
io.meeds.social.publication.service.ContentPublicationService
Generic content publication Service, dispatching scheduled publication
operations to the
PublicationPlugin registered for each content
type. It owns no storage: each content type keeps its scheduling state in
its own domain.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<io.meeds.social.publication.plugin.PublicationPlugin> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.social.publication.plugin.PublicationPlugingetPublicationPlugin(String objectType) Publishes a scheduled content by dispatching to thePublicationPluginregistered for its content typevoidPublishes every content of every registered content type which scheduled publication time is due
-
Field Details
-
publicationPlugins
@Autowired(required=false) protected List<io.meeds.social.publication.plugin.PublicationPlugin> publicationPlugins
-
-
Constructor Details
-
ContentPublicationService
public ContentPublicationService()
-
-
Method Details
-
publishDueContents
public void publishDueContents()Publishes every content of every registered content type which scheduled publication time is due -
publish
Publishes a scheduled content by dispatching to thePublicationPluginregistered for its content type- Parameters:
objectType- the content object type, like 'activity'objectId- the content object id- Returns:
- the published object, or null when the content isn't a pending scheduled content (anymore)
-
getPublicationPlugin
- Parameters:
objectType- the content object type, like 'activity'- Returns:
- the registered
PublicationPluginfor the given content object type, or null when none
-