Package de.elo.ix.client.plugin
Interface ScriptObjectFactory
- All Superinterfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release resources.Get interface that provides functions for access checking.Get interface that provides conversion functions for numeric and date values.Get DB connection for the current archive database.getDBConnectionForDataSource
(String dataSource) Get DB connection for the given data source.getDBConnectionForSchema
(String dataSource, String schemaName) Get interface that provides helper functions to inherit keywording.Get connection object for user attached to the given execution context.Get connection object with administrator permissions.Get internal text resources of Indexserver.getSendMail
(String mailResource) Get interface to send mails.Get interface that provides helper functions to access Sord objects.void
throwException
(int code, String s) Throws an exception with the given code and message.void
throwException
(int code, String s, Throwable e) Throws an exception with the given code, message and cause.void
Throws an exception with given message.
-
Method Details
-
throwException
Throws an exception with given message. Throws an exception with codeIXExceptionC.SCRIPT_ERROR
.- Parameters:
s
-- Throws:
byps.RemoteException
-
throwException
Throws an exception with the given code and message.- Parameters:
code
- Exception code, one of the constants inIXExceptionC
.s
- Message- Throws:
byps.RemoteException
-
throwException
Throws an exception with the given code, message and cause.- Parameters:
code
- Exception code, one of the constants inIXExceptionC
.s
- Messagee
- Cause- Throws:
byps.RemoteException
-
getIxConnect
IXConnection getIxConnect()Get connection object for user attached to the given execution context. This function internally callsgetIxConnect()
.- Returns:
- IXConnection object.
- Throws:
UncheckedRemoteException
-
getIxConnectAdmin
IXConnection getIxConnectAdmin()Get connection object with administrator permissions. This function internally callsgetIxConnectAdmin()
.- Returns:
- IXConnection object.
- Throws:
UncheckedRemoteException
-
getAccess
Access getAccess()Get interface that provides functions for access checking.- Returns:
- Utility interface.
-
getConvert
Convert getConvert()Get interface that provides conversion functions for numeric and date values.- Returns:
- Utility interface.
-
getSordUtil
SordUtil getSordUtil()Get interface that provides helper functions to access Sord objects.- Returns:
- Utility interface.
-
getInheritKeywording
InheritKeywording getInheritKeywording()Get interface that provides helper functions to inherit keywording.- Returns:
- Utility interface.
-
getSendMail
Get interface to send mails.- Parameters:
mailResource
- Mail resource as defined in Tomcat configuration.- Returns:
- Utility interface.
-
getDBConnection
DBConnection getDBConnection()Get DB connection for the current archive database. This function internally callsgetDBConnection()
.- Returns:
- DBConnection object.
- Throws:
UncheckedRemoteException
-
getDBConnectionForDataSource
Get DB connection for the given data source. The data source has to be declared in Tomcat's context.xml file. More information can be found atDBConnection
This function internally callsgetDBConnectionForDataSource(String)
.- Parameters:
dataSource
- Data source name as defined in Tomcat configuration.- Returns:
- DBConnection object.
- Throws:
UncheckedRemoteException
-
getDBConnectionForSchema
-
getResourceBundle
ResourceBundle getResourceBundle()Get internal text resources of Indexserver.- Returns:
- ResourceBundle object
-
close
void close()Release resources. EIX-3883: close without Exception to avoid compiler warning "try".- Specified by:
close
in interfaceAutoCloseable
-