Class PortalModuleImpl.JDOPortalModule

All Implemented Interfaces:
IModule, Remote
Enclosing class:
PortalModuleImpl

public static class PortalModuleImpl.JDOPortalModule extends PortalModule
Module fake pour gérer la sécurité sur les portlets basés sur un pm A éviter au maximum car le pm n'est libéré que par le finalize !
Author:
omenuel
  • Field Details

    • pm

      protected javax.jdo.PersistenceManager pm
  • Constructor Details

    • JDOPortalModule

      protected JDOPortalModule()
  • Method Details

    • initialize

      public void initialize(Properties properties)
      Description copied from interface: IModule
      Initializes the module.
      Parameters:
      properties - The custom properties.
    • unInitialize

      public void unInitialize()
      Description copied from interface: IModule
      Releases the module.
    • findNativeClass

      public Class<?> findNativeClass(Class<?> interfaceClass)
      Description copied from interface: IModule
      Allows to retrieve the inner native class.
      Parameters:
      interfaceClass - A class type.
      Returns:
      The inner native class.
    • beginTransaction

      @Deprecated public IReport beginTransaction(Object object)
      Deprecated.
      Description copied from interface: IModule
      Starts a new transaction if required.
      Parameters:
      object - The synchronized object. Not used anymore.
      Returns:
      The report object.
    • commitTransaction

      @Deprecated public void commitTransaction(Object object)
      Deprecated.
      Description copied from interface: IModule
      Commits the current transaction.
      Parameters:
      object - The synchronized object. Not used anymore.
    • rollbackTransaction

      @Deprecated public void rollbackTransaction(Object object)
      Deprecated.
      Description copied from interface: IModule
      Roll back the current transaction.
      Parameters:
      object - The synchronized object. Not used anymore.
    • beginTransaction

      public IReport beginTransaction()
      Description copied from interface: IModule
      Starts a new transaction or use the current one.
      Returns:
      The report object.
    • commitTransaction

      public void commitTransaction()
      Description copied from interface: IModule
      Commits the current transaction.
    • rollbackTransaction

      public void rollbackTransaction()
      Description copied from interface: IModule
      Roll back the current transaction.
    • isTransactionActive

      public boolean isTransactionActive()
      Description copied from interface: IModule
      Checks if there is a current transaction.
      Returns:
      true if a transaction has been started, false otherwise.
    • setTransactionTimeout

      public void setTransactionTimeout(int transactionTimeout) throws ModuleException
      Description copied from interface: IModule
      Allows the set the transaction timeout.
      Parameters:
      transactionTimeout - The transaction timeout in milliseconds.
      Throws:
      ModuleException - The default exception.
    • getPersistenceManager

      public javax.jdo.PersistenceManager getPersistenceManager()
      Specified by:
      getPersistenceManager in class PortalModule
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable