Interface IModuleFactory

  • All Known Implementing Classes:
    AbstractModuleFactory

    public interface IModuleFactory
    This factory is responsible for creating new modules, if a service should be able to create new modules. It also should have the ability to create new Documents in the Module Modell.
    Version:
    $Id: $Id
    Author:
    another
    • Method Detail

      • createModule

        Module createModule​(java.lang.String ownerId,
                            java.lang.String copyId)
        Creates a new Module Instance for given owner and copy ids.
        Parameters:
        ownerId - a String object.
        copyId - a String object.
        Returns:
        a Module object.
      • createDocument

        Document createDocument​(java.lang.String name)
        Creates a new Document with given name.
        Parameters:
        name - a String object.
        Returns:
        a Document object.
      • createDocument

        Document createDocument​(java.lang.String name,
                                java.lang.String typeIdentifier)
        Creates a new Document with given name and a type identifier.
        Parameters:
        name - a String object.
        typeIdentifier - a String object.
        Returns:
        a Document object.
      • createDocument

        Document createDocument​(java.lang.String name,
                                DataHolder context)
        Creates a new Document with given name in a given context. A context can be another document which holds the newly created document, or a list.
        Parameters:
        name - a String object.
        context - a DataHolder object.
        Returns:
        a Document object.
      • createDocumentList

        <D extends DocumentDocumentList<D> createDocumentList​(java.lang.String name)
        Creates a new DocumentList with given name and without a context. Normally you don't need this method, since list is seldom overwritten.
        Parameters:
        name - a String object.
        Returns:
        a DocumentList object.
      • createDocumentList

        <D extends DocumentDocumentList<D> createDocumentList​(java.lang.String name,
                                                                DataHolder context)
        Creates a new DocumentList with given name and context.
        Parameters:
        name - a String object.
        context - a DataHolder object.
        Returns:
        a DocumentList object.