Interface ContentTypesAssignmentHandler

  • All Known Implementing Classes:
    DefaultContentTypesAssignmentHandler

    public interface ContentTypesAssignmentHandler
    A ContentTypesAssignementHandler is responsible for giving the available content types list for a given Zone. This list can be computed according any application needs, such as Rights of the logged in user, path of the Page, ...
    • Field Detail

    • Method Detail

      • getAvailableContentTypes

        Set<StringgetAvailableContentTypes​(Site site)
        Returns the list of available content types for a given Site
        Parameters:
        site - the site to consider
        Returns:
        the list of available content types id
      • getAvailableContentTypes

        Set<StringgetAvailableContentTypes​(Site site,
                                             boolean includePrivate)
        Returns the list of available content types for a given Site
        Parameters:
        site - the site to consider
        includePrivate - true to include private content types
        Returns:
        the list of available content types id
      • getAvailableContentTypes

        Set<StringgetAvailableContentTypes​(Page page,
                                             String zoneName)
        Returns the list of available content types for a given Page and zone name.
        Parameters:
        page - the Page to consider
        zoneName - the zone name to consider
        Returns:
        the list of available content types id
      • getAvailableContentTypes

        Set<StringgetAvailableContentTypes​(Page page,
                                             String zoneName,
                                             boolean includePrivate)
        Returns the list of available content types for a given Page and zone name.
        Parameters:
        page - the Page to consider
        zoneName - the zone name to consider
        includePrivate - true to include private content types
        Returns:
        the list of available content types id