Package com.axemble.vdoc.sdk.modules
Interface IModule
- All Superinterfaces:
- Remote
- All Known Subinterfaces:
- IBaseDirectoryModule,- IBaseDocumentModule,- IBaseIndexationModule,- IBaseLibraryModule,- IBasePortalModule,- IBaseSiteModule,- IBaseWorkflowModule,- IDirectoryModule,- IDocumentModule,- IIndexationModule,- ILibraryModule,- IPortalModule,- IProjectModule,- ISiteModule,- IWorkflowModule
- All Known Implementing Classes:
- CoreModule,- DirectoryModuleImpl,- EzsSiteModule,- IndexationModuleImpl,- PortalLibraryModule,- PortalModule,- PortalModuleImpl,- PortalModuleImpl.JDOPortalModule,- com.axemble.vdoc.sdk.impl.ProcessWorkflowModule,- ProjectModuleImpl,- ReportProcessWorkflowModule,- WorkflowModuleImpl
- Author:
- vlygeros
- 
Method SummaryModifier and TypeMethodDescriptionStarts a new transaction or use the current one.beginTransaction(Object object) Deprecated.use beginTransaction() method without parameter instead.voidCommits the current transaction.voidcommitTransaction(Object object) Deprecated.use commitTransaction() method without parameter instead.Allows to convert any object to itsIStorageKeyobject.Class<?> findNativeClass(Class<?> interfaceClass) Allows to retrieve the inner native class.generateSystemName(String label) Generate a valid system name for this module and this label.Gets the anonymous user.Gets the context of anonymous.getContext(IUser user) Gets a context form aIUserobject.getContext(String externalID) Gets a context from the external identifier.getContextByLogin(String login) Gets a context from the user's login.getElementFromExternalElement(ExternalElement externalElement) Retrieves the object of externalElementgetExternalElement(Object object) Retrieves the externalElement of an objectgetExternalElement(Object object, String language) Retrieves the externalElement of an object by specifying the language.Retrieves the current logged on user.Retrieves the context of the logged on userRetrieves the logged on user language or default to server defaultgetProtocolPath(Object object) Retrieves the protocol path of an object.getProtocolPath(Object object, String language) Retrieves the protocol path of an object by specifying the language.getProtocolURI(Object object) Retrieves the protocol URI of an object.getProtocolURI(Object object, boolean useNames) Retrieves the protocol URI of an object by using names or not.getStaticString(IDynamicLocalizationsWrapper localizationsWrapper) Retrieves a java.lang.String form the localizationsWrapper.getStaticString(String entryID) Retrieves a java.lang.String form the string resources XML files.getStaticString(String entryID, String arg1) Retrieves a java.lang.String from the string resources XML files using one argument.getStaticString(String entryID, String arg1, String arg2) Retrieves a java.lang.String from the string resources XML files using two arguments.getStaticString(String entryID, String arg1, String arg2, String arg3) Retrieves a java.lang.String from the string resources XML files using three arguments.Retrieves a java.lang.String from the string resources XML files using four arguments.getStaticString(String entryID, Locale locale) Retrieves a java.lang.String from the string resources XML files and specifying the local.getStaticString(String entryID, Locale locale, String arg1) Retrieves a java.lang.String from the string resources XML files using one argument and specifying the local.getStaticString(String entryID, Locale locale, String arg1, String arg2) Retrieves a java.lang.String from the string resources XML files using two arguments and specifying the local.Retrieves a java.lang.String from the string resources XML files using three arguments and specifying the local.Retrieves a java.lang.String from the string resources XML files using fourth arguments and specifying the local.Gets the sysadmin user.Gets the context of sysadmin.getTranslation(String key, String... args) Retrieves a java.lang.String from the key using static strings and dynamic localizations.getTranslationForLanguage(String language, String key, String... args) Retrieves a java.lang.String for the specified language from the key using static strings and dynamic localizations.getTranslationKey(IProtocolSupport domainLocalizable, String localizationKey, String localizationSubName, String localizationSubKey) Generates a java.lang.String symbolyzing the key to use for translating this localizable with the specified localizationKey, localizationSubName and localizationSubKey.voidinitialize(Properties properties) Deprecated.Use com.axemble.vdoc.sdk.Modules.getXXXModule( Properties properties ) instead.booleanChecks if there is a current transaction.voidRoll back the current transaction.voidrollbackTransaction(Object object) Deprecated.use rollbackTransaction() method without parameter instead.voidsetTransactionTimeout(int transactionTimeout) Allows the set the transaction timeout.voidDeprecated.Use com.axemble.vdoc.sdk.Modules.releaseModule( IModule module ) instead.
- 
Method Details- 
initializeDeprecated.Use com.axemble.vdoc.sdk.Modules.getXXXModule( Properties properties ) instead.Initializes the module.- Parameters:
- properties- The custom properties.
 
