SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Event Handling Basics
MintJams Content Repository
(C) 2016 MintJams Inc.
Tools: 2
Content Repository 5.10.3
Content Management Tools Standard 5.1.3
Installing: 3
Please refer to the following documents:
Creating a Web Application with JavaScript + jQuery
http://www.slideshare.net/mintjams/creating-a-web-application-with-javascript-jquery
Demo
MintJams Content Repository
Event Handling Basics
You can start event handling using user-friendly tools and JavaScript.
Facets
MintJams Content Repository
Event Handling Basics
mintjams:event.listener
mintjams:event.types
mintjams:event.script.type
mintjams:event.script.inline
Facets: mintjams:event.listener 6
Description:
Sets whether or not this event listener is enabled.
An event listener that is enabled may execute
the script to resource change, while an event
listener that is not enabled cannot execute the
script to resource change.
Type:
Yes/No
Name:
Event Listener
Setting:
Facets: mintjams:event.types 7
Description:
A combination of one or more event type.
Type:
Choice
Name:
Event Type
Setting:
Facets: mintjams:event.script.type 8
Description:
The mime type. An event listener let you obtain
a script engine based on mime type.
Type:
Single line of text
Name:
Script Type
Setting:
Facets: mintjams:event.script.inline 9
Description:
The script language source to be executed.
Type:
Multiple lines of text
Name:
Script Source
Setting:
Other Facets: 10
mintjams:event.script.path
The path to an external script file.
mintjams:event.coreThreads
The number of threads to keep in the pool, even if they are idle.
mintjams:event.maxThreads
The maximum number of threads to allow in the pool.
Policies
MintJams Content Repository
Event Handling Basics
event.listener
Policies: event.listener 12
Description:
The policy that enables you to configure the file
as an event file.
Name:
Event Listener
Setting:
Files
MintJams Content Repository
Event Handling Basics
fileupload
Files: fileupload 14
Description:
The event listener that listens for the events in
the folder "/WEB-INF/upload".
Path:
/WEB-INF/upload/.metadata/fileupload
Setting:
Files: fileupload: Script Source 15
(function() {
if (resource.isCollection()) {
return;
}
if (event.getType().isResourceAdded()) {
log.info(resource.getPath() + ' is uploaded.');
} else if (event.getType().isResourceRemoved()) {
log.info(resource.getPath() + ' is removed.');
}
})();
Ignore the folders
Add event
Remove event
Write a log
Write a log
Implicit Objects
MintJams Content Repository
Event Handling Basics
event
resource
log
Implicit Objects: event 17
Description:
The event triggering the execution of the script.
Class:
jp.co.mintjams.osgi.service.observation.ResourceEvent
Implicit Objects: resource 18
Description:
The file or the folder triggering the execution of the script.
Class:
jp.co.mintjams.osgi.service.resource.Resource
Implicit Objects: log 19
Description:
The LoggerAPI object.
Class:
jp.co.mintjams.osgi.service.script.LoggerAPI
Other Implicit Objects: 20
EscapeAPI
The EscapeAPI object.
SearchAPI
The SearchAPI object.
ClassLoaderAPI
The ClassLoaderAPI object.
SessionAPI
The SessionAPI object.
CredentialsAPI
The CredentialsAPI object.
TextAPI
The TextAPI object.
RuntimeAPI
The RuntimeAPI object.
BpmnAPI (Optional)
The BpmnAPI object.
Reference: 21
CR5 Scripting API 5.10:
https://www.mintjams.jp/javadoc/cr5-scripting-api/5.10/index.html
Content Repository
https://www.mintjams.jp/products/contentrepository.html
22
MintJams
https://www.mintjams.jp/
23

Weitere ähnliche Inhalte

Ähnlich wie Event Handling Basics

Uploadify v2.1.0 manual
Uploadify v2.1.0 manualUploadify v2.1.0 manual
Uploadify v2.1.0 manual
iasdoc
 
Uploadify v2.1.0 manual
Uploadify v2.1.0 manualUploadify v2.1.0 manual
Uploadify v2.1.0 manual
iasdoc
 
Swiss army knife Spring
Swiss army knife SpringSwiss army knife Spring
Swiss army knife Spring
Mario Fusco
 
