Package com.axemble.vdoc.sdk.impl
Class PortalModuleImpl.JDOPortalModule
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.PortalModule
com.axemble.vdoc.sdk.impl.PortalModuleImpl.JDOPortalModule
- Enclosing class:
- PortalModuleImpl
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 SummaryFieldsFields inherited from class com.axemble.vdoc.sdk.impl.PortalModulecurrentContext, report
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionStarts a new transaction or use the current one.beginTransaction(Object object) Deprecated.voidCommits the current transaction.voidcommitTransaction(Object object) Deprecated.protected voidfinalize()Class<?> findNativeClass(Class<?> interfaceClass) Allows to retrieve the inner native class.javax.jdo.PersistenceManagervoidinitialize(Properties properties) Initializes the module.booleanChecks if there is a current transaction.voidRoll back the current transaction.voidrollbackTransaction(Object object) Deprecated.voidsetTransactionTimeout(int transactionTimeout) Allows the set the transaction timeout.voidReleases the module.Methods inherited from class com.axemble.vdoc.sdk.impl.PortalModuleconvertId, generateSystemName, getAnonymous, getAnonymousContext, getContext, getContext, getContext, getContextByLogin, getCurrentContext, getElementFromExternalElement, getExternalElement, getExternalElement, getLanguage, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getUser, getUser, getUserByLogin, refreshUserMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModulegetTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IModulegetTranslation, getTranslationForLanguage, getTranslationKey
- 
Field Details- 
pmprotected javax.jdo.PersistenceManager pm
 
- 
- 
Constructor Details- 
JDOPortalModuleprotected JDOPortalModule()
 
- 
- 
Method Details- 
initializeDescription copied from interface:IModuleInitializes the module.- Parameters:
- properties- The custom properties.
 
- 
unInitializepublic void unInitialize()Description copied from interface:IModuleReleases the module.
- 
findNativeClassDescription copied from interface:IModuleAllows to retrieve the inner native class.- Parameters:
- interfaceClass- A class type.
- Returns:
- The inner native class.
 
- 
beginTransactionDeprecated.Description copied from interface:IModuleStarts a new transaction if required.- Parameters:
- object- The synchronized object. Not used anymore.
- Returns:
- The report object.
 
- 
commitTransactionDeprecated.Description copied from interface:IModuleCommits the current transaction.- Parameters:
- object- The synchronized object. Not used anymore.
 
- 
rollbackTransactionDeprecated.Description copied from interface:IModuleRoll back the current transaction.- Parameters:
- object- The synchronized object. Not used anymore.
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction or use the current one.- Returns:
- The report object.
 
- 
commitTransactionpublic void commitTransaction()Description copied from interface:IModuleCommits the current transaction.
- 
rollbackTransactionpublic void rollbackTransaction()Description copied from interface:IModuleRoll back the current transaction.
- 
isTransactionActivepublic boolean isTransactionActive()Description copied from interface:IModuleChecks if there is a current transaction.- Returns:
- true if a transaction has been started, false otherwise.
 
- 
setTransactionTimeoutDescription copied from interface:IModuleAllows the set the transaction timeout.- Parameters:
- transactionTimeout- The transaction timeout in milliseconds.
- Throws:
- ModuleException- The default exception.
 
- 
getPersistenceManagerpublic javax.jdo.PersistenceManager getPersistenceManager()- Specified by:
- getPersistenceManagerin class- PortalModule
 
- 
finalize
 
-