Package org.brixcms.plugin.site.resource

Examples of org.brixcms.plugin.site.resource.ResourceNodePlugin


    public String getMimeType(boolean useExtension) {
        // FIXME Shouldn't have direct dependency on SitePlugin

        String mime = getContent().getProperty("jcr:mimeType").getString();
        if (useExtension && (Strings.isEmpty(mime) || mime.equals("application/octet-stream"))) {
            ResourceNodePlugin plugin = (ResourceNodePlugin) SitePlugin.get(getBrix())
                    .getNodePluginForType(ResourceNodePlugin.TYPE);
            return plugin.resolveMimeTypeFromFileName(getName());
        }
        return mime;
    }
View Full Code Here


    }

    public SitePlugin(Brix brix) {
        this.brix = brix;
        registerNodePlugin(new FolderNodePlugin(this));
        registerNodePlugin(new ResourceNodePlugin(this));
        registerNodePlugin(new TemplateSiteNodePlugin(this));
        registerNodePlugin(new PageSiteNodePlugin(this));
        registerManageNodeTabFactory(new ConvertNodeTabFactory());

        // register default editor
View Full Code Here

TOP

Related Classes of org.brixcms.plugin.site.resource.ResourceNodePlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.