Class ModuleServiceImpl

  • All Implemented Interfaces:
    IModuleService, IModuleListener

    public class ModuleServiceImpl
    extends java.lang.Object
    implements IModuleService, IModuleListener
    An implementation of IModuleService for local usage, which supports local cache and synchronization over network.
    Version:
    $Id: $Id
    Author:
    another
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_COPY_ID
      Constant used for 'copy' if none is specified.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addModuleListener​(java.lang.String moduleId, java.lang.String ownerId, IModuleListener aModuleListeners)
      Adds listener for module.
      void attachModuleFactory​(java.lang.String moduleId, IModuleFactory factory)
      Attaches a factory for a given moduleId.
      void attachModuleStorage​(java.lang.String moduleId, IModuleStorage storage)
      Attaches a storage for a given moduleId.
      void deleteModule​(java.lang.String ownerId, java.lang.String moduleId)
      Deletes the module identified by the tuple (ownerId | moduleId) from the appropriate storage.
      void deleteModule​(java.lang.String ownerId, java.lang.String moduleId, java.lang.String copyId)
      Deletes the module identified by the tuple (ownerId | moduleId | copyId) from the appropriate storage.
      void deleteModule​(Module module)
      Deletes the given module from the appropriate storage.
      protected static ModuleServiceImpl getInstance()
      Returns the current (singleton) instance of this implementation.
      Module getModule​(java.lang.String ownerId, java.lang.String moduleId)
      getModule.
      Module getModule​(java.lang.String ownerId, java.lang.String moduleId, boolean create)
      Same as getModule(ownerId, moduleId, default_copy_id, create?)
      Module getModule​(java.lang.String ownerId, java.lang.String moduleId, java.lang.String copyId)
      Same as return getModule(ownerId, moduleId, copyId, false); in current implementation.
      Module getModule​(java.lang.String ownerId, java.lang.String moduleId, java.lang.String copyId, boolean create)
      This function retrieves the appropriate Module from the storage and returns it.
      void moduleLoaded​(Module module)
      Called if module changed.
      void notifyConfigurationFinished()
      notifyConfigurationFinished.
      void removeModuleListener​(java.lang.String moduleId, java.lang.String ownerId)
      Removes listener for module.
      void storeModule​(Module module)
      Stores the given module in the appropriate storage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait