Package com.axemble.vdoc.sdk.impl
Class PortalModuleImpl
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.CoreModule
com.axemble.vdoc.sdk.impl.PortalModuleImpl
- All Implemented Interfaces:
- IBasePortalModule,- IModule,- IPortalModule,- Serializable,- Remote
- Author:
- vlygeros
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic classModule 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 !
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static HashMapprotected static Map<String, PortalModuleImpl.IURIConverter> Fields inherited from class com.axemble.vdoc.sdk.impl.CoreModuleLOGGER, properties
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Use com.axemble.vdoc.sdk.Modules.getPortalModule() instead.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAuthenticationKey(String key, IUser user, Date expirationDate, String authorizedAddress) Adds an authenticationKey for a user The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKeycreateConnectionDefinition(IContext context, IOrganization organization, String name, String label, String categoryName) Create a connection definitioncreateMailingList(IContext context, IOrganization organization, String name, String label, int type) Creates a new mailing list.voidcreateNewSession(String login) Creates a new session.executeTask(Class<?> extensionClass, Map<String, String> parameters) Execute a BaseTaskExtensionfindNativeClass(Class interfaceClass) Allows to retrieve the inner native class.generateAuthenticationKey(IUser user, Date expirationDate, String authorizedAddress) Generates and adds an authenticationKey for a user The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKeygenerateSystemName(String label) Generate a valid system name for this module and this label.Gets an AsyncJobQueue controller.getConnectionDefinition(IContext context, String name) Gets a connection from its name.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitions(IContext context) Gets a collection of connections.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByCategoryName(IContext context, String categoryName) Gets a connection from its name.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByTypeName(IContext context, String type) Gets a connection from its name.protected static PortalModuleImpl.IURIConvertergetConverter(String key) getElementByProtocolURI(String protocolURI) Gets anIElementobject which implementsIProtocolSupportinterface.Gets a History Event controller.getIndexController(String name) Gets the controller of the specified index name.Gets a JMS controller.getMailingList(IContext context, String name, int type) Gets a mailing list by its name.Gets a mailing list object from its identifier.getMailingList(Object object) Gets a mailing list object from its identifier.Collection<? extends IMailingList> getMailingLists(IContext context) Gets all mailing lists.protected static ClassgetNativeClass(Class interfaceClass) Get anINotificationControllergetPortlet(IContext context, String name) Gets a portlet by its name.getProtocolURI(IProtocolSupport protocolSupport) Gets a protocolURI from aIProtocolSupportobject.getProtocolURI(IProtocolSupport protocolSupport, boolean useNames) Gets a protocolURI from aIProtocolSupportobject.getSecurityController(ISecuritySupport securitySupport) Gets a security controller on a specified object.getValidatorErrorMessage(String rule, String language) Get the validator's error messagevoidKills the current session.voidkillSession(jakarta.servlet.http.HttpSession session) Kills a session.voidreplaceCurrentSession(String login) Replaces the current session.voidsend(jakarta.mail.internet.MimeMessage message) Allows to send a message through the mail agent.<T> booleanvalidate(Collection<T> values, String... rules) Validate values with validator's rules<T> booleanValidate value with validator's rulesbooleanverifyAuthentication(String login, String password) Verifies login / password parameters against JAAS.verifyPassword(String login, String password) Allows to verify a password for a specified user login.verifyPassword(String login, String password, jakarta.servlet.http.HttpServletRequest request) Allows to verify a password for a specified user login.verifyToken(String token) Verifies authentication tokenMethods inherited from class com.axemble.vdoc.sdk.impl.CoreModulebeginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, createAttachment, createAttachment, createAttachment, createAttachment, createProfile, getAnonymous, getAnonymousContext, getComponentsFactory, getConfiguration, getContext, getContext, getContext, getContextByLogin, getDefinitionsFactory, getElementFromExternalElement, getExternalElement, getExternalElement, getLanguage, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProfile, getProfile, getProfiles, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getUser, getUser, getUserByLogin, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitializeMethods 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.IBasePortalModulegetConfigurationMethods inherited from interface com.axemble.vdoc.sdk.modules.IModulebeginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, getAnonymous, getAnonymousContext, getContext, getContext, getContextByLogin, getElementFromExternalElement, getExternalElement, getExternalElement, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getTranslation, getTranslationForLanguage, getTranslationKey, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
- 
Field Details- 
uriConverters
- 
nativeClasses
 
