Interface ContentTypeServiceInternal

    • Method Detail

      • getQuickCreatableContentTypes

        List<QuickCreateItem> getQuickCreatableContentTypes​(String siteId)
        Get list of content types marked as quick creatable for given site
        Parameters:
        siteId - site identifier
        Returns:
        List of quick creatable content types
      • getContentTypePreviewImage

        org.apache.commons.lang3.tuple.ImmutablePair<String,​org.springframework.core.io.Resource> getContentTypePreviewImage​(String siteId,
                                                                                                                                   String contentTypeId)
                                                                                                                            throws ServiceLayerException
        Finds the preview image for a given content-type
        Parameters:
        siteId - the id of the site
        contentTypeId - the id of the content-type
        Returns:
        the preview image file as a pair of path and resource
        Throws:
        ServiceLayerException - if there is any error finding the items
      • getContentTypeControllerPath

        String getContentTypeControllerPath​(String contentTypeId)
        Builds the path of the Groovy controller for a given content type id
        Parameters:
        contentTypeId - the id of the content type
        Returns:
        the path of the controller or null
      • getContentTypeTemplatePath

        String getContentTypeTemplatePath​(String siteId,
                                          String contentTypeId)
                                   throws ServiceLayerException
        Extracts the path of the Freemarker template for a given content type id
        Parameters:
        siteId - the id of the site
        contentTypeId - the id of the content type
        Returns:
        the path of the template or null
        Throws:
        ServiceLayerException - if there is any error reading the content type definition