O'Reilly logo

Alfresco One 5.x Developer's Guide - second edition by Jeff Potts, Benjamin Chevallereau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required