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 Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.PortalModule
currentContext, report
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStarts a new transaction or use the current one.beginTransaction
(Object object) Deprecated.void
Commits the current transaction.void
commitTransaction
(Object object) Deprecated.protected void
finalize()
Class
<?> findNativeClass
(Class<?> interfaceClass) Allows to retrieve the inner native class.javax.jdo.PersistenceManager
void
initialize
(Properties properties) Initializes the module.boolean
Checks if there is a current transaction.void
Roll back the current transaction.void
rollbackTransaction
(Object object) Deprecated.void
setTransactionTimeout
(int transactionTimeout) Allows the set the transaction timeout.void
Releases the module.Methods inherited from class com.axemble.vdoc.sdk.impl.PortalModule
convertId, 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, refreshUser
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
getTranslation, getTranslationForLanguage, getTranslationKey
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.modules.IModule
getTranslation, getTranslationForLanguage, getTranslationKey
-
Field Details
-
pm
protected javax.jdo.PersistenceManager pm
-
-
Constructor Details
-
JDOPortalModule
protected JDOPortalModule()
-
-
Method Details
-
initialize
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
Description copied from interface:IModule
Allows to retrieve the inner native class.- Parameters:
interfaceClass
- A class type.- Returns:
- The inner native class.
-
beginTransaction
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.Description copied from interface:IModule
Commits the current transaction.- Parameters:
object
- The synchronized object. Not used anymore.
-
rollbackTransaction
Deprecated.Description copied from interface:IModule
Roll back the current transaction.- Parameters:
object
- The synchronized object. Not used anymore.
-
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
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 classPortalModule
-
finalize
-