M
M
mefisto666series2014-12-28 16:41:21
Java
mefisto666series, 2014-12-28 16:41:21

How to get files attached to a task in Alfresco?

In general, I started to deal with the alfresco, but I still don’t really understand how to get the files attached to the task. There are "samples" in the docks, if you can call it that, for getting a list of files, for example:

List<ChildAssociationRef> children = nodeService.getChildAssocs(companyHome)

but here the question arises: what is CompanyHome. To do this, let's look at the NodeService docs, and what we see there:
getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)

OK. But I already want to get all NodeRefs using getChildAssocs. Apparently, NodeRef is implied by a level an order of magnitude higher, like a folder, only NodeRef. Ok, but how, in turn, to get it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question