- 
unInitializeDeprecated.Use com.axemble.vdoc.sdk.Modules.releaseModule( IModule module ) instead.Releases the module.
- 
findNativeClassAllows to retrieve the inner native class.- Parameters:
- interfaceClass- A class type.
- Returns:
- The inner native class.
 
- 
getContextGets a context from the external identifier.- Parameters:
- externalID- The external identifier.
- Returns:
- A IContextobject.
 
- 
getContextGets a context form aIUserobject.
- 
getContextByLoginGets a context from the user's login.- Parameters:
- login- The user's login.
- Returns:
- A IContextobject.
 
- 
getSysadminContextIContext getSysadminContext()Gets the context of sysadmin.- Returns:
- A IContextobject.
 
- 
getAnonymousContextIContext getAnonymousContext()Gets the context of anonymous.- Returns:
- A IContextobject.
 
- 
getSysadminIUser getSysadmin()Gets the sysadmin user.- Returns:
- A IUserobject.
 
- 
getAnonymousIUser getAnonymous()Gets the anonymous user.- Returns:
- A IUserobject.
 
- 
getLoggedOnUserContextIContext getLoggedOnUserContext()Retrieves the context of the logged on user- Returns:
- a IContextobject.
 
- 
getLoggedOnUserLanguageString getLoggedOnUserLanguage()Retrieves the logged on user language or default to server default- Returns:
- user friendly language.
 
- 
getLoggedOnUserIUser getLoggedOnUser()Retrieves the current logged on user.- Returns:
- a IUserobject.
 
- 
convertIdAllows to convert any object to itsIStorageKeyobject.- Parameters:
- object- Any form of the object.
- Returns:
- a IStorageKeyobject.
 
- 
beginTransactionDeprecated.use beginTransaction() method without parameter instead.Starts a new transaction if required.- Parameters:
- object- The synchronized object. Not used anymore.
- Returns:
- The report object.
 
- 
commitTransactionDeprecated.use commitTransaction() method without parameter instead.Commits the current transaction.- Parameters:
- object- The synchronized object. Not used anymore.
 
- 
rollbackTransactionDeprecated.use rollbackTransaction() method without parameter instead.Roll back the current transaction.- Parameters:
- object- The synchronized object. Not used anymore.
 
- 
beginTransactionIReport beginTransaction()Starts a new transaction or use the current one.- Returns:
- The report object.
 
- 
commitTransactionvoid commitTransaction()Commits the current transaction.
- 
rollbackTransactionvoid rollbackTransaction()Roll back the current transaction.
- 
isTransactionActiveboolean isTransactionActive()Checks if there is a current transaction.- Returns:
- true if a transaction has been started, false otherwise.
 
- 
setTransactionTimeoutAllows the set the transaction timeout.- Parameters:
- transactionTimeout- The transaction timeout in milliseconds.
- Throws:
- ModuleException- The default exception.
 
- 
getTranslationForLanguageRetrieves a java.lang.String for the specified language from the key using static strings and dynamic localizations.- Parameters:
- key-
- Returns:
- the translated string.
 
- 
getTranslationRetrieves a java.lang.String from the key using static strings and dynamic localizations. Based on the retrieved locale from context.- Parameters:
- key-
- Returns:
- the translated string.
 
- 
getTranslationKeyString getTranslationKey(IProtocolSupport domainLocalizable, String localizationKey, String localizationSubName, String localizationSubKey) Generates a java.lang.String symbolyzing the key to use for translating this localizable with the specified localizationKey, localizationSubName and localizationSubKey.- Parameters:
- domainLocalizable-
- localizationKey-
- localizationSubName-
- localizationSubKey-
- Returns:
- the translation key
 
- 
getStaticStringRetrieves a java.lang.String form the localizationsWrapper.- Parameters:
- localizationsWrapper- IDynamicLocalizationsWrapper object
- Returns:
- The translated string.
 
- 
getStaticStringRetrieves a java.lang.String form the string resources XML files.- Parameters:
- entryID- The key.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using one argument.- Parameters:
- entryID- The key.
- arg1- The argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using two arguments.- Parameters:
- entryID- The key.
- arg1- The first argument (%1) contained in the resource string.
- arg2- The second argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using three arguments.- Parameters:
- entryID- The key.
- arg1- The first argument (%1) contained in the resource string.
- arg2- The second argument (%1) contained in the resource string.
- arg3- The third argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using four arguments.- Parameters:
- entryID- The key.
- arg1- The first argument (%1) contained in the resource string.
- arg2- The second argument (%1) contained in the resource string.
- arg3- The third argument (%1) contained in the resource string.
- arg4- The fourth argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using one argument and specifying the local.- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- arg1- The argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using two arguments and specifying the local.- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- arg1- The first argument (%1) contained in the resource string.
- arg2- The second argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files using three arguments and specifying the local.- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- arg1- The first argument (%1) contained in the resource string.
- arg2- The second argument (%1) contained in the resource string.
- arg3- The third argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringString getStaticString(String entryID, Locale locale, String arg1, String arg2, String arg3, String arg4) Retrieves a java.lang.String from the string resources XML files using fourth arguments and specifying the local.- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- arg1- The first argument (%1) contained in the resource string.
- arg2- The second argument (%1) contained in the resource string.
- arg3- The third argument (%1) contained in the resource string.
- arg4- The third argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringRetrieves a java.lang.String from the string resources XML files and specifying the local.- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- Returns:
- The resource string.
 
- 
getProtocolURIRetrieves the protocol URI of an object.- Parameters:
- object- The object to retrieve the protocol URI from.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getProtocolURIRetrieves the protocol URI of an object by using names or not.- Parameters:
- object- The object to retrieve the protocol URI from.
- useNames- Uses names or not.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getProtocolPathRetrieves the protocol path of an object.- Parameters:
- object- The object to retrieve the protocol path from.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getProtocolPathRetrieves the protocol path of an object by specifying the language.- Parameters:
- object- The object to retrieve the protocol path from.
- language- The requested language.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getExternalElementRetrieves the externalElement of an object- Parameters:
- object- The object to retrieve the external element from
- Returns:
- A com.axemble.vdoc.sdk.structs.ExternalElement value.
- Throws:
- ModuleException- The default exception.
 
- 
getExternalElementRetrieves the externalElement of an object by specifying the language.- Parameters:
- object- The object to retrieve the external element from
- language- The requested language.
- Returns:
- A com.axemble.vdoc.sdk.structs.ExternalElement value.
- Throws:
- ModuleException- The default exception.
 
- 
getElementFromExternalElementRetrieves the object of externalElement- Parameters:
- externalElement- The externalElement to retrieve the object from
- Returns:
- A java.lang.Object value.
- Throws:
- ModuleException- The default exception.
 
- 
generateSystemNameGenerate a valid system name for this module and this label.- Parameters:
- label- label to normalize
- Returns:
- normalized value
 
 
-