Class ActivityStreamInputData
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.workspaces.events.activitystream.ActivityStreamInputData
-
- All Implemented Interfaces:
LogEnabled,InputData,Contextualizable,Serviceable
public class ActivityStreamInputData extends AbstractLogEnabled implements InputData, Serviceable, Contextualizable
This input data saxes the user's events on projects
-
-
Field Summary
Fields Modifier and Type Field Description private static int__RESULTS_DEFAULT_LIMITprivate ActivityStreamClientInteraction_activityStreamprivate Context_contextprivate ProjectManager_projectManagerprivate SiteManager_siteManager
-
Constructor Summary
Constructors Constructor Description ActivityStreamInputData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean_isActive()private void_saxList(ContentHandler contentHandler, List<Object> list, String tag)private void_saxMap(ContentHandler contentHandler, Map<String,Object> map, String tag)private void_saxMap(ContentHandler contentHandler, Map<String,Object> map, String tag, AttributesImpl attrs)private void_saxObject(ContentHandler contentHandler, Object item, String tag)voidcontextualize(Context context)booleanisCacheable(Site site, Page page)Returns true if thisInputDatais cacheable for the current site and if possible page.voidservice(ServiceManager smanager)voidtoSAX(ContentHandler contentHandler)Generates SAX events for providing data.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.web.inputdata.InputData
shouldBeCached
-
-
-
-
Field Detail
-
__RESULTS_DEFAULT_LIMIT
private static final int __RESULTS_DEFAULT_LIMIT
- See Also:
- Constant Field Values
-
_activityStream
private ActivityStreamClientInteraction _activityStream
-
_siteManager
private SiteManager _siteManager
-
_projectManager
private ProjectManager _projectManager
-
-
Constructor Detail
-
ActivityStreamInputData
public ActivityStreamInputData()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
isCacheable
public boolean isCacheable(Site site, Page page)
Description copied from interface:InputDataReturns true if thisInputDatais cacheable for the current site and if possible page.- Specified by:
isCacheablein interfaceInputData- Parameters:
site- the currentSite.page- the currentPage. Can be null.- Returns:
- true if this
InputDatais cacheable for the current site or page.
-
toSAX
public void toSAX(ContentHandler contentHandler) throws SAXException, ProcessingException
Description copied from interface:InputDataGenerates SAX events for providing data.- Specified by:
toSAXin interfaceInputData- Parameters:
contentHandler- the content handler to SAX into.- Throws:
SAXException- if an error occurs while SAXing.ProcessingException- if an error occurs during processing.
-
_isActive
private boolean _isActive()
-
_saxObject
private void _saxObject(ContentHandler contentHandler, Object item, String tag) throws SAXException
- Throws:
SAXException
-
_saxList
private void _saxList(ContentHandler contentHandler, List<Object> list, String tag) throws SAXException
- Throws:
SAXException
-
_saxMap
private void _saxMap(ContentHandler contentHandler, Map<String,Object> map, String tag) throws SAXException
- Throws:
SAXException
-
_saxMap
private void _saxMap(ContentHandler contentHandler, Map<String,Object> map, String tag, AttributesImpl attrs) throws SAXException
- Throws:
SAXException
-
-