alfresco in few points - nodeservice tutorial
TRANSCRIPT
![Page 1: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/1.jpg)
What’s this Flower ?
Services Tutorial
![Page 2: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/2.jpg)
It’s Alfresco !
![Page 3: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/3.jpg)
An Open Source ECM Solution
![Page 4: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/4.jpg)
Where is the Problem ?
![Page 5: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/5.jpg)
Curious people who want to understand Alfresco…
![Page 6: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/6.jpg)
With lots of questions…(To express…)
![Page 7: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/7.jpg)
A possible solution…
![Page 8: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/8.jpg)
Simply a presenter with presentations about Alfresco
![Page 9: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/9.jpg)
with a few answers… (To verify)
![Page 10: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/10.jpg)
Let’s do it !
![Page 11: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/11.jpg)
But before, don’t forget…
![Page 12: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/12.jpg)
…THE principle…Everything is NODE
What a beautifulNode!!!
![Page 13: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/13.jpg)
Now, let’s go!
![Page 14: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/14.jpg)
OK, nodes are really cool… But what if I want to manage them ?
![Page 15: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/15.jpg)
Let's explore the notion of service…
![Page 16: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/16.jpg)
A Service ?
• Activity, carried out by someone or something, that serve a cause or help a person.
![Page 17: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/17.jpg)
What kind of services does Alfresco offer ?
![Page 18: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/18.jpg)
Services for managingNODES
Who are you to manage me ?
![Page 19: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/19.jpg)
How to access
services?
![Page 20: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/20.jpg)
With the Service Registry !
![Page 21: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/21.jpg)
Service Registry ?
![Page 22: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/22.jpg)
Yes ! THE service registry ! Introduction…
![Page 23: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/23.jpg)
Alfreso Service Registry
![Page 24: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/24.jpg)
…
![Page 25: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/25.jpg)
OK…Explanation…
![Page 26: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/26.jpg)
a registry ?• Official service or
place where you can find and call/use the services
• NB : an equivalent would be your phone book or directory!
![Page 27: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/27.jpg)
Hello, I’m Alfresco Service Registry
![Page 28: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/28.jpg)
I know and I have all Alfresco services !
![Page 29: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/29.jpg)
I’m NodeService !
Me, My name is dictionnaryService !
I am…
![Page 30: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/30.jpg)
I am…ActionService
AttributeServiceAuditService
AuthenticationServiceAuthorityService
AVMService
CategoryService
CheckOutCheckInService
ContentService
CopyService
DictionnaryService
FileFolderService
EditionService
ExporterServiceImporterService
MimeTypeService
MultilangualContentService
NodeService
LockService
RuleService
ScriptService
SearchService
TemplateService
TransactionServiceVersionService
WorkflowService
![Page 31: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/31.jpg)
![Page 32: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/32.jpg)
All right… Could you give us an example ?
![Page 33: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/33.jpg)
The NodeService of course !
![Page 34: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/34.jpg)
NodeService allows to…
Des propriétés
Des métadonnéesCREATE
![Page 35: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/35.jpg)
NodeService allows to…
Des propriétés
Des métadonnéesSET
![Page 36: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/36.jpg)
NodeService allows to…
Des propriétés
Des métadonnéesGET
![Page 37: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/37.jpg)
NodeService allows to…
Des propriétés
Des métadonnéesDELETE
![Page 38: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/38.jpg)
Properties
AssociationsNODES
Aspects
![Page 39: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/39.jpg)
Let’s Practice
![Page 40: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/40.jpg)
Calling Service Registry…
![Page 41: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/41.jpg)
Calling NodeService…
NS
![Page 42: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/42.jpg)
Using NodeService…
NS
Call me King of the Nodes
![Page 43: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/43.jpg)
NS
My skills
CREATE
DELETE GET
SET
![Page 44: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/44.jpg)
NS
On the first day, create a store
Workspace, SpaceStore
Yes, I am THE legendary RootNode!
ServiceRegistry.getNodeService.createStore(protocol,identifier)Java Code
TypeQname sys:store_root
![Page 45: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/45.jpg)
Here you are, Junior!
ServiceRegistry.getNodeService.createNode(parentRef, assocTypeQname, assocQname, nodeTypeQname, properties)
Java Code
Daddy!!!TypeQname cm:foldercm:Name Alfrescocm:title Alfresco
AssocTypeQname cm:containsAssocQName app:company_home
NS
Next, create a node
![Page 46: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/46.jpg)
ServiceRegistry.getNodeService.createNode(parentRef, assocTypeQname, assocQname, nodeTypeQname, properties)
Java Code
NS
Let’s go faster…
![Page 47: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/47.jpg)
The proof in Alfresco!
![Page 48: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/48.jpg)
Java Code
NS
Now, let’s take a closer look into it...
![Page 49: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/49.jpg)
But before, don’t forget…
![Page 50: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/50.jpg)
To identify and report a single node in a store, we
used…
UUID
![Page 51: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/51.jpg)
The concatenation of the store protocol, store name and node UUID creates…
ANodeRef
![Page 52: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/52.jpg)
ServiceRegistry.getNodeService.getStores ()Java Code
NS
So I was saying, let’s take a closer look!!!!!
Store
![Page 53: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/53.jpg)
ServiceRegistry.getNodeService.getRootNode (StoreRef)Java Code
NS
I’m sure…Somebody’s
watching me…
Now, the root node !
RootNode
![Page 54: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/54.jpg)
![Page 55: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/55.jpg)
ServiceRegistry.getNodeService.getChildAssocs (NodeRef)Java Code
NS
Next, Childassociation…
ChildAssocs
ParentRef
ChildRef
![Page 56: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/56.jpg)
![Page 57: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/57.jpg)
ServiceRegistry.getNodeService.getChildAssocs(NodeRef)Java Code
NS
Another childAssociation…
ChildAssocs
0 1 2 3
ParentRef
ChildRef
![Page 58: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/58.jpg)
![Page 59: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/59.jpg)
ServiceRegistry.getNodeService.getParentAssocs(NodeRef)Java Code
NS
And if we look the other way round…
ParentAssocs
ParentRef
ChildRef
![Page 60: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/60.jpg)
![Page 61: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/61.jpg)
ServiceRegistry.getNodeService.getParentAssocs(NodeRef)Java Code
NS
Again… the other way round…
ParentAssocs
And me? I’m not enough interesting
for you ?
![Page 62: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/62.jpg)
![Page 63: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/63.jpg)
ServiceRegistry.getNodeService.getProperties(NodeRef)Java Code
NS
Now, let’s look at this presumptuous node in more details…
Properties
Finally !! My moment of glory !
![Page 64: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/64.jpg)
![Page 65: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/65.jpg)
ServiceRegistry.getNodeService.getProperty(NodeRef,QName)Java Code
NS
The value of title property…
QName cm:title
![Page 66: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/66.jpg)
![Page 67: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/67.jpg)
ServiceRegistry.getNodeService.getProperty(NodeRef,QName)Java Code
NS
Node Type…
QName cm:type
Have you the right to do this ?
![Page 68: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/68.jpg)
![Page 69: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/69.jpg)
ServiceRegistry.getNodeService.setProperty(NodeRef,QName)Java Code
NS
Now, have some fun! Let’s change!
QName cm:description
What ?????
![Page 70: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/70.jpg)
The proof in Alfresco
![Page 71: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/71.jpg)
![Page 72: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/72.jpg)
ServiceRegistry.getNodeService.removeChildAssociation(ChildAssociationRef)
Java Code
NS
Eh eh… DESTRUCTION!!!
I feel that I will find myself all alone…
![Page 73: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/73.jpg)
ServiceRegistry.getNodeService.addChild(parentRef, childRef, assocTypeQname, qname)
Java Code
NS
And reconstruction…
You are my dad ??
![Page 74: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/74.jpg)
![Page 75: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/75.jpg)
Ok, we are done for today !
![Page 76: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/76.jpg)
Now , it’s up to you to discover the rest of
services!
![Page 77: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/77.jpg)
And go your own way.
![Page 78: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/78.jpg)
A last question please….!
![Page 79: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/79.jpg)
So finally Alfresco is a package of services to manage nodes?
![Page 80: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/80.jpg)
Yes !! It’s as simple as that…If we see it as a bigger picture
![Page 81: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/81.jpg)
Any questions ???
![Page 82: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/82.jpg)
For the next meeting maybe…
![Page 83: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/83.jpg)
To be continued…
![Page 84: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/84.jpg)
What if I want to share the content?
![Page 85: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/85.jpg)
You can use protocols …
![Page 86: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/86.jpg)
So if you want to learn…
![Page 87: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/87.jpg)
…To go fast…
![Page 88: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/88.jpg)
…and to reach your goals …
![Page 89: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/89.jpg)
Choose Open Source ECM
![Page 90: Alfresco in few points - NodeService Tutorial](https://reader033.vdocuments.mx/reader033/viewer/2022060109/55580152d8b42a200d8b5271/html5/thumbnails/90.jpg)
Alfresco in few points…
By JM.PASCAL
www.opensourceecm.fr&
www.open-source-ecm.com