Package com.axemble.vdoc.sdk.impl
Class CoreModule
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.CoreModule
- All Implemented Interfaces:
- IModule,- Serializable,- Remote
- Direct Known Subclasses:
- DirectoryModuleImpl,- IndexationModuleImpl,- PortalModuleImpl,- ProjectModuleImpl,- WorkflowModuleImpl
- Author:
- vlygeros
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionStarts a new transaction or use the current one.beginTransaction(Object currentObject) Starts a new transaction if required.voidCommits the current transaction.voidcommitTransaction(Object currentObject) Commit a transactionAllows to convert any object to itsIStorageKeyobject.createAttachment(IContext context, File file) createAttachment(IContext context, File file, boolean canBeRemoved) createAttachment(IContext context, String fileName, byte[] bytes) createAttachment(IContext context, String fileName, InputStream input) createProfile(IContext context, IProtocolSupport link, String name) Class<?> findNativeClass(Class<?> interfaceClass) Allows to retrieve the inner native class.Gets the anonymous user.Gets the context of anonymous.com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactorygetContext(IStorageKey key) 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.com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactorygetElementByProtocolURI(String protocolURI) 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 defaultgetProfile(IContext context, IProtocolSupport link, String name) getProfile(IStorageKey key) Collection<? extends IProfile> getProfiles(IContext context, IProtocolSupport link) getProtocolPath(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 useLabels) 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.getUser(IStorageKey key) getUserByLogin(String login) voidinitialize(Properties properties) Initializes the module.booleanChecks if there is a current transaction.voidRoll back the current transaction.voidrollbackTransaction(Object currentObject) Roll back a transactionvoidsetTransactionTimeout(int transactionTimeout) Allows the set the transaction timeout.voidReleases the module.Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModulegetTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IModulegenerateSystemName, getTranslation, getTranslationForLanguage, getTranslationKey
- 
Field Details- 
LOGGERpublic static final com.axemble.vdp.utils.Logger LOGGER
- 
properties
 
- 
- 
Constructor Details- 
CoreModulepublic CoreModule()
 
- 
- 
Method Details- 
initializeDescription copied from interface:IModuleInitializes the module.- Specified by:
- initializein interface- IModule
- Parameters:
- properties- The custom properties.
 
- 
unInitializepublic void unInitialize()Description copied from interface:IModuleReleases the module.- Specified by:
- unInitializein interface- IModule
 
- 
getLoggedOnUserDescription copied from interface:IModuleRetrieves the current logged on user.- Specified by:
- getLoggedOnUserin interface- IModule
- Returns:
- a IUserobject.
 
- 
getContextDescription copied from interface:IModuleGets a context form aIUserobject.- Specified by:
- getContextin interface- IModule
- Parameters:
- user- a- IUserobject.
- Returns:
- A IContextobject.
 
- 
getContext
- 
getContextDescription copied from interface:IModuleGets a context from the external identifier.- Specified by:
- getContextin interface- IModule
- Parameters:
- externalId- The external identifier.
- Returns:
- A IContextobject.
 
- 
getContextByLoginDescription copied from interface:IModuleGets a context from the user's login.- Specified by:
- getContextByLoginin interface- IModule
- Parameters:
- login- The user's login.
- Returns:
- A IContextobject.
 
- 
getLoggedOnUserContextDescription copied from interface:IModuleRetrieves the context of the logged on user- Specified by:
- getLoggedOnUserContextin interface- IModule
- Returns:
- a IContextobject.
 
- 
getLoggedOnUserLanguageDescription copied from interface:IModuleRetrieves the logged on user language or default to server default- Specified by:
- getLoggedOnUserLanguagein interface- IModule
- Returns:
- user friendly language.
 
- 
getAnonymousDescription copied from interface:IModuleGets the anonymous user.- Specified by:
- getAnonymousin interface- IModule
- Returns:
- A IUserobject.
 
- 
getAnonymousContextDescription copied from interface:IModuleGets the context of anonymous.- Specified by:
- getAnonymousContextin interface- IModule
- Returns:
- A IContextobject.
 
- 
getSysadminDescription copied from interface:IModuleGets the sysadmin user.- Specified by:
- getSysadminin interface- IModule
- Returns:
- A IUserobject.
 
- 
getSysadminContextDescription copied from interface:IModuleGets the context of sysadmin.- Specified by:
- getSysadminContextin interface- IModule
- Returns:
- A IContextobject.
 
- 
getUserByLogin
- 
getUser
- 
getUser- Throws:
- WorkflowModuleException
 
- 
convertIdDescription copied from interface:IModuleAllows to convert any object to itsIStorageKeyobject.- Specified by:
- convertIdin interface- IModule
- Parameters:
- object-
- Returns:
- a IStorageKeyobject.
 
- 
getLanguage
- 
getConfiguration
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction or use the current one.- Specified by:
- beginTransactionin interface- IModule
- Returns:
- The report object.
 
- 
commitTransactionpublic void commitTransaction()Description copied from interface:IModuleCommits the current transaction.- Specified by:
- commitTransactionin interface- IModule
 
- 
rollbackTransactionpublic void rollbackTransaction()Description copied from interface:IModuleRoll back the current transaction.- Specified by:
- rollbackTransactionin interface- IModule
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction if required.- Specified by:
- beginTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
- Returns:
- The report object.
 
