Package net.anotheria.anodoc.service
Interface IModuleStorage
-
- All Known Implementing Classes:
CommonHashtableModuleStorage,CommonModuleStorageWrapper,StoragePlaceHolder
public interface IModuleStorageStorage for Module instances.- Version:
- $Id: $Id
- Author:
- another
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddModuleListener(IModuleListener listener)Adds a module listener.voiddeleteModule(java.lang.String ownerId, java.lang.String copyId)Delete the specified instance.ModuleloadModule(java.lang.String ownerId, java.lang.String copyId)Loads the specified instance.voidremoveModuleListener(IModuleListener listener)Removes the module listener from the module storage.voidsaveModule(Module module)Saves the given instance permanently.
-
-
-
Method Detail
-
saveModule
void saveModule(Module module) throws StorageFailureException
Saves the given instance permanently.- Parameters:
module- aModuleobject.- Throws:
StorageFailureException- if any.
-
loadModule
Module loadModule(java.lang.String ownerId, java.lang.String copyId) throws NoStoredModuleEntityException, StorageFailureException
Loads the specified instance.- Parameters:
ownerId- aStringobject.copyId- aStringobject.- Returns:
- loaded module
- Throws:
NoStoredModuleEntityException- if any.StorageFailureException- if any.
-
deleteModule
void deleteModule(java.lang.String ownerId, java.lang.String copyId) throws StorageFailureExceptionDelete the specified instance.- Parameters:
ownerId- aStringobject.copyId- aStringobject.- Throws:
StorageFailureException- if any.
-
addModuleListener
void addModuleListener(IModuleListener listener)
Adds a module listener.- Parameters:
listener- the listener to add.
-
removeModuleListener
void removeModuleListener(IModuleListener listener)
Removes the module listener from the module storage.- Parameters:
listener- the listener to remove.
-
-