AnsweredAssumed Answered

PluginTemplateDefinition JavaScript Issue

Question asked by MarkoSelf on Jul 21, 2014
Latest reply on Jul 22, 2014 by MarkoSelf

I've been trying to get the Extending Jive with Plugin Template Definitions implementation working in Jive 7, but the soy files never load for some reason.  I've even set "supports" to return true and load the JS on every page, but with no luck.  I'm hoping someone can find an issue in the code:

public class ViewDocumentTemplateDefinition implements PluginTemplateDefinition {

    private PermissionChecker permissionChecker;
    public void setPermissionChecker(PermissionChecker permissionChecker) {
        this.permissionChecker = permissionChecker;

    public boolean supports(ActionDescriptor actionDescriptor) {
        return true;
        /*if (actionDescriptor.getAction() instanceof DocumentAction) {
            DocumentAction documentAction = (DocumentAction) actionDescriptor.getAction();
            Document document = documentAction.getDocument();
            if (document != null && document.isTextBody() == false) {
                return permissionChecker.isDownloadingRestrictedFor(document.getJiveContainer());
        return false;*/

    public String getHeadTemplateName() {
        //return "";
        return null;

    public String getBodyTemplateName() {
        return "";

    public Object getModel(ActionInvocation ai, Object actionModel) {
        return null;



{template .removeDownloadLinks}

        {param code}
            $j(function() {lb}

{template .removeDownloadLinksCSS}
     <link rel="stylesheet" href="{resourceUrl('/plugins/place-permissions/resources/styles/restricted-download.css')}" type="text/css" media="all" />




<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
       default-autowire="no" default-init-method="init" default-destroy-method="destroy">

    <bean class="com.jivesoftware.teletech.permissions.PlacePermissionsPlugin"/>
    <bean id="teletechPermissionChecker" class="com.jivesoftware.teletech.permissions.PermissionCheckerImpl"/>
    <bean parent="pluginTemplateDefinitions" class="">
        <property name="source">
                <bean class=""/>



Folder Structure