public interface IBasePortalModule extends IModule
Code sample :
// creation of a portal module object
IBasePortalModule portalModule = Modules.getPortalModule();
try
{
}
finally
{
// uninitialize the module
Modules.releaseModule(portalModule);
}
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationKey(String key,
IUser user,
Date expirationDate,
String authorizedAddresses)
Adds an authenticationKey for a user
The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKey
|
IConnectionDefinition<?> |
createConnectionDefinition(IContext context,
IOrganization organization,
String name,
String label,
String categoryName)
Create a connection definition
|
IMailingList |
createMailingList(IContext context,
IOrganization organization,
String name,
String label,
int type)
Creates a new mailing list.
|
void |
createNewSession(String login)
Creates a new session.
|
IReport |
executeTask(Class<?> extensionClass,
Map<String,String> parameters)
Execute a BaseTaskExtension
|
String |
generateAuthenticationKey(IUser user,
Date expirationDate,
String authorizedAddresses)
Generates and adds an authenticationKey for a user
The ExternalAuthenticationLoginModule will be automatically connect the user if he uses the parameter _AuthenticationKey
|
IAsyncJobQueueController |
getAsyncJobQueueController()
Gets an AsyncJobQueue controller.
|
IConfiguration |
getConfiguration()
Gets the global configuration.
|
IConnectionDefinition<?> |
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.
|
IProtocolSupport |
getElementByProtocolURI(String protocolURI)
Gets an
IElement object which implements IProtocolSupport interface. |
IEventController |
getHistoryEventController()
Gets a History Event controller.
|
IIndexController |
getIndexController(String name)
Gets the controller of the specified index name.
|
IJMSController |
getJMSController()
Gets a JMS controller.
|
IMailingList |
getMailingList(IContext context,
String name,
int type)
Gets a mailing list by its name.
|
IMailingList |
getMailingList(IStorageKey key)
Gets a mailing list object from its identifier.
|
IMailingList |
getMailingList(Object object)
Deprecated.
use getMailingList( IStorageKey key )
|
Collection<? extends IMailingList> |
getMailingLists(IContext context)
Gets all mailing lists.
|
INotificationController |
getNotificationController()
Get an
INotificationController |
IPortlet |
getPortlet(IContext context,
String name)
Gets a portlet by its name.
|
String |
getProtocolURI(IProtocolSupport protocolSupport)
Gets a protocolURI from a
IProtocolSupport object. |
String |
getProtocolURI(IProtocolSupport protocolSupport,
boolean useNames)
Gets a protocolURI from a
IProtocolSupport object. |
ISecurityController |
getSecurityController(ISecuritySupport securitySupport)
Gets a security controller on a specified object.
|
String |
getValidatorErrorMessage(String rule,
String language)
Get the validator's error message
|
void |
killCurrentSession()
Kills the current session.
|
void |
killSession(javax.servlet.http.HttpSession session)
Kills a session.
|
void |
replaceCurrentSession(String login)
Replaces the current session.
|
void |
send(javax.mail.internet.MimeMessage message)
Allows to send a message through the mail agent.
|
<T> boolean |
validate(Collection<T> values,
String... rules)
Validate values with validator's rules
|
<T> boolean |
validate(T value,
String... rules)
Validate value with validator's rules
|
boolean |
verifyAuthentication(String login,
String password)
Verifies login / password parameters against JAAS.
|
IUser |
verifyPassword(String login,
String password)
Allows to verify a password for a specified user login.
|
IUser |
verifyPassword(String login,
String password,
javax.servlet.http.HttpServletRequest request)
Allows to verify a password for a specified user login.
|
IUser |
verifyToken(String token)
Verifies authentication token
|
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
IConfiguration getConfiguration()
IConfiguration
object.boolean verifyAuthentication(String login, String password)
login
- The login of the user to verify.password
- The password of the user to verify.IUser verifyToken(String token)
token
- the token to verifyIUser
if the token is validvoid killCurrentSession() throws PortalModuleException
PortalModuleException
- default module exception.void killSession(javax.servlet.http.HttpSession session) throws PortalModuleException
session
- the session to killPortalModuleException
- default module exception.void createNewSession(String login) throws PortalModuleException
login
- The login of the user to create the session.PortalModuleException
- default module exception.void replaceCurrentSession(String login) throws PortalModuleException
login
- The login of the user to replace the session with.PortalModuleException
- default module exception.void addAuthenticationKey(String key, IUser user, Date expirationDate, String authorizedAddresses) throws PortalModuleException
key
- user
- expirationDate
- authorizedAddresses
- (the user will be able to connect only from these ip addresses : null to allow any address)PortalModuleException
String generateAuthenticationKey(IUser user, Date expirationDate, String authorizedAddresses) throws PortalModuleException
user
- expirationDate
- authorizedAddresses
- (the user will be able to connect only from these ip addresses : null to allow any address)PortalModuleException
IPortlet getPortlet(IContext context, String name) throws PortalModuleException
context
- The execution context.name
- The name of the IPortlet
object.IPortlet
object.PortalModuleException
- default module exception.ISecurityController getSecurityController(ISecuritySupport securitySupport) throws PortalModuleException
securitySupport
- Any IElement that implements ISecuritySupport interface.ISecurityController
object.PortalModuleException
- default module exception.IJMSController getJMSController() throws PortalModuleException
IJMSController
object.PortalModuleException
- default module exception.INotificationController getNotificationController() throws PortalModuleException
INotificationController
INotificationController
instancePortalModuleException
- default module exceptionIAsyncJobQueueController getAsyncJobQueueController()
IAsyncJobQueueController
object.IEventController getHistoryEventController()
IEventController
object.IUser verifyPassword(String login, String password)
login
- The login of the user.password
- The password to verify.IUser
object.IUser verifyPassword(String login, String password, javax.servlet.http.HttpServletRequest request)
login
- The login of the user.password
- The password to verify.request
- The http RequestIUser
object.IMailingList createMailingList(IContext context, IOrganization organization, String name, String label, int type) throws PortalModuleException
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.IMailingList
object.PortalModuleException
- default module exception.IMailingList getMailingList(IContext context, String name, int type) throws PortalModuleException
context
- the execution context.name
- the name of the IMailingList
object.type
- the mailing list typeIMailingList
objectPortalModuleException
- default module exception.Collection<? extends IMailingList> getMailingLists(IContext context) throws PortalModuleException
context
- the execution context.IMailingList
objects.PortalModuleException
- default module exception.@Deprecated IMailingList getMailingList(Object object) throws PortalModuleException
object
- A object.IMailingList
object.PortalModuleException
- default module exception.IMailingList getMailingList(IStorageKey key) throws PortalModuleException
key
- The key of the mailing list.IMailingList
object.PortalModuleException
- default module exception.void send(javax.mail.internet.MimeMessage message) throws PortalModuleException
message
- The MimeMessage
object to send.PortalModuleException
- default module exception.IProtocolSupport getElementByProtocolURI(String protocolURI) throws ModuleException
IElement
object which implements IProtocolSupport
interface.protocolURI
- The protocol URI as a java.lang.String.IProtocolSupport
object.ModuleException
- default module exception.String getProtocolURI(IProtocolSupport protocolSupport) throws ModuleException
IProtocolSupport
object.protocolSupport
- The object to convert into a protocolURI.String
short protocolURI.ModuleException
- default module exception.String getProtocolURI(IProtocolSupport protocolSupport, boolean useNames) throws ModuleException
IProtocolSupport
object.protocolSupport
- The object to convert into a protocolURI.useNames
- use short URI (with id) or long URI (with system names)String
protocolURI.ModuleException
- default module exception.IIndexController getIndexController(String name) throws PortalModuleException
name
- The name of the index.IIndexController
object.PortalModuleException
- default module exception.<T> boolean validate(T value, String... rules)
value
- value to validaterules
- rules to apply for validation<T> boolean validate(Collection<T> values, String... rules)
values
- values to validaterules
- rules to apply for validationString getValidatorErrorMessage(String rule, String language)
rule
- The validator's namelanguage
- The languageIReport executeTask(Class<?> extensionClass, Map<String,String> parameters) throws PortalModuleException
extensionClass
- class to executeparameters
- parameters sent to the mapPortalModuleException
IConnectionDefinition<?> getConnectionDefinition(IContext context, String name) throws PortalModuleException
context
- The execution context.name
- The name of the external reference.IConnectionDefinition
object.PortalModuleException
- default module exception.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByTypeName(IContext context, String type) throws PortalModuleException
context
- The execution context.type
- The type of the external reference.Collection
of IConnectionDefinition object.PortalModuleException
- default module exception.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitionsByCategoryName(IContext context, String categoryName) throws PortalModuleException
context
- The execution context.categoryName
- The categoryName of the external reference.Collection
of IConnectionDefinition object.PortalModuleException
- default module exception.Collection<? extends IConnectionDefinition<?>> getConnectionDefinitions(IContext context) throws PortalModuleException
context
- The execution context.Collection
of IConnectionDefinition object.PortalModuleException
- default module exception.IConnectionDefinition<?> createConnectionDefinition(IContext context, IOrganization organization, String name, String label, String categoryName) throws PortalModuleException
context
- The execution context.organization
- the IOrganization
organization of the connectionname
- the name of the connectionlabel
- The label of the connectioncategoryName
- the type of the connectionPortalModuleException
- default module exception.Copyright © 2022 Visiativ. All rights reserved.