Package fr.becpg.repo.activity.remote
Class XmlActivityVisitor
java.lang.Object
fr.becpg.repo.activity.remote.XmlActivityVisitor
- All Implemented Interfaces:
RemoteActivityVisitor
XmlActivityVisitor class.
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.alfresco.service.cmr.repository.ContentServiceprivate static org.apache.commons.logging.Logprivate org.alfresco.service.namespace.NamespaceServiceprivate org.alfresco.service.cmr.repository.NodeServiceprivate org.alfresco.service.cmr.site.SiteService -
Constructor Summary
ConstructorsConstructorDescriptionXmlActivityVisitor(org.alfresco.service.cmr.site.SiteService siteService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.ContentService contentService) Constructor for XmlActivityVisitor. -
Method Summary
Modifier and TypeMethodDescriptiongetContentType.private Stringvoidvisit(List<org.alfresco.repo.domain.activities.ActivityFeedEntity> feedEntries, OutputStream result) visit.private voidwriteFeedEntry(XMLStreamWriter xmlw, org.alfresco.repo.domain.activities.ActivityFeedEntity feedEntry)
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
siteService
private org.alfresco.service.cmr.site.SiteService siteService -
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService -
namespaceService
private org.alfresco.service.namespace.NamespaceService namespaceService -
contentService
private org.alfresco.service.cmr.repository.ContentService contentService
-
-
Constructor Details
-
XmlActivityVisitor
public XmlActivityVisitor(org.alfresco.service.cmr.site.SiteService siteService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.ContentService contentService) Constructor for XmlActivityVisitor.
- Parameters:
siteService- aSiteServiceobjectnodeService- aNodeServiceobjectnamespaceService- aNamespaceServiceobjectcontentService- aContentServiceobject
-
-
Method Details
-
visit
public void visit(List<org.alfresco.repo.domain.activities.ActivityFeedEntity> feedEntries, OutputStream result) throws BeCPGException visit.
visit.
- Specified by:
visitin interfaceRemoteActivityVisitor- Parameters:
feedEntries- aListobjectresult- aOutputStreamobject- Throws:
BeCPGException- if any.
-
writeFeedEntry
private void writeFeedEntry(XMLStreamWriter xmlw, org.alfresco.repo.domain.activities.ActivityFeedEntity feedEntry) throws XMLStreamException - Parameters:
xmlw-feedEntry-- Throws:
XMLStreamException
-
toString
-
getContentType
getContentType.
- Specified by:
getContentTypein interfaceRemoteActivityVisitor- Returns:
- a
Stringobject
-