Difference between revisions of "Knowledge:Script Utilities"
From OpenKM Documentation
(Created page with '=== Get principals === <source type="java"> import com.openkm.spring.PrincipalUtils; print(PrincipalUtils.getRoles()); </source>') |
|||
Line 1: | Line 1: | ||
=== Get principals === | === Get principals === | ||
− | <source type=" | + | <source type="lang"> |
import com.openkm.spring.PrincipalUtils; | import com.openkm.spring.PrincipalUtils; | ||
print(PrincipalUtils.getRoles()); | print(PrincipalUtils.getRoles()); | ||
</source> | </source> |
Revision as of 08:25, 10 October 2012
Get principals
import com.openkm.spring.PrincipalUtils;
print(PrincipalUtils.getRoles());