Interface IBasePortalModule

All Superinterfaces:
IModule, Remote
All Known Subinterfaces:
IPortalModule
All Known Implementing Classes:
PortalModuleImpl

@Deprecated(since="2026.0.0", forRemoval=true) public interface IBasePortalModule extends IModule
Deprecated, for removal: This API element is subject to removal in a future version.
use com.axemble.vdoc.sdk.modules.IPortalModule instead
The IPortalModule interface is the main entry point from where most of the methods to manipulate the full set of portal objects are made available.

Code sample :

 // creation of a portal module object
 IBasePortalModule portalModule = Modules.getPortalModule();
 try
 {
 }
 finally
 {
  // uninitialize the module
        Modules.releaseModule(portalModule);
 }
 

See Also:
  • Method Details

    • getConfiguration

      IConfiguration getConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the global configuration.
      Returns:
      a IConfiguration object.
    • verifyAuthentication

      boolean verifyAuthentication(String login, String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verifies login / password parameters against JAAS.
      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.
    • verifyToken

      IUser verifyToken(String token)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verifies authentication token
      Parameters:
      token - the token to verify
      Returns:
      null if the token is invalid or expired, the matching IUser if the token is valid
    • killCurrentSession

      void killCurrentSession() throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Kills the current session.
      Throws:
      PortalModuleException - default module exception.
    • killSession

      void killSession(jakarta.servlet.http.HttpSession session) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Kills a session.
      Parameters:
      session - the session to kill
      Throws:
      PortalModuleException - default module exception.
    • createNewSession

      void createNewSession(String login) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new session.
      Parameters:
      login - The login of the user to create the session.
      Throws:
      PortalModuleException - default module exception.
    • replaceCurrentSession

      void replaceCurrentSession(String login) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Replaces the current session.
      Parameters:
      login - The login of the user to replace the session with.
      Throws:
      PortalModuleException - default module exception.
    • addAuthenticationKey

      void addAuthenticationKey(String key, IUser user, Date expirationDate, String authorizedAddresses) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds an authenticationKey for a user The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKey
      Parameters:
      key -
      user -
      expirationDate -
      authorizedAddresses - (the user will be able to connect only from these ip addresses : null to allow any address)
      Throws:
      PortalModuleException
    • generateAuthenticationKey

      String generateAuthenticationKey(IUser user, Date expirationDate, String authorizedAddresses) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generates and adds an authenticationKey for a user The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKey
      Parameters:
      user -
      expirationDate -
      authorizedAddresses - (the user will be able to connect only from these ip addresses : null to allow any address)
      Returns:
      the authentication key
      Throws:
      PortalModuleException
    • getPortlet

      IPortlet getPortlet(IContext context, String name) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a portlet by its name.
      Parameters:
      context - The execution context.
      name - The name of the IPortlet object.
      Returns:
      The IPortlet object.
      Throws:
      PortalModuleException - default module exception.
    • getSecurityController

      ISecurityController getSecurityController(ISecuritySupport securitySupport) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a security controller on a specified object.
      Parameters:
      securitySupport - Any IElement that implements ISecuritySupport interface.
      Returns:
      The ISecurityController object.
      Throws:
      PortalModuleException - default module exception.
    • getJMSController

      IJMSController getJMSController() throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a JMS controller.
      Returns:
      the IJMSController object.
      Throws:
      PortalModuleException - default module exception.
    • getNotificationController

      INotificationController getNotificationController() throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the INotificationController instance
      Throws:
      PortalModuleException - default module exception
    • getAsyncJobQueueController

      IAsyncJobQueueController getAsyncJobQueueController()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets an AsyncJobQueue controller.
      Returns:
      the IAsyncJobQueueController object.
    • getHistoryEventController

      IEventController getHistoryEventController()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a History Event controller.
      Returns:
      the IEventController object.
    • verifyPassword

      IUser verifyPassword(String login, String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Allows to verify a password for a specified user login.
      Parameters:
      login - The login of the user.
      password - The password to verify.
      Returns:
      A IUser object.
    • verifyPassword

      IUser verifyPassword(String login, String password, jakarta.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Allows to verify a password for a specified user login.
      Parameters:
      login - The login of the user.
      password - The password to verify.
      request - The http Request
      Returns:
      A IUser object.
    • createMailingList

      IMailingList createMailingList(IContext context, IOrganization organization, String name, String label, int type) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new mailing list.
      Parameters:
      context - the execution context.
      organization - the IOrganization of 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 IMailingList object.
      Throws:
      PortalModuleException - default module exception.
    • getMailingList

      IMailingList getMailingList(IContext context, String name, int type) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a mailing list by its name.
      Parameters:
      context - the execution context.
      name - the name of the IMailingList object.
      type - the mailing list type
      Returns:
      a IMailingList object
      Throws:
      PortalModuleException - default module exception.
    • getMailingLists

      Collection<? extends IMailingList> getMailingLists(IContext context) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets all mailing lists.
      Parameters:
      context - the execution context.
      Returns:
      a java.util.Collection of IMailingList objects.
      Throws:
      PortalModuleException - default module exception.
    • getMailingList

      @Deprecated IMailingList getMailingList(Object object) throws PortalModuleException
      Deprecated.
      use getMailingList( IStorageKey key )
      Gets a mailing list object from its identifier.
      Parameters:
      object - A object.
      Returns:
      A IMailingList object.
      Throws:
      PortalModuleException - default module exception.
    • getMailingList

      IMailingList getMailingList(IStorageKey key) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a mailing list object from its identifier.
      Parameters:
      key - The key of the mailing list.
      Returns:
      A IMailingList object.
      Throws:
      PortalModuleException - default module exception.
    • send

      void send(jakarta.mail.internet.MimeMessage message) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Allows to send a message through the mail agent.
      Parameters:
      message - The MimeMessage object to send.
      Throws:
      PortalModuleException - default module exception.
    • getElementByProtocolURI

      IProtocolSupport getElementByProtocolURI(String protocolURI) throws ModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets an IElement object which implements IProtocolSupport interface.
      Parameters:
      protocolURI - The protocol URI as a java.lang.String.
      Returns:
      A IProtocolSupport object.
      Throws:
      ModuleException - default module exception.
    • getProtocolURI

      String getProtocolURI(IProtocolSupport protocolSupport) throws ModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a protocolURI from a IProtocolSupport object.
      Parameters:
      protocolSupport - The object to convert into a protocolURI.
      Returns:
      A String short protocolURI.
      Throws:
      ModuleException - default module exception.
    • getProtocolURI

      String getProtocolURI(IProtocolSupport protocolSupport, boolean useNames) throws ModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a protocolURI from a IProtocolSupport object.
      Parameters:
      protocolSupport - The object to convert into a protocolURI.
      useNames - use short URI (with id) or long URI (with system names)
      Returns:
      A String protocolURI.
      Throws:
      ModuleException - default module exception.
    • getIndexController

      IIndexController getIndexController(String name) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the controller of the specified index name.
      Parameters:
      name - The name of the index.
      Returns:
      A IIndexController object.
      Throws:
      PortalModuleException - default module exception.
    • validate

      <T> boolean validate(T value, String... rules)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Validate value with validator's rules
      Parameters:
      value - value to validate
      rules - rules to apply for validation
      Returns:
      true if the value is valid, false otherwise.
    • validate

      <T> boolean validate(Collection<T> values, String... rules)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Validate values with validator's rules
      Parameters:
      values - values to validate
      rules - rules to apply for validation
      Returns:
      true if all the values are valid, false otherwise.
    • getValidatorErrorMessage

      String getValidatorErrorMessage(String rule, String language)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the validator's error message
      Parameters:
      rule - The validator's name
      language - The language
      Returns:
      the validator's error message, null otherwise
    • executeTask

      IReport executeTask(Class<?> extensionClass, Map<String,String> parameters) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Execute a BaseTaskExtension
      Parameters:
      extensionClass - class to execute
      parameters - parameters sent to the map
      Returns:
      execution report
      Throws:
      PortalModuleException
    • getConnectionDefinition

      IConnectionDefinition<?> getConnectionDefinition(IContext context, String name) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a connection from its name.
      Parameters:
      context - The execution context.
      name - The name of the external reference.
      Returns:
      a IConnectionDefinition object.
      Throws:
      PortalModuleException - default module exception.
    • getConnectionDefinitionsByTypeName

      Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByTypeName(IContext context, String type) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a connection from its name.
      Parameters:
      context - The execution context.
      type - The type of the external reference.
      Returns:
      a Collection of IConnectionDefinition object.
      Throws:
      PortalModuleException - default module exception.
    • getConnectionDefinitionsByCategoryName

      Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByCategoryName(IContext context, String categoryName) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a connection from its name.
      Parameters:
      context - The execution context.
      categoryName - The categoryName of the external reference.
      Returns:
      a Collection of IConnectionDefinition object.
      Throws:
      PortalModuleException - default module exception.
    • getConnectionDefinitions

      Collection<? extends IConnectionDefinition<?>> getConnectionDefinitions(IContext context) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a collection of connections.
      Parameters:
      context - The execution context.
      Returns:
      a Collection of IConnectionDefinition object.
      Throws:
      PortalModuleException - default module exception.
    • createConnectionDefinition

      IConnectionDefinition<?> createConnectionDefinition(IContext context, IOrganization organization, String name, String label, String categoryName) throws PortalModuleException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a connection definition
      Parameters:
      context - The execution context.
      organization - the IOrganization organization 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
      Throws:
      PortalModuleException - default module exception.