Interface CreationContainerListProvider

    • Method Detail

      • getName

        String getName()
        Unique name of the CreationContainerListProvider. The name of a provider should be used for the equals.
        Returns:
        the name
      • getDocTypes

        String[] getDocTypes()
        Arrays of the document types accepted by the CreationContainerListProvider instance. null or empty array mean any document type is accepted.
        Returns:
        arrays of document types
      • accept

        boolean accept​(String docType)
        Tell whether docType is handled by the provider.
        Parameters:
        docType - name of the document core type
        Returns:
        true is the docType is accepted
      • getCreationContainerList

        DocumentModelList getCreationContainerList​(CoreSession documentManager,
                                                   String docType)
        Build the list of candidate containers for the given document type and session.
        Parameters:
        documentManager - the current session context
        docType - the type of document to create
        Returns:
        the list of candidate containers