cancel
Showing results for 
Search instead for 
Did you mean: 

Using transparent layers

hbf
Champ on-the-rise
Champ on-the-rise
Hi all,

I know that transparent layers are currently implemented only for the AVM store. For part of an application I need exactly this functionality and am willing for this to store some content in a AVM store while the main content is in the normal store.

The content I need to store are NOT documents; rather, I have a hierarchy (folder, "files") where the files point to other documents (from a normal store) and might contain an additional text property or so. Basically, I need an admin interface to create transparent copies of folder hierarchies!

As I have not found any information on either the forum nor the wiki, I'd be very glad to receive answers to the following questions:

1. AVM supports transparent layers, with all operations described on the wiki page for transparent layers, right?

2. Just to clarify: The AVM Node Service API does not mention "transparent layer" at all, but deleteNode(), for example, is a transparent delete, assuming the underlying node comes from a transparent copy. Correct?

3. The Web Client's GUI for Web Projects uses transparent layers behind the scenes but does not offer a GUI to peform operations like "transparent copy", "transparent rename", etc. explicitly. Is this correct?

4. So if I have an AVM store, it currently comes without GUI support, right?

5. Can a association from an AVM node point to a node from the normal store? (If not, I'd have to save the nodeRef as a string, I guess.)

Many thanks for a reply.

Kaspar
1 REPLY 1

kevinr
Star Contributor
Star Contributor
You are mostly correct in your assumptions, the important ones being that the only GUI to the AVM is the WebProjects interface - but not very useful for generic DM operations on AVM objects. And AVM does not support associations.

Fortunately both the Alfresco Freemarker templating API and the Alfresco JavaScript API support many AVM operations - so you can write a WebScript (see the wiki) as your UI if you need it.
http://wiki.alfresco.com/wiki/JavaScript_API#AVM_API
http://wiki.alfresco.com/wiki/Template_Guide#AVM

Thanks,

Kevin