- 
- 
Constructor Details- 
PortalModuleImplDeprecated.Use com.axemble.vdoc.sdk.Modules.getPortalModule() instead.
 
- 
- 
Method Details- 
getConverter
- 
getElementByProtocolURIDescription copied from interface:IBasePortalModuleGets anIElementobject which implementsIProtocolSupportinterface.- Specified by:
- getElementByProtocolURIin interface- IBasePortalModule
- Overrides:
- getElementByProtocolURIin class- CoreModule
- Parameters:
- protocolURI- The protocol URI as a java.lang.String.
- Returns:
- A IProtocolSupportobject.
- Throws:
- ModuleException- default module exception.
 
- 
getProtocolURIDescription copied from interface:IBasePortalModuleGets a protocolURI from aIProtocolSupportobject.- Specified by:
- getProtocolURIin interface- IBasePortalModule
- Parameters:
- protocolSupport- The object to convert into a protocolURI.
- Returns:
- A Stringshort protocolURI.
- Throws:
- ModuleException- default module exception.
 
- 
getProtocolURIpublic String getProtocolURI(IProtocolSupport protocolSupport, boolean useNames) throws ModuleException Description copied from interface:IBasePortalModuleGets a protocolURI from aIProtocolSupportobject.- Specified by:
- getProtocolURIin interface- IBasePortalModule
- Parameters:
- protocolSupport- The object to convert into a protocolURI.
- useNames- use short URI (with id) or long URI (with system names)
- Returns:
- A StringprotocolURI.
- Throws:
- ModuleException- default module exception.
 
- 
getNativeClass
- 
findNativeClassDescription copied from interface:IModuleAllows to retrieve the inner native class.- Specified by:
- findNativeClassin interface- IModule
- Overrides:
- findNativeClassin class- CoreModule
- Parameters:
- interfaceClass- A class type.
- Returns:
- The inner native class.
 
- 
createNewSessionDescription copied from interface:IBasePortalModuleCreates a new session.- Specified by:
- createNewSessionin interface- IBasePortalModule
- Parameters:
- login- The login of the user to create the session.
- Throws:
- PortalModuleException- default module exception.
 
- 
killCurrentSessionDescription copied from interface:IBasePortalModuleKills the current session.- Specified by:
- killCurrentSessionin interface- IBasePortalModule
- Throws:
- PortalModuleException- default module exception.
 
- 
killSessionDescription copied from interface:IBasePortalModuleKills a session.- Specified by:
- killSessionin interface- IBasePortalModule
- Parameters:
- session- the session to kill
- Throws:
- PortalModuleException- default module exception.
 
- 
replaceCurrentSessionDescription copied from interface:IBasePortalModuleReplaces the current session.- Specified by:
- replaceCurrentSessionin interface- IBasePortalModule
- Parameters:
- login- The login of the user to replace the session with.
- Throws:
- PortalModuleException- default module exception.
 
- 
addAuthenticationKeypublic void addAuthenticationKey(String key, IUser user, Date expirationDate, String authorizedAddress) throws PortalModuleException Description copied from interface:IBasePortalModuleAdds an authenticationKey for a user The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKey- Specified by:
- addAuthenticationKeyin interface- IBasePortalModule
- Parameters:
- key-
- user-
- expirationDate-
- authorizedAddress- (the user will be able to connect only from these ip addresses : null to allow any address)
- Throws:
- PortalModuleException
 
- 
generateAuthenticationKeypublic String generateAuthenticationKey(IUser user, Date expirationDate, String authorizedAddress) throws PortalModuleException Description copied from interface:IBasePortalModuleGenerates and adds an authenticationKey for a user The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKey- Specified by:
- generateAuthenticationKeyin interface- IBasePortalModule
- Parameters:
- user-
- expirationDate-
- authorizedAddress- (the user will be able to connect only from these ip addresses : null to allow any address)
- Returns:
- the authentication key
- Throws:
- PortalModuleException
 
