Thursday, December 16, 2010

Alexis Texas With Blak

visibility Repository Alfresco Share 3.4

Up to version 3.3 access to the full by Repository
Share
was partially limited. From 3.2 onwards it is enabled navigation of the entire repository, but only by 3.4 Release Repository and not only on collaboration sites, using the Forms Engine . Share the UI is becoming central to work with Alfresco, with version 3.4, are completing the missing pieces of this process, the base has meant a change in technology: from JSF used to the old Explorer, on Spring Surf , which is the framework on which the Share is built. The restructuring process of the product in 3.4 is focused, among other things, to make the job easier interface customization, which used to take steps at times laborious. In this short article I would like to quickly demonstrate a simple but common use case:

Restrict access to the entire document to the Repository solo utente Admin, lasciando agli altri utenti la possibilità di vedere solo siti di collaborazione a cui sono iscritti ed autorizzati. Questo requisito risponde all'esigenza di mantenere un alto livello di separazione tra i diversi siti di collaborazione
, senza arrivare al punto di dover attivare un più complesso partizionamento completo tramite configurazione
multi-tenant
.
Ad esempio, supponiamo di voler creare dei siti Share per differenti dipartimenti aziendali, minimizzando l'intersezione di contenuti tra i vari siti. Però vorremmo dare la possibilità all'amministratore, e solo a lui, di poter vedere tutto, senza eccezioni. In questo caso proviamo a personalizzare Share the header, follow these instructions
. I want to default, logging in as Admin, it appears the button "Repository", and if I truly like someone, I want the button is not present on the menu bar.



Then return to the Share not as Admin, but as a simple user:


Now I check the button "Repository" is no longer available for the normal user
mturatti
:

In previous versions of Alfresco to get this simple but important result, was forced to put his hand to some Freemarker template

, and now just working on a single configuration file.
\u0026lt;Config>
copy the item and its contents from the file share-config.xml
present in tomcat / webapps / share / WEB -INF/classes/alfresco
.
    paste the file into the share-config-
  1. custom.xml present in tomcat / shared / classes / alfresco / web-extension . Add replace = "true" in the element
  2. \u0026lt;Config> , which becomes \u0026lt;config replace="true">
  3. Change an item in \u0026lt;headers> \u0026lt;app-items>
  4. \u0026lt;item id = "repository" permission = "admin" type = "link"> / repository \u0026lt;/ item> adding the attribute permission = "admin"
  5. .
  6. Now all that remains is restart Alfresco to verify that everything is ok, try to login as Admin and then as a normal user.
  7. Giving a look at the files and instructions
, it is clear that you can implement additional and more complex customizations.

0 comments:

Post a Comment