10-30-2008 06:05 AM
10-30-2008 01:42 PM
<bean id="customScript" parent="baseJavaScriptExtension" class="miPaquete.ScriptCustom">
<property name="extensionName">
<value>custom</value>
</property>
</bean>
De esta forma, en tus script's podrás hacer cosas del tipo: …
if (custom.isAdmin(user))…
…
La info completa la tienes en el wiki: http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs10-30-2008 02:28 PM
var esAdmin, compHome;
compHome = search.luceneSearch("PATH:\"/app:company_home\"")[0];
esAdmin = compHome.hasPermission("FullControl");
model.esAdmin = esAdmin.toString();
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.