JSF 2.0 (JavaEE Webinar)
JSF 2.0 (JavaEE Webinar)JSF 2.0 (JavaEE Webinar)
JSF 2.0 (JavaEE Webinar)
Roger Kitain
 

Ähnlich wie Event Handling Basics (20)

Uploadify v2.1.0 manual
Uploadify v2.1.0 manualUploadify v2.1.0 manual
Uploadify v2.1.0 manual
 
Uploadify v2.1.0 manual
Uploadify v2.1.0 manualUploadify v2.1.0 manual
Uploadify v2.1.0 manual
 
Challenges in a Microservices Age: Monitoring, Logging and Tracing on Red Hat...
Challenges in a Microservices Age: Monitoring, Logging and Tracing on Red Hat...Challenges in a Microservices Age: Monitoring, Logging and Tracing on Red Hat...
Challenges in a Microservices Age: Monitoring, Logging and Tracing on Red Hat...
 
Asp.net By Durgesh Singh
Asp.net By Durgesh SinghAsp.net By Durgesh Singh
Asp.net By Durgesh Singh
 
Kubernetes walkthrough
Kubernetes walkthroughKubernetes walkthrough
Kubernetes walkthrough
 
The MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS SchemaThe MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS Schema
 
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry Pi
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry PiGrâce aux tags Varnish, j'ai switché ma prod sur Raspberry Pi
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry Pi
 
Asp.net tips
Asp.net tipsAsp.net tips
Asp.net tips
 
بررسی چارچوب جنگو
بررسی چارچوب جنگوبررسی چارچوب جنگو
بررسی چارچوب جنگو
 
Swiss army knife Spring
Swiss army knife SpringSwiss army knife Spring
Swiss army knife Spring
 
Events: The Object Oriented Hook System.
Events: The Object Oriented Hook System.Events: The Object Oriented Hook System.
Events: The Object Oriented Hook System.
 
Sudden Impact - Designing LAMP Applications for High Loads
Sudden Impact - Designing LAMP Applications for High LoadsSudden Impact - Designing LAMP Applications for High Loads
Sudden Impact - Designing LAMP Applications for High Loads
 
Event driven application
Event driven applicationEvent driven application
Event driven application
 
JSF 2.0 (JavaEE Webinar)
JSF 2.0 (JavaEE Webinar)JSF 2.0 (JavaEE Webinar)
JSF 2.0 (JavaEE Webinar)
 
2310 b 15
2310 b 152310 b 15
2310 b 15
 
2310 b 15
2310 b 152310 b 15
2310 b 15
 
ThingMonk 2016 - Concursus Event sourcing for the IOT By Tareq Abedrabbo & Do...
ThingMonk 2016 - Concursus Event sourcing for the IOT By Tareq Abedrabbo & Do...ThingMonk 2016 - Concursus Event sourcing for the IOT By Tareq Abedrabbo & Do...
ThingMonk 2016 - Concursus Event sourcing for the IOT By Tareq Abedrabbo & Do...
 
Helm Security Webinar
Helm Security WebinarHelm Security Webinar
Helm Security Webinar
 
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
 
DevOps Fest 2020. Philipp Krenn. Scale Your Auditing Events
DevOps Fest 2020. Philipp Krenn. Scale Your Auditing EventsDevOps Fest 2020. Philipp Krenn. Scale Your Auditing Events
DevOps Fest 2020. Philipp Krenn. Scale Your Auditing Events
 

Mehr von MintJams Inc. (7)

Webフレームワーク
WebフレームワークWebフレームワーク
Webフレームワーク
 
ファセット設計の進め方
ファセット設計の進め方ファセット設計の進め方
ファセット設計の進め方
 
Content Repositoryとは
Content RepositoryとはContent Repositoryとは
Content Repositoryとは
 
CR5とJavaScriptによるウェブアプリの作り方
CR5とJavaScriptによるウェブアプリの作り方CR5とJavaScriptによるウェブアプリの作り方
CR5とJavaScriptによるウェブアプリの作り方
 
Recommended Security Settings
Recommended Security SettingsRecommended Security Settings
Recommended Security Settings
 
Managing Users and Groups
Managing Users and GroupsManaging Users and Groups
Managing Users and Groups
 
Getting Started
Getting StartedGetting Started
Getting Started
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

Event Handling Basics