Package com.axemble.vdoc.sdk.modules
Interface IBasePortalModule
- All Known Subinterfaces:
IPortalModule
- All Known Implementing Classes:
PortalModuleImpl
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 Summary
Modifier and TypeMethodDescriptionvoidaddAuthenticationKey(String key, IUser user, Date expirationDate, String authorizedAddresses) 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 _AuthenticationKeycreateConnectionDefinition(IContext context, IOrganization organization, String name, String label, String categoryName) Deprecated, for removal: This API element is subject to removal in a future version.Create a connection definitioncreateMailingList(IContext context, IOrganization organization, String name, String label, int type) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new mailing list.voidcreateNewSession(String login) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new session.executeTask(Class<?> extensionClass, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Execute a BaseTaskExtensiongenerateAuthenticationKey(IUser user, Date expirationDate, String authorizedAddresses) 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 _AuthenticationKeyDeprecated, for removal: This API element is subject to removal in a future version.Gets an AsyncJobQueue controller.Deprecated, for removal: This API element is subject to removal in a future version.Gets the global configuration.getConnectionDefinition(IContext context, String name) Deprecated, for removal: This API element is subject to removal in a future version.Gets a connection from its name.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitions(IContext context) Deprecated, for removal: This API element is subject to removal in a future version.Gets a collection of connections.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByCategoryName(IContext context, String categoryName) Deprecated, for removal: This API element is subject to removal in a future version.Gets a connection from its name.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByTypeName(IContext context, String type) Deprecated, for removal: This API element is subject to removal in a future version.Gets a connection from its name.getElementByProtocolURI(String protocolURI) Deprecated, for removal: This API element is subject to removal in a future version.Gets anIElementobject which implementsIProtocolSupportinterface.Deprecated, for removal: This API element is subject to removal in a future version.Gets a History Event controller.getIndexController(String name) Deprecated, for removal: This API element is subject to removal in a future version.Gets the controller of the specified index name.Deprecated, for removal: This API element is subject to removal in a future version.Gets a JMS controller.getMailingList(IContext context, String name, int type) Deprecated, for removal: This API element is subject to removal in a future version.Gets a mailing list by its name.Deprecated, for removal: This API element is subject to removal in a future version.Gets a mailing list object from its identifier.getMailingList(Object object) Deprecated.use getMailingList( IStorageKey key )Collection<? extends IMailingList> getMailingLists(IContext context) Deprecated, for removal: This API element is subject to removal in a future version.Gets all mailing lists.Deprecated, for removal: This API element is subject to removal in a future version.Get anINotificationControllergetPortlet(IContext context, String name) Deprecated, for removal: This API element is subject to removal in a future version.Gets a portlet by its name.getProtocolURI(IProtocolSupport protocolSupport) Deprecated, for removal: This API element is subject to removal in a future version.Gets a protocolURI from aIProtocolSupportobject.getProtocolURI(IProtocolSupport protocolSupport, boolean useNames) Deprecated, for removal: This API element is subject to removal in a future version.Gets a protocolURI from aIProtocolSupportobject.getSecurityController(ISecuritySupport securitySupport) Deprecated, for removal: This API element is subject to removal in a future version.Gets a security controller on a specified object.getValidatorErrorMessage(String rule, String language) Deprecated, for removal: This API element is subject to removal in a future version.Get the validator's error messagevoidDeprecated, for removal: This API element is subject to removal in a future version.Kills the current session.voidkillSession(jakarta.servlet.http.HttpSession session) Deprecated, for removal: This API element is subject to removal in a future version.Kills a session.voidreplaceCurrentSession(String login) Deprecated, for removal: This API element is subject to removal in a future version.Replaces the current session.voidsend(jakarta.mail.internet.MimeMessage message) Deprecated, for removal: This API element is subject to removal in a future version.Allows to send a message through the mail agent.<T> booleanvalidate(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<T> booleanDeprecated, for removal: This API element is subject to removal in a future version.Validate value with validator's rulesbooleanverifyAuthentication(String login, String password) Deprecated, for removal: This API element is subject to removal in a future version.Verifies login / password parameters against JAAS.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.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.verifyToken(String token) Deprecated, for removal: This API element is subject to removal in a future version.Verifies authentication tokenMethods inherited from interface com.axemble.vdoc.sdk.modules.IModule
beginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, findNativeClass, generateSystemName, 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
-
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
IConfigurationobject.
-
verifyAuthentication
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
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
IUserif the token is valid
-
killCurrentSession
Deprecated, for removal: This API element is subject to removal in a future version.Kills the current session.- Throws:
PortalModuleException- default module exception.
-
killSession
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
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
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
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 theIPortletobject.- Returns:
- The
IPortletobject. - 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
ISecurityControllerobject. - Throws:
PortalModuleException- default module exception.
-
getJMSController
Deprecated, for removal: This API element is subject to removal in a future version.Gets a JMS controller.- Returns:
- the
IJMSControllerobject. - Throws:
PortalModuleException- default module exception.
-
getNotificationController
Deprecated, for removal: This API element is subject to removal in a future version.Get anINotificationController- Returns:
- the
INotificationControllerinstance - 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
IAsyncJobQueueControllerobject.
-
getHistoryEventController
IEventController getHistoryEventController()Deprecated, for removal: This API element is subject to removal in a future version.Gets a History Event controller.- Returns:
- the
IEventControllerobject.
-
verifyPassword
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
IUserobject.
-
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
IUserobject.
-
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- theIOrganizationof 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.
-
getMailingList
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 theIMailingListobject.type- the mailing list type- Returns:
- a
IMailingListobject - Throws:
PortalModuleException- default module exception.
-
getMailingLists
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
IMailingListobjects. - Throws:
PortalModuleException- default module exception.
-
getMailingList
Deprecated.use getMailingList( IStorageKey key )Gets a mailing list object from its identifier.- Parameters:
object- A object.- Returns:
- A
IMailingListobject. - Throws:
PortalModuleException- default module exception.
-
getMailingList
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
IMailingListobject. - Throws:
PortalModuleException- default module exception.
-
send
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- TheMimeMessageobject to send.- Throws:
PortalModuleException- default module exception.
-
getElementByProtocolURI
Deprecated, for removal: This API element is subject to removal in a future version.Gets anIElementobject which implementsIProtocolSupportinterface.- Parameters:
protocolURI- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupportobject. - Throws:
ModuleException- default module exception.
-
getProtocolURI
Deprecated, for removal: This API element is subject to removal in a future version.Gets a protocolURI from aIProtocolSupportobject.- Parameters:
protocolSupport- The object to convert into a protocolURI.- Returns:
- A
Stringshort protocolURI. - Throws:
ModuleException- default module exception.
-
getProtocolURI
Deprecated, for removal: This API element is subject to removal in a future version.Gets a protocolURI from aIProtocolSupportobject.- 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.
-
getIndexController
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
IIndexControllerobject. - Throws:
PortalModuleException- default module exception.
-
validate
Deprecated, for removal: This API element is subject to removal in a future version.Validate value with validator's rules- Parameters:
value- value to validaterules- rules to apply for validation- Returns:
- true if the value is valid, false otherwise.
-
validate
Deprecated, for removal: This API element is subject to removal in a future version.Validate values with validator's rules- Parameters:
values- values to validaterules- rules to apply for validation- Returns:
- true if all the values are valid, false otherwise.
-
getValidatorErrorMessage
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 namelanguage- The language- Returns:
- the validator's error message, null otherwise
-
executeTask
IReport executeTask(Class<?> extensionClass, Map<String, String> parameters) throws PortalModuleExceptionDeprecated, for removal: This API element is subject to removal in a future version.Execute a BaseTaskExtension- Parameters:
extensionClass- class to executeparameters- 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
IConnectionDefinitionobject. - 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
Collectionof 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
Collectionof 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
Collectionof 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- theIOrganizationorganization of the connectionname- the name of the connectionlabel- The label of the connectioncategoryName- the type of the connection- Returns:
- the new connection definition
- Throws:
PortalModuleException- default module exception.
-