- 
getPortletDescription copied from interface:IBasePortalModuleGets a portlet by its name.- Specified by:
- getPortletin interface- IBasePortalModule
- Parameters:
- context- The execution context.
- name- The name of the- IPortletobject.
- Returns:
- The IPortletobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
getSecurityControllerpublic ISecurityController getSecurityController(ISecuritySupport securitySupport) throws PortalModuleException Description copied from interface:IBasePortalModuleGets a security controller on a specified object.- Specified by:
- getSecurityControllerin interface- IBasePortalModule
- Parameters:
- securitySupport- Any IElement that implements ISecuritySupport interface.
- Returns:
- The ISecurityControllerobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
getJMSControllerDescription copied from interface:IBasePortalModuleGets a JMS controller.- Specified by:
- getJMSControllerin interface- IBasePortalModule
- Returns:
- the IJMSControllerobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
getNotificationControllerDescription copied from interface:IBasePortalModuleGet anINotificationController- Specified by:
- getNotificationControllerin interface- IBasePortalModule
- Returns:
- the INotificationControllerinstance
- Throws:
- PortalModuleException- default module exception
 
- 
getAsyncJobQueueControllerDescription copied from interface:IBasePortalModuleGets an AsyncJobQueue controller.- Specified by:
- getAsyncJobQueueControllerin interface- IBasePortalModule
- Returns:
- the IAsyncJobQueueControllerobject.
 
- 
getHistoryEventControllerDescription copied from interface:IBasePortalModuleGets a History Event controller.- Specified by:
- getHistoryEventControllerin interface- IBasePortalModule
- Returns:
- the IEventControllerobject.
 
- 
verifyAuthenticationDescription copied from interface:IBasePortalModuleVerifies login / password parameters against JAAS.- Specified by:
- verifyAuthenticationin interface- IBasePortalModule
- Parameters:
- login- The login of the user to verify.
- password- The password of the user to verify.
- Returns:
- true if the parameters are valid, false otherwise.
 
- 
verifyPasswordDescription copied from interface:IBasePortalModuleAllows to verify a password for a specified user login.- Specified by:
- verifyPasswordin interface- IBasePortalModule
- Parameters:
- login- The login of the user.
- password- The password to verify.
- Returns:
- A IUserobject.
 
- 
verifyPasswordpublic IUser verifyPassword(String login, String password, jakarta.servlet.http.HttpServletRequest request) Description copied from interface:IBasePortalModuleAllows to verify a password for a specified user login.- Specified by:
- verifyPasswordin interface- IBasePortalModule
- Parameters:
- login- The login of the user.
- password- The password to verify.
- request- The http Request
- Returns:
- A IUserobject.
 
- 
getMailingListpublic IMailingList getMailingList(IContext context, String name, int type) throws PortalModuleException Description copied from interface:IBasePortalModuleGets a mailing list by its name.- Specified by:
- getMailingListin interface- IBasePortalModule
- Parameters:
- context- the execution context.
- name- the name of the- IMailingListobject.
- type- the mailing list type
- Returns:
- a IMailingListobject
- Throws:
- PortalModuleException- default module exception.
 
- 
createMailingListpublic IMailingList createMailingList(IContext context, IOrganization organization, String name, String label, int type) throws PortalModuleException Description copied from interface:IBasePortalModuleCreates a new mailing list.- Specified by:
- createMailingListin interface- IBasePortalModule
- Parameters:
- context- the execution context.
- organization- the- IOrganizationof the mailing list.
- name- the system name of the mailing list.
- label- the label of the mailing list.
- type- the type of the mailing list.
- Returns:
- a IMailingListobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
getMailingListspublic Collection<? extends IMailingList> getMailingLists(IContext context) throws PortalModuleException Description copied from interface:IBasePortalModuleGets all mailing lists.- Specified by:
- getMailingListsin interface- IBasePortalModule
- Parameters:
- context- the execution context.
- Returns:
- a java.util.Collection of IMailingListobjects.
- Throws:
- PortalModuleException- default module exception.
 
- 
getMailingListDescription copied from interface:IBasePortalModuleGets a mailing list object from its identifier.- Specified by:
- getMailingListin interface- IBasePortalModule
- Parameters:
- object- A object.
- Returns:
- A IMailingListobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
getMailingListDescription copied from interface:IBasePortalModuleGets a mailing list object from its identifier.- Specified by:
- getMailingListin interface- IBasePortalModule
- Parameters:
- key- The key of the mailing list.
- Returns:
- A IMailingListobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
sendDescription copied from interface:IBasePortalModuleAllows to send a message through the mail agent.- Specified by:
- sendin interface- IBasePortalModule
- Parameters:
- message- The- MimeMessageobject to send.
- Throws:
- PortalModuleException- default module exception.
 
