Disabling checkout option for particulate type of file

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2009 08:40 AM
I need to disable the checkout option or icon for a particular type of file.
lets say, for any pdf file I do not want to provide checkout functionality for all the users.
So where do I need to make the changes in alfresco configuration or do I need to add some customized code?
lets say, for any pdf file I do not want to provide checkout functionality for all the users.
So where do I need to make the changes in alfresco configuration or do I need to add some customized code?
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2009 02:34 AM
Hey!! I got the solution for this.
There is a evaluator (e.g CheckoutDocEvaluator.java) for each of the options/buttons,
so we can extend the same and add our custom code!! don't forget to make your new class entry in web-client-config-custom.xml file.
If anybody has any other trick let us know.
Extending the class…
Entry in web-client-config-custom.xml file
There is a evaluator (e.g CheckoutDocEvaluator.java) for each of the options/buttons,
so we can extend the same and add our custom code!! don't forget to make your new class entry in web-client-config-custom.xml file.
If anybody has any other trick let us know.
Extending the class…
public class ExtCheckoutEvaluator extends CheckoutDocEvaluator{ @Override public boolean evaluate(Node node) { boolean status = false; //…… // add your custom logic here… //…… return status; }}
Entry in web-client-config-custom.xml file
<action id="checkout_doc"> <evaluator>com.alfrescoexploration.customAction.ExtCheckoutEvaluator</evaluator> <label-id>checkout</label-id> <image>/images/icons/CheckOut_icon.gif</image> <action-listener>#{CheckinCheckoutBean.setupContentAction}</action-listener> <action>dialog:checkoutFile</action> <params> <param name="id">#{actionContext.id}</param> </params></action>

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 11:11 AM
kirit _ Does this Approach work only for the alfresco share interface or with the REST API or CMIS will work too?
