Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.syndication
Class SyndicationActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.syndication.SyndicationActionsBean
All Implemented Interfaces:
SyndicationActions

@Name(value="syndication")
@Scope(value=EVENT)
public class SyndicationActionsBean
extends Object
implements SyndicationActions

Syndication bean. This Seam component is used to:

  1. find the syndication URL of the current document or current search,
  2. retrieve the actual feed for a URL.
In the first case, we are called in the context of an existing Seam conversation, so an existing navigationContext can be looked up.

In the second case, the conversation is a new one.

Author:
Florent Guillaume

Field Summary
static String ATOM_TYPE
           
static String ATOM_TYPE_OLD
           
static String DEFAULT_TYPE
           
static String RSS_TYPE
           
 
Constructor Summary
SyndicationActionsBean()
           
 
Method Summary
 List<Action> getActionsForSyndication()
          Deprecated. Unused
 String getFullSyndicationDocumentUrl()
          Called by templates to get a documents feed URL.
 String getFullSyndicationDocumentUrlInAtom()
          Deprecated. Unused
 String getFullSyndicationDocumentUrlInRss()
          Deprecated. Unused
 String getFullSyndicationSearchUrl()
          Called by templates to get a search feed URL.
 String getFullSyndicationSearchUrlInAtom()
          Deprecated. Unused
 String getFullSyndicationSearchUrlInRss()
          Deprecated. Unused
 void getSyndicationDocument()
          Called by rss reader for document-based syndication.
 void getSyndicationSearch()
          Called by rss reader for search-based syndication.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RSS_TYPE

public static final String RSS_TYPE
See Also:
Constant Field Values

ATOM_TYPE_OLD

public static final String ATOM_TYPE_OLD
See Also:
Constant Field Values

ATOM_TYPE

public static final String ATOM_TYPE
See Also:
Constant Field Values

DEFAULT_TYPE

public static final String DEFAULT_TYPE
See Also:
Constant Field Values
Constructor Detail

SyndicationActionsBean

public SyndicationActionsBean()
Method Detail

getSyndicationDocument

@Begin(id="#{conversationIdGenerator.currentOrNewMainConversationId}",
       join=true)
public void getSyndicationDocument()
                            throws ClientException
Called by rss reader for document-based syndication.

Specified by:
getSyndicationDocument in interface SyndicationActions
Throws:
ClientException

getSyndicationSearch

@Begin(id="#{conversationIdGenerator.currentOrNewMainConversationId}",
       join=true)
public void getSyndicationSearch()
                          throws ClientException
Called by rss reader for search-based syndication.

Specified by:
getSyndicationSearch in interface SyndicationActions
Throws:
ClientException

getFullSyndicationDocumentUrl

@Factory(value="fullSyndicationDocumentUrl",
         scope=EVENT)
public String getFullSyndicationDocumentUrl()
Called by templates to get a documents feed URL.

Specified by:
getFullSyndicationDocumentUrl in interface SyndicationActions

getFullSyndicationDocumentUrlInRss

@Deprecated
public String getFullSyndicationDocumentUrlInRss()
Deprecated. Unused

Specified by:
getFullSyndicationDocumentUrlInRss in interface SyndicationActions

getFullSyndicationDocumentUrlInAtom

@Deprecated
public String getFullSyndicationDocumentUrlInAtom()
Deprecated. Unused

Specified by:
getFullSyndicationDocumentUrlInAtom in interface SyndicationActions

getFullSyndicationSearchUrl

@Factory(value="fullSyndicationSearchUrl",
         scope=EVENT)
public String getFullSyndicationSearchUrl()
Called by templates to get a search feed URL.

Specified by:
getFullSyndicationSearchUrl in interface SyndicationActions

getFullSyndicationSearchUrlInRss

@Deprecated
public String getFullSyndicationSearchUrlInRss()
Deprecated. Unused

Specified by:
getFullSyndicationSearchUrlInRss in interface SyndicationActions

getFullSyndicationSearchUrlInAtom

@Deprecated
public String getFullSyndicationSearchUrlInAtom()
Deprecated. Unused

Specified by:
getFullSyndicationSearchUrlInAtom in interface SyndicationActions

getActionsForSyndication

@Deprecated
@Begin(id="#{conversationIdGenerator.currentOrNewMainConversationId}",
       join=true)
public List<Action> getActionsForSyndication()
Deprecated. Unused

Specified by:
getActionsForSyndication in interface SyndicationActions

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.