- 
getIndexControllerDescription copied from interface:IBasePortalModuleGets the controller of the specified index name.- Specified by:
- getIndexControllerin interface- IBasePortalModule
- Parameters:
- name- The name of the index.
- Returns:
- A IIndexControllerobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
validateDescription copied from interface:IBasePortalModuleValidate value with validator's rules- Specified by:
- validatein interface- IBasePortalModule
- Parameters:
- value- value to validate
- rules- rules to apply for validation
- Returns:
- true if the value is valid, false otherwise.
 
- 
validateDescription copied from interface:IBasePortalModuleValidate values with validator's rules- Specified by:
- validatein interface- IBasePortalModule
- Parameters:
- values- values to validate
- rules- rules to apply for validation
- Returns:
- true if all the values are valid, false otherwise.
 
- 
getValidatorErrorMessageDescription copied from interface:IBasePortalModuleGet the validator's error message- Specified by:
- getValidatorErrorMessagein interface- IBasePortalModule
- Parameters:
- rule- The validator's name
- language- The language
- Returns:
- the validator's error message, null otherwise
 
- 
executeTaskpublic IReport executeTask(Class<?> extensionClass, Map<String, String> parameters) throws PortalModuleExceptionDescription copied from interface:IBasePortalModuleExecute a BaseTaskExtension- Specified by:
- executeTaskin interface- IBasePortalModule
- Parameters:
- extensionClass- class to execute
- parameters- parameters sent to the map
- Returns:
- execution report
- Throws:
- PortalModuleException
 
- 
createConnectionDefinitionpublic IConnectionDefinition<?> createConnectionDefinition(IContext context, IOrganization organization, String name, String label, String categoryName) Description copied from interface:IBasePortalModuleCreate a connection definition- Specified by:
- createConnectionDefinitionin interface- IBasePortalModule
- Parameters:
- context- The execution context.
- organization- the- IOrganizationorganization of the connection
- name- the name of the connection
- label- The label of the connection
- categoryName- the type of the connection
- Returns:
- the new connection definition
 
- 
getConnectionDefinitionpublic IConnectionDefinition<?> getConnectionDefinition(IContext context, String name) throws PortalModuleException Description copied from interface:IBasePortalModuleGets a connection from its name.- Specified by:
- getConnectionDefinitionin interface- IBasePortalModule
- Parameters:
- context- The execution context.
- name- The name of the external reference.
- Returns:
- a IConnectionDefinitionobject.
- Throws:
- PortalModuleException- default module exception.
 
- 
getConnectionDefinitionspublic Collection<? extends IConnectionDefinition<?>> getConnectionDefinitions(IContext context) throws PortalModuleException Description copied from interface:IBasePortalModuleGets a collection of connections.- Specified by:
- getConnectionDefinitionsin interface- IBasePortalModule
- Parameters:
- context- The execution context.
- Returns:
- a Collectionof IConnectionDefinition object.
- Throws:
- PortalModuleException- default module exception.
 
- 
verifyTokenDescription copied from interface:IBasePortalModuleVerifies authentication token- Specified by:
- verifyTokenin interface- IBasePortalModule
- Parameters:
- token- the token to verify
- Returns:
- null if the token is invalid or expired, the matching IUserif the token is valid
 
- 
getConnectionDefinitionsByTypeNamepublic Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByTypeName(IContext context, String type) throws PortalModuleException Description copied from interface:IBasePortalModuleGets a connection from its name.- Specified by:
- getConnectionDefinitionsByTypeNamein interface- IBasePortalModule
- Parameters:
- context- The execution context.
- type- The type of the external reference.
- Returns:
- a Collectionof IConnectionDefinition object.
- Throws:
- PortalModuleException- default module exception.
 
- 
getConnectionDefinitionsByCategoryNamepublic Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByCategoryName(IContext context, String categoryName) throws PortalModuleException Description copied from interface:IBasePortalModuleGets a connection from its name.- Specified by:
- getConnectionDefinitionsByCategoryNamein interface- IBasePortalModule
- Parameters:
- context- The execution context.
- categoryName- The categoryName of the external reference.
- Returns:
- a Collectionof IConnectionDefinition object.
- Throws:
- PortalModuleException- default module exception.
 
- 
generateSystemNameDescription copied from interface:IModuleGenerate a valid system name for this module and this label.- Specified by:
- generateSystemNamein interface- IModule
- Parameters:
- label- label to normalize
- Returns:
- normalized value
 
 
-