Package | Description |
---|---|
io.toro.martini | |
io.toro.martini.exception | |
io.toro.martini.jabber.model | |
io.toro.martini.util |
Modifier and Type | Method and Description |
---|---|
static String |
MarshallerMethods.asJSON(Object o)
Use the ESB pre-configured Jackson/JAXB marshaller to convert an object to a json string
|
static String |
MarshallerMethods.asXML(Object o)
Use the ESB pre-configured Jackson/JAXB marshaller to convert an object to a json string
|
static <T> T |
CoreMethods.bean(String name)
Gets a bean from the spring context of the TORO Martini package that the script is in.
|
static String |
VfsMethods.copyTo(String sourceUrl,
String targetUrl)
Copy the item found in the source url to the target url.
|
static JabberConnection |
JabberMethods.createJabberConnection(String name,
Map configuration)
Creates a jabber connection based on the map configuration
|
static JabberConnection |
JabberMethods.createJabberConnection(String name,
Map configuration,
Closure closure)
Creates a jabber connection based on the map configuration
|
static <T> T |
CsvMethods.eachRecord(File self,
char delimiter,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
Closure<T> closure)
Parse CSV file.
|
static <T> T |
CsvMethods.eachRecord(File self,
CSVFormat format,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
char delimiter,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
Closure<T> closure)
Parse CSV file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
CSVFormat format,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
int sheet,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(File self,
int firstLine,
List indexes,
Closure<T> closure)
Parse a fixed-width file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
int firstLine,
List indexes,
Closure<T> closure)
Parse a fixed-width file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
char delimiter,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
CSVFormat format,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
char delimiter,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
CSVFormat format,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(InputStream self,
String mimeType,
int firstLine,
int sheet,
Closure<T> closure)
Parse a flat file.
|
static <T> T |
CsvMethods.eachRecord(Reader self,
int firstLine,
List indexes,
Closure<T> closure)
Parse a fixed-width file.
|
static String |
StringMethods.encrypt(String plainKey)
Encrypt the plain text password.
|
static FileObject |
VfsMethods.file(String url)
Gets the
FileObject of a file that's on a virtual file system. |
static FileObject |
VfsMethods.file(String url,
Map properties)
Gets the
FileObject of a file that's on a virtual file system. |
static io.toro.gloop.object.property.GloopModel |
UserGroupMethods.findUsers(Closure predicateClosure) |
static <T> T |
MarshallerMethods.fromJSON(File jsonFile,
Class<T> returnType)
Converts a JSON file to the specified return type.
|
static <T> T |
MarshallerMethods.fromJSON(InputStream jsonInputStream,
Class<T> returnType)
Converts a JSON from an InputStream to a specified class.
|
static <T> T |
MarshallerMethods.fromJSON(Reader jsonReader,
Class<T> returnType)
Converts a JSON from a reader to a specified class.
|
static <T> T |
MarshallerMethods.fromJSON(String jsonString,
Class<T> returnType)
Convert a JSON String to the specified return type.
|
static <T> T |
MarshallerMethods.fromJSON(URL jsonURL,
Class<T> returnType)
Converts a JSON data returned by the given URL to a class.
|
static <T> T |
MarshallerMethods.fromXML(File xmlFile,
Class<T> returnType)
Converts an XML file to the specified return type.
|
static <T> T |
MarshallerMethods.fromXML(InputStream xmlInputStream,
Class<T> returnType)
Converts an XML from an InputStream to a specified class.
|
static <T> T |
MarshallerMethods.fromXML(Reader xmlReader,
Class<T> returnType)
Converts an XML from a reader to a specified class.
|
static <T> T |
MarshallerMethods.fromXML(String xmlString,
Class<T> returnType)
Convert an XML string to the specified return type.
|
static <T> T |
MarshallerMethods.fromXML(URL xmlURL,
Class<T> returnType)
Converts an XML data returned by the given URL will be unmarshalled.
|
static io.toro.gloop.object.property.GloopModel |
UserGroupMethods.generateToken(String userName) |
static String |
GroovyMethods.getPackageProperty(String key)
Get a Martini package property
|
static String |
GroovyMethods.getPackageProperty(String key,
String defaultValue)
Get a Martini package property
|
static String[] |
GroovyMethods.getPackagePropertyArray(String key)
Get a Martini package property as Array.
|
static String[] |
GroovyMethods.getPackagePropertyArray(String key,
String[] defaultValue)
Get a Martini package property as Array.
|
static String |
GroovyMethods.getTOROProperty(String key)
Deprecated.
As of 3.0, this method has been renamed. Please prefer
GroovyMethods.getPackageProperty(String) . |
static String |
GroovyMethods.getTOROProperty(String key,
String defaultValue)
Deprecated.
As of 3.0, this method has been renamed. Please prefer
GroovyMethods.getPackageProperty(String, String) . |
static String[] |
GroovyMethods.getTOROPropertyArray(String key)
Deprecated.
As of 3.0, this method has been renamed. Please prefer
GroovyMethods.getPackagePropertyArray(String) . |
static String[] |
GroovyMethods.getTOROPropertyArray(String key,
String[] defaultValue)
Deprecated.
As of 3.0, this method has been renamed. Please prefer
GroovyMethods.getPackagePropertyArray(String, String[]) . |
static io.toro.gloop.object.property.GloopModel |
TrackerMethods.getTrackerDocument(String internalId) |
static io.toro.gloop.object.property.GloopModel |
TrackerMethods.getTrackerDocumentStateContent(Long documentStateId) |
static io.toro.gloop.object.property.GloopModel |
VfsMethods.getVfsFile(String url,
io.toro.gloop.object.property.GloopModel vfsFileSystemOptions,
io.toro.gloop.engine.GloopExecutionContext context) |
static String |
HttpClientMethods.http(String uri)
Send a HTTP GET Request
|
static String |
HttpClientMethods.http(String uri,
Closure<String> body)
Send a HTTP POST Request
|
static String |
HttpClientMethods.http(String uri,
Map params)
Send a HTTP Request
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers)
Send a HTTP Request
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers,
byte[] body)
Send a HTTP Request
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers,
Closure<String> body)
Send a HTTP Request
|
static String |
HttpClientMethods.http(String uri,
Map params,
Map headers,
String body)
Send a HTTP Request
|
static String |
HttpClientMethods.http(String uri,
String body)
Send a HTTP POST Request
|
static void |
JabberMethods.jabber(String endpointName,
Closure closure)
Invoke a closure passing a
JabberConnection created from jabber connection. |
static void |
JabberMethods.jabberChat(String endpointName,
String jid,
Closure closure)
Invoke a closure passing a
Chat created from jabber connection. |
static void |
JabberMethods.jabberGroupchat(String endpointName,
String roomJID,
Closure closure)
Invoke a closure passing a
MultiUserChat created from jabber connection. |
static <T> T |
CoreMethods.jndi(String name)
Gets an object from the JNDI context of the Martini Runtime server.
|
static io.toro.gloop.object.property.GloopModel |
EmailMethods.readEmail(String protocol,
String login,
String password,
String host,
int port,
String folder,
boolean delete,
boolean debug) |
static Message[] |
VfsMethods.receive(String url)
Retrieve an array of unread email messages.
|
static Message[] |
VfsMethods.receive(String url,
boolean delete)
Retrieve an array of unread email messages
|
static String |
GroovyMethods.removePackageProperty(String key)
Delete a Martini package property
|
static String |
GroovyMethods.removeTOROProperty(String key)
Deprecated.
As of 3.0, this method has been renamed. Please prefer
GroovyMethods.removePackageProperty(String) . |
static void |
UserGroupMethods.removeUserFromGroup(String username,
String groupname) |
static String |
CoreMethods.resolveCode(String localeISO,
MessageSourceResolvable resolvable)
Try to resolve the message using all the attributes contained within
MessageSourceResolvable argument
that was passed in. |
static String |
CoreMethods.resolveCode(String localeISO,
String code,
Object... args)
Try to resolve the message.
|
static String |
CoreMethods.resolveCode(String localeISO,
String code,
String defaultMessage,
Object... args)
Try to resolve the message.
|
static io.toro.martini.tracker.DocumentSearchResult |
TrackerMethods.searchTracker(String query)
|
static io.toro.martini.tracker.DocumentSearchResult |
TrackerMethods.searchTracker(String query,
String... facets)
Search Tracker Search Index, with facets
|
static io.toro.gloop.object.property.GloopModel |
TrackerMethods.searchTracker(String query,
String[] externalId,
String[] documentTypeId,
String[] stateName,
String[] senderId,
String[] receiverId,
Date startDate,
Date endDate,
String[] year,
String[] month,
String[] day,
String[] userName,
int pageSize,
int page)
Search for indexed tracker documents based on the given query and search parameters.
|
static byte[] |
VfsMethods.send(String url,
byte[] data)
Sends bytes of data to a remote location.
|
static byte[] |
VfsMethods.send(String url,
byte[] data,
Map properties) |
static File |
VfsMethods.send(String url,
File file)
Sends a file to a remote location.
|
static void |
VfsMethods.send(String url,
InputStream is)
Sends stream to a remote location.
|
static File |
VfsMethods.send(String url,
Map properties,
File file)
Sends a file to a remote location.
|
static void |
VfsMethods.send(String url,
Map properties,
InputStream is)
Sends a stream to a remote location.
|
static void |
VfsMethods.send(String url,
Map properties,
Reader reader)
Sends the contents of a reader to a remote location.
|
static void |
VfsMethods.send(String url,
Map properties,
Reader data,
List<DataSource> attachment)
Sends bytes of data to a remote location.
|
static String |
VfsMethods.send(String url,
Map properties,
String data)
Sends string to a remote location.
|
static String |
VfsMethods.send(String url,
Map properties,
String data,
List<DataSource> attachment)
Sends string to a remote location.
|
static void |
VfsMethods.send(String url,
Reader reader)
Sends the contents of a reader to a remote location.
|
static String |
VfsMethods.send(String url,
String data)
Sends string to a remote location.
|
static io.toro.gloop.object.property.GloopModel |
EmailMethods.sendEmail(String protocol,
String login,
String password,
String server,
int port,
String from,
List<io.toro.gloop.object.property.GloopModel> to,
List<io.toro.gloop.object.property.GloopModel> cc,
List<io.toro.gloop.object.property.GloopModel> bcc,
String subject,
boolean isHtml,
String body,
List attachments,
List<io.toro.gloop.object.property.GloopModel> headers) |
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
Object bcc,
String subject)
One-Liner method that sends an email
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
Object bcc,
String subject,
List<DataSource> attachments)
One-Liner method that sends an email
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
String subject)
One-Liner method that sends an email
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
Object cc,
String subject,
List<DataSource> attachments)
One-Liner method that sends an email
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
String subject)
One-Liner method that sends an email
|
static String |
EmailMethods.sendEmail(String body,
String protocol,
String login,
String password,
String server,
int port,
String from,
Object to,
String subject,
List<DataSource> attachments)
One-Liner method that sends an email
|
static void |
JabberMethods.sendGroupMessage(String endpointName,
String nickname,
String roomJID,
boolean leaveOnFinish,
String message)
Send group message to a chatroom.
|
static void |
JabberMethods.sendGroupMessage(String endpointName,
String nickname,
String password,
String roomJID,
boolean leaveOnFinish,
String message)
Send group message to a chatroom.
|
static void |
JabberMethods.sendMessage(String endpointName,
String jid,
String message)
Send a message to a user.
|
static byte[] |
VfsMethods.sendTo(byte[] data,
String url)
Sends bytes of data to a remote location.
|
static File |
VfsMethods.sendTo(File file,
String url)
Sends a file to a remote location.
|
static File |
VfsMethods.sendTo(File file,
String url,
Map properties)
Sends a file to a remote location.
|
static void |
VfsMethods.sendTo(InputStream is,
String url)
Sends stream to a remote location.
|
static void |
VfsMethods.sendTo(InputStream is,
String url,
Map properties)
Sends a stream to a remote location.
|
static void |
VfsMethods.sendTo(Reader reader,
String url)
Sends the contents of a reader to a remote location.
|
static void |
VfsMethods.sendTo(Reader reader,
String url,
Map properties)
Sends the contents of a reader to a remote location.
|
static byte[] |
VfsMethods.sendTo(String url,
Map properties,
byte[] data)
Sends bytes of data to a remote location.
|
static String |
VfsMethods.sendTo(String data,
String url)
Sends string to a remote location.
|
static String |
VfsMethods.sendTo(String data,
String url,
Map properties)
Sends string to a remote location.
|
static io.toro.martini.solr.MartiniSolrClient |
SolrMethods.solr(String coreName)
Get configured SolrServer for specific core
|
static Sql |
SqlMethods.sql(String poolName)
Get a groovy SQL object that is connected to a pre-defined Database connection pool in Martini Runtime.
|
static Object |
SqlMethods.sql(String poolName,
Closure c)
Invokes a closure passing it a new Sql instance created from the given Martini connection pool.
|
static String |
VfsMethods.vfsGet(String url)
Gets the string content of a file that's on a virtual file system.
|
static String |
VfsMethods.vfsGet(String url,
Map properties)
Gets the string content of a file that's on a virtual file system.
|
static byte[] |
VfsMethods.vfsGetBytes(String url)
Gets the byte array content of a file that's on a virtual file system.
|
static byte[] |
VfsMethods.vfsGetBytes(String url,
Map properties)
Gets the stream of a file that's on a virtual file system.
|
static File |
VfsMethods.vfsGetFile(String url,
String filename)
Gets the content of a file that's on a virtual file system and writes it to the given file.
|
static File |
VfsMethods.vfsGetFile(String url,
String filename,
Map properties)
Writes a file from a virtual file system to the local file system.
|
static InputStream |
VfsMethods.vfsGetInputStream(String url)
Gets the stream of a file that's on a virtual file system.
|
static void |
VfsMethods.vfsGetInputStream(String url,
Closure closure)
Executes a closure upon fetching the stream of a file that's on a virtual file system.
|
static InputStream |
VfsMethods.vfsGetInputStream(String url,
Map properties)
Gets the stream of a file that's on a virtual file system.
|
static void |
VfsMethods.vfsGetInputStream(String url,
Map properties,
Closure closure)
Executes a closure upon fetching the stream of a file that's on a virtual file system.
|
static void |
VfsMethods.vfsPut(String url,
byte[] data) |
static void |
VfsMethods.vfsPut(String url,
byte[] data,
Map properties) |
static void |
VfsMethods.vfsPut(String url,
InputStream data) |
static void |
VfsMethods.vfsPut(String url,
InputStream data,
Map properties) |
static void |
VfsMethods.vfsPut(String url,
String data) |
static void |
VfsMethods.vfsPut(String url,
String data,
Map properties) |
Modifier and Type | Class and Description |
---|---|
class |
UserUnauthorizedException |
Modifier and Type | Method and Description |
---|---|
ToroException |
ToroException.setDefaultMessage(String defaultMessage)
Deprecated.
|
ToroException |
ToroException.setMessageArgs(Object... messageArgs)
Deprecated.
|
ToroException |
ToroException.setMessageCode(String... messageCode)
Deprecated.
|
ToroException |
ToroException.setMessageResolverArguments(String[] messageCode,
Object[] messageArgs,
String defaultMessage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static XMPPTCPConnectionConfiguration |
JabberConnection.buildConfiguration(Map configuration)
Creates a jabber based on the configuration map provided
Properties for configuring jabber connection
NOTE THIS IS FOR ENDPOINT ONLY
{ Key: replyServiceResponse, Type: - Set
to true if service response will return its object to the sender. |
Constructor and Description |
---|
JabberConnection(String name,
Map configuration) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
BeanUtils.getBean(Class<T> clazz) |
static <T> T |
ApplicationUtils.getBean(String name) |
static <T> T |
BeanUtils.getBean(String name) |
static <T> T |
BeanUtils.getBean(String name,
MartiniPackage martiniPackage) |
static <T> T |
ApplicationUtils.getJNDIObject(String path) |
static void |
ApplicationUtils.unbindJNDIObject(String path) |
Copyright © 2019. All rights reserved.