SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Similar a 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
 

Similar a 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
 

Más de 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
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Event Handling Basics