Package org.alfresco.repo.event2
Class NodeResourceHelper
- java.lang.Object
-
- org.alfresco.repo.event2.NodeResourceHelper
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class NodeResourceHelper extends Object implements org.springframework.beans.factory.InitializingBean
Helper forNodeResourceobjects.- Author:
- Jamal Kaabi-Mofrad
-
-
Field Summary
Fields Modifier and Type Field Description protected DictionaryServicedictionaryServiceprotected EventFilterRegistryeventFilterRegistryprotected NamespaceServicenamespaceServiceprotected NodeServicenodeServiceprotected PersonServicepersonService
-
Constructor Summary
Constructors Constructor Description NodeResourceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.alfresco.repo.event.v1.model.NodeResource.BuildercreateNodeResourceBuilder(NodeRef nodeRef)org.alfresco.repo.event.v1.model.ContentInfogetContentInfo(Map<QName,Serializable> props)Set<String>getMappedAspects(NodeRef nodeRef)QNamegetNodeType(NodeRef nodeRef)List<String>getPrimaryHierarchy(NodeRef nodeRef, boolean showLeaf)Map<QName,Serializable>getProperties(NodeRef nodeRef)SerializablegetProperty(NodeRef nodeRef, QName qName)StringgetQNamePrefixString(QName k)Returns the QName in the format prefix:local, but in the exceptional case where there is no registered prefix returns it in the form {uri}local.org.alfresco.repo.event.v1.model.UserInfogetUserInfo(String userName)ZonedDateTimegetZonedDateTime(Date date)Set<String>mapToNodeAspects(Collection<QName> aspects)Map<String,Serializable>mapToNodeProperties(Map<QName,Serializable> props)booleannodeExists(NodeRef nodeRef)voidsetDictionaryService(DictionaryService dictionaryService)voidsetEventFilterRegistry(EventFilterRegistry eventFilterRegistry)voidsetNamespaceService(NamespaceService namespaceService)voidsetNodeService(NodeService nodeService)voidsetPersonService(PersonService personService)
-
-
-
Field Detail
-
nodeService
protected NodeService nodeService
-
dictionaryService
protected DictionaryService dictionaryService
-
personService
protected PersonService personService
-
eventFilterRegistry
protected EventFilterRegistry eventFilterRegistry
-
namespaceService
protected NamespaceService namespaceService
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
-
setPersonService
public void setPersonService(PersonService personService)
-
setEventFilterRegistry
public void setEventFilterRegistry(EventFilterRegistry eventFilterRegistry)
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
-
createNodeResourceBuilder
public org.alfresco.repo.event.v1.model.NodeResource.Builder createNodeResourceBuilder(NodeRef nodeRef)
-
nodeExists
public boolean nodeExists(NodeRef nodeRef)
-
mapToNodeProperties
public Map<String,Serializable> mapToNodeProperties(Map<QName,Serializable> props)
-
getContentInfo
public org.alfresco.repo.event.v1.model.ContentInfo getContentInfo(Map<QName,Serializable> props)
-
getUserInfo
public org.alfresco.repo.event.v1.model.UserInfo getUserInfo(String userName)
-
getZonedDateTime
public ZonedDateTime getZonedDateTime(Date date)
-
getQNamePrefixString
public String getQNamePrefixString(QName k)
Returns the QName in the format prefix:local, but in the exceptional case where there is no registered prefix returns it in the form {uri}local.- Parameters:
k- QName- Returns:
- a String representing the QName in the format prefix:local or {uri}local.
-
mapToNodeAspects
public Set<String> mapToNodeAspects(Collection<QName> aspects)
-
getProperty
public Serializable getProperty(NodeRef nodeRef, QName qName)
-
getProperties
public Map<QName,Serializable> getProperties(NodeRef nodeRef)
-
-