Package com.axemble.vdoc.sdk.impl
Class PortalModule
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.PortalModule
- Direct Known Subclasses:
EzsSiteModule,PortalLibraryModule,PortalModuleImpl.JDOPortalModule
- Author:
- vlygeros
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllows to convert any object to itsIStorageKeyobject.generateSystemName(String label) Generate a valid system name for this module and this label.Gets the anonymous user.Gets the context of anonymous.getContext(IStorageKey key) Retrieve a context by user's keygetContext(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.final IContextgetElementFromExternalElement(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 defaultabstract javax.jdo.PersistenceManagergetProtocolPath(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) Retrieve user by keyRetrieve user by idgetUserByLogin(String login) Retrieve a user by logincom.axemble.directory.jdo.beans.UserrefreshUser(IUser user) Retrieve a refreshed userMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
getTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IModule
beginTransaction, beginTransaction, commitTransaction, commitTransaction, findNativeClass, getTranslation, getTranslationForLanguage, getTranslationKey, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
-
Field Details
-
currentContext
-
report
-
-
Constructor Details
-
PortalModule
public PortalModule()
-
-
Method Details
-
getPersistenceManager
public abstract javax.jdo.PersistenceManager getPersistenceManager() -
getLoggedOnUser
Description copied from interface:IModuleRetrieves the current logged on user.- Specified by:
getLoggedOnUserin interfaceIModule- Returns:
- a
IUserobject.
-
getLoggedOnUserContext
Description copied from interface:IModuleRetrieves the context of the logged on user- Specified by:
getLoggedOnUserContextin interfaceIModule- Returns:
- a
IContextobject.
-
getLoggedOnUserLanguage
Description copied from interface:IModuleRetrieves the logged on user language or default to server default- Specified by:
getLoggedOnUserLanguagein interfaceIModule- Returns:
- user friendly language.
-
getContext
Description copied from interface:IModuleGets a context form aIUserobject.- Specified by:
getContextin interfaceIModule- Parameters:
user- aIUserobject.- Returns:
- A
IContextobject.
-
getContext
Retrieve a context by user's key- Parameters:
key- the user's key- Returns:
- the user's IContext
-
getContext
Description copied from interface:IModuleGets a context from the external identifier.- Specified by:
getContextin interfaceIModule- Parameters:
externalId- The external identifier.- Returns:
- A
IContextobject.
-
getUser
Retrieve user by key- Parameters:
key- the user's key- Returns:
- the user matching the key
-
getUser
Retrieve user by id- Parameters:
id- the user's id string- Returns:
- the user matching the id
- Throws:
WorkflowModuleException- a potential WorkflowModuleException
-
getAnonymous
Description copied from interface:IModuleGets the anonymous user.- Specified by:
getAnonymousin interfaceIModule- Returns:
- A
IUserobject.
-
getAnonymousContext
Description copied from interface:IModuleGets the context of anonymous.- Specified by:
getAnonymousContextin interfaceIModule- Returns:
- A
IContextobject.
-
getSysadmin
Description copied from interface:IModuleGets the sysadmin user.- Specified by:
getSysadminin interfaceIModule- Returns:
- A
IUserobject.
-
getSysadminContext
Description copied from interface:IModuleGets the context of sysadmin.- Specified by:
getSysadminContextin interfaceIModule- Returns:
- A
IContextobject.
-
getContextByLogin
Description copied from interface:IModuleGets a context from the user's login.- Specified by:
getContextByLoginin interfaceIModule- Parameters:
login- The user's login.- Returns:
- A
IContextobject.
-
refreshUser
Retrieve a refreshed user- Parameters:
user- the user- Returns:
- the fresh user
-
getUserByLogin
Retrieve a user by login- Parameters:
login- the user's login- Returns:
- the user matching login
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using one argument.- Specified by:
getStaticStringin interfaceIModule- Parameters:
entryID- The key.arg1- The argument (%1) contained in the resource string.- Returns:
- The resource string.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using two arguments.- Specified by:
getStaticStringin interfaceIModule- 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.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using three arguments.- Specified by:
getStaticStringin interfaceIModule- 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.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using four arguments.- Specified by:
getStaticStringin interfaceIModule- 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.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String form the localizationsWrapper.- Specified by:
getStaticStringin interfaceIModule- Parameters:
localizationsWrapper- IDynamicLocalizationsWrapper object- Returns:
- The translated string.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String form the string resources XML files.- Specified by:
getStaticStringin interfaceIModule- Parameters:
entryID- The key.- Returns:
- The resource string.
-
getCurrentContext
- Returns:
- the currentContext
-
convertId
Description copied from interface:IModuleAllows to convert any object to itsIStorageKeyobject.- Specified by:
convertIdin interfaceIModule- Parameters:
object- Any form of the object.- Returns:
- a
IStorageKeyobject.
-
getProtocolURI
Description copied from interface:IModuleRetrieves the protocol URI of an object.- Specified by:
getProtocolURIin interfaceIModule- Parameters:
object- The object to retrieve the protocol URI from.- Returns:
- A java.lang.String value.
- Throws:
ModuleException- The default exception.
-
getProtocolURI
Description copied from interface:IModuleRetrieves the protocol URI of an object by using names or not.- Specified by:
getProtocolURIin interfaceIModule- 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.
-
getProtocolPath
Description copied from interface:IModuleRetrieves the protocol path of an object.- Specified by:
getProtocolPathin interfaceIModule- Parameters:
object- The object to retrieve the protocol path from.- Returns:
- A java.lang.String value.
- Throws:
ModuleException- The default exception.
-
getProtocolPath
Description copied from interface:IModuleRetrieves the protocol path of an object by specifying the language.- Specified by:
getProtocolPathin interfaceIModule- 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.
-
getLanguage
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files and specifying the local.- Specified by:
getStaticStringin interfaceIModule- Parameters:
entryID- The key.locale- TheLocaleto use.- Returns:
- The resource string.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using one argument and specifying the local.- Specified by:
getStaticStringin interfaceIModule- Parameters:
entryID- The key.locale- TheLocaleto use.arg1- The argument (%1) contained in the resource string.- Returns:
- The resource string.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using two arguments and specifying the local.- Specified by:
getStaticStringin interfaceIModule- Parameters:
entryID- The key.locale- TheLocaleto 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.
-
getStaticString
Description copied from interface:IModuleRetrieves a java.lang.String from the string resources XML files using three arguments and specifying the local.- Specified by:
getStaticStringin interfaceIModule- Parameters:
entryID- The key.locale- TheLocaleto 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.
-
getStaticString
public 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 interfaceIModule- Parameters:
entryID- The key.locale- TheLocaleto 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.
-
getExternalElement
Description copied from interface:IModuleRetrieves the externalElement of an object- Specified by:
getExternalElementin interfaceIModule- Parameters:
object- The object to retrieve the external element from- Returns:
- A com.axemble.vdoc.sdk.structs.ExternalElement value.
- Throws:
ModuleException- The default exception.
-
getExternalElement
Description copied from interface:IModuleRetrieves the externalElement of an object by specifying the language.- Specified by:
getExternalElementin interfaceIModule- Parameters:
object- The object to retrieve the external element fromlanguage- The requested language.- Returns:
- A com.axemble.vdoc.sdk.structs.ExternalElement value.
- Throws:
ModuleException- The default exception.
-
getElementFromExternalElement
Description copied from interface:IModuleRetrieves the object of externalElement- Specified by:
getElementFromExternalElementin interfaceIModule- Parameters:
externalElement- The externalElement to retrieve the object from- Returns:
- A java.lang.Object value.
- Throws:
ModuleException- The default exception.
-
generateSystemName
Description copied from interface:IModuleGenerate a valid system name for this module and this label.- Specified by:
generateSystemNamein interfaceIModule- Parameters:
label- label to normalize- Returns:
- normalized value
-