Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Alfresco One 5.x Developer???s Guide

You're reading from   Alfresco One 5.x Developer???s Guide Discover what it means to be an expert developer by exploring the latest features available to you in Alfresco One 5.x

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781787128163
Length 528 pages
Edition 2nd Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Benjamin Chevallereau Benjamin Chevallereau
Author Profile Icon Benjamin Chevallereau
Benjamin Chevallereau
Jeff Potts Jeff Potts
Author Profile Icon Jeff Potts
Jeff Potts
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The Alfresco Platform FREE CHAPTER 2. Getting Started with Alfresco 3. Working with Content Models 4. Handling Content Automatically with Actions, Behaviors, Transformers, and Extractors 5. Customizing Alfresco Share 6. Creating an Angular Application 7. Exposing Content through a RESTful API with Web Scripts 8. Advanced Workflow 9. Amazing Extensions 10. Security

Writing action evaluators to show/hide UI actions


In the previous example, you set up two action items to enable and disable the isActive flag for a webable piece of content. The actions only show up if a user has the appropriate permissions. But what if SomeCo wants to give several different people or groups Write permission, but only wants a subset of those folks to be able to publish documents to the Web? Not only that, but isn't it a bit sloppy to show the Enable link when the isActive flag is already set to True (and Disable when it is already set to False)?

Both of these issues are easily addressed using Spring beans and out-of-the-box Alfresco Share evaluators. Evaluators are used to control if an action item should be displayed or not. If you don't find what you need in the standard evaluators, you can as well create your own evaluator coded in Java (more information here http://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-evaluator.html).

Step-by-step - evaluating...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime