cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about basic repository concepts

bluearth
Champ in-the-making
Champ in-the-making
Hi all,

Can anyone enlighten me on the difference/purpose of the following repository concepts?
- Node
- node ref
- path
- node handle
- store
- StoreRef

Is node ref also the node's path?
Is node handle is the same as node ref?
Is store the same as the root of entire repository?

Reading through the wiki, I found repeated reference to them. Some has java class implementation (like Node and NodeRef), while  some others are, i think, just concepts (perhaps imore than java class(es)).

Thank you
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
A repository contains a set of stores.   For example in alfresco there is the workspace store and an archive store.

A store has a store ref which is simply a way of identifying a particular store, think of it as the store's name.   Look at the StoreRef class for details.

A store contains nodes which are identified by NodeRef.     You can obtain details of the node from its NodeRef.

Nodes can be linked together by associations.    A store has a single root node which has a path of '/' and all the other nodes are linked below the root node in a tree.   Following the associations gives the "path" of the node.

node handle is probably a synonym for NodeRef.

bluearth
Champ in-the-making
Champ in-the-making
A repository contains a set of stores.   For example in alfresco there is the workspace store and an archive store.
….

Thank you. That clarifies lots of things. But if i may, i still have some more questions :

- If NodeRef identifies node, is it unique? Say I have a cm:content node, is this node has one an only one NodeRef throughout its life time?
- There's also FileInfo and qualified names (QName). What are those? and how are those placed in relation with Node and Store?

Thanks again.