- 
setTransactionTimeoutDescription copied from interface:IModuleAllows the set the transaction timeout.- Specified by:
- setTransactionTimeoutin interface- IModule
- Parameters:
- transactionTimeout- The transaction timeout in milliseconds.
- Throws:
- ModuleException- The default exception.
 
- 
commitTransactionCommit a transaction- Specified by:
- commitTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
rollbackTransactionRoll back a transaction- Specified by:
- rollbackTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
isTransactionActivepublic boolean isTransactionActive()Description copied from interface:IModuleChecks if there is a current transaction.- Specified by:
- isTransactionActivein interface- IModule
- Returns:
- true if a transaction has been started, false otherwise.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using one argument.- Specified by:
- getStaticStringin interface- IModule
- Parameters:
- entryID- The key.
- arg1- The argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using two arguments.- Specified by:
- getStaticStringin interface- IModule
- 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.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using three arguments.- Specified by:
- getStaticStringin interface- IModule
- 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.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using four arguments.- Specified by:
- getStaticStringin interface- IModule
- 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.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String form the localizationsWrapper.- Specified by:
- getStaticStringin interface- IModule
- Parameters:
- localizationsWrapper- IDynamicLocalizationsWrapper object
- Returns:
- The translated string.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String form the string resources XML files.- Specified by:
- getStaticStringin interface- IModule
- Parameters:
- entryID- The key.
- Returns:
- The resource string.
 
- 
getProtocolURIDescription copied from interface:IModuleRetrieves the protocol URI of an object.- Specified by:
- getProtocolURIin interface- IModule
- Parameters:
- object- The object to retrieve the protocol URI from.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getProtocolURIDescription copied from interface:IModuleRetrieves the protocol URI of an object by using names or not.- Specified by:
- getProtocolURIin interface- IModule
- Parameters:
- object- The object to retrieve the protocol URI from.
- useLabels- Uses names or not.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getProtocolPathDescription copied from interface:IModuleRetrieves the protocol path of an object.- Specified by:
- getProtocolPathin interface- IModule
- Parameters:
- object- The object to retrieve the protocol path from.
- Returns:
- A java.lang.String value.
- Throws:
- ModuleException- The default exception.
 
- 
getProtocolPathDescription copied from interface:IModuleRetrieves the protocol path of an object by specifying the language.- Specified by:
- getProtocolPathin interface- IModule
- 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.
 
- 
getElementByProtocolURI- Throws:
- ModuleException
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files and specifying the local.- Specified by:
- getStaticStringin interface- IModule
- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- Returns:
- The resource string.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using one argument and specifying the local.- Specified by:
- getStaticStringin interface- IModule
- Parameters:
- entryID- The key.
- locale- The- Localeto use.
- arg1- The argument (%1) contained in the resource string.
- Returns:
- The resource string.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using two arguments and specifying the local.- Specified by:
- getStaticStringin interface- IModule
- 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.
 
- 
getStaticStringDescription copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using three arguments and specifying the local.- Specified by:
- getStaticStringin interface- IModule
- 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.
 
- 
getStaticStringpublic String getStaticString(String entryID, Locale locale, String arg1, String arg2, String arg3, String arg4) Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using fourth arguments and specifying the local.- Specified by:
- getStaticStringin interface- IModule
- 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.
 
- 
findNativeClassDescription copied from interface:IModuleAllows to retrieve the inner native class.- Specified by:
- findNativeClassin interface- IModule
- Parameters:
- interfaceClass- A class type.
- Returns:
- The inner native class.
 
- 
getComponentsFactorypublic com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory getComponentsFactory()
- 
getDefinitionsFactorypublic com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getDefinitionsFactory()
- 
createProfilepublic IProfile createProfile(IContext context, IProtocolSupport link, String name) throws ModuleException - Throws:
- ModuleException
 
- 
getProfilepublic IProfile getProfile(IContext context, IProtocolSupport link, String name) throws ModuleException - Throws:
- ModuleException
 
- 
getProfilespublic Collection<? extends IProfile> getProfiles(IContext context, IProtocolSupport link) throws ModuleException - Throws:
- ModuleException
 
- 
getProfile- Throws:
- ModuleException
 
- 
createAttachment
- 
createAttachment
- 
createAttachment
- 
createAttachment
- 
getExternalElementDescription copied from interface:IModuleRetrieves the externalElement of an object- Specified by:
- getExternalElementin interface- IModule
- Parameters:
- object- The object to retrieve the external element from
- Returns:
- A com.axemble.vdoc.sdk.structs.ExternalElement value.
- Throws:
- ModuleException- The default exception.
 
- 
getExternalElementDescription copied from interface:IModuleRetrieves the externalElement of an object by specifying the language.- Specified by:
- getExternalElementin interface- IModule
- 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.
 
- 
getElementFromExternalElementDescription copied from interface:IModuleRetrieves the object of externalElement- Specified by:
- getElementFromExternalElementin interface- IModule
- Parameters:
- externalElement- The externalElement to retrieve the object from
- Returns:
- A java.lang.Object value.
- Throws:
- ModuleException- The default exception.
 
 
-