Package net.anotheria.anodoc.service
Interface IModuleFactory
-
- All Known Implementing Classes:
AbstractModuleFactory
public interface IModuleFactoryThis 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentcreateDocument(java.lang.String name)Creates a new Document with given name.DocumentcreateDocument(java.lang.String name, java.lang.String typeIdentifier)Creates a new Document with given name and a type identifier.DocumentcreateDocument(java.lang.String name, DataHolder context)Creates a new Document with given name in a given context.<D extends Document>
DocumentList<D>createDocumentList(java.lang.String name)Creates a new DocumentList with given name and without a context.<D extends Document>
DocumentList<D>createDocumentList(java.lang.String name, DataHolder context)Creates a new DocumentList with given name and context.ModulecreateModule(java.lang.String ownerId, java.lang.String copyId)Creates a new Module Instance for given owner and copy ids.
-
-
-
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- aStringobject.copyId- aStringobject.- Returns:
- a
Moduleobject.
-
createDocument
Document createDocument(java.lang.String name)
Creates a new Document with given name.- Parameters:
name- aStringobject.- Returns:
- a
Documentobject.
-
createDocument
Document createDocument(java.lang.String name, java.lang.String typeIdentifier)
Creates a new Document with given name and a type identifier.- Parameters:
name- aStringobject.typeIdentifier- aStringobject.- Returns:
- a
Documentobject.
-
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- aStringobject.context- aDataHolderobject.- Returns:
- a
Documentobject.
-
createDocumentList
<D extends Document> DocumentList<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- aStringobject.- Returns:
- a
DocumentListobject.
-
createDocumentList
<D extends Document> DocumentList<D> createDocumentList(java.lang.String name, DataHolder context)
Creates a new DocumentList with given name and context.- Parameters:
name- aStringobject.context- aDataHolderobject.- Returns:
- a
DocumentListobject.
-
-