SlideShare a Scribd company logo
1 of 3
<resource name="share_file" path="/api/v1/messages/{object_id}" length-
check="true">
<request>
<info>
<field encodingtype="TEXT" name="post-data" parsertype="stream"/>
</info>
<actions>
<and>
<match field="method" key="httpmethods" mtype="nsdef" rhs="put"/>
<match field="post-data" mtype="decode-key">
<key name="subject&quot;:" order="1"/>
</match>
</and>
<assign endswith="0x22" field="post-data" lhs="object" order="1"
startswith="0x22" type="decode-key-value"/>
<assign lhs="object_type" order="2" rhs="Blog" type="value"/>
<trigger browser-platforms="windows,mac,ios" endprocessing="y"
name="Edit" order="3">
<external>
<action name="send_event"/>
<action name="nspolicy_lookup"/>
</external>
<var name="object_type"/>
<var name="instance_id"/>
<var name="object"/>
<var name="object_id"/>
<var name="from_user"/>
<dict action="update" key="object_id" val="object"/>
</trigger>
<assign lhs="object" order="4" rhs=" " type="value"/>
</actions>
<actions>
<and>
<match mtype="nsdef" field="method" key="httpmethods"
rhs="post" />
<match mtype="kvp" field="postdata-key"
key="log_data[publisher_type]" rhs="yam.ui.publisher.global.GroupPublisher" />
<match field="postdata-key" mtype="strstr"
rhs="group_id"/>
</and>
<assign order="1" type="value" lhs="object_type" rhs="Message" />
<assign order="2" type="key-value" field="postdata-key"
lhs="object_id" key="group_id" />
<assign order="3" type="value" lhs="tmp" rhs="400" />
<assign order="4" type="value" lhs="object" rhs=" " />
<trigger order="5" name="Share">
<external>
<action name="nspolicy_lookup" />
</external>
<var name="object_type" />
<var name="object" />
<var name="object_id" />
<var name="from_user" />
<var name="instance_id" />
<dict action="lookup" key="object_id" val="object" />
</trigger>
</actions>
<actions>
<and>
<match mtype="nsdef" field="method" key="httpmethods"
rhs="post" />
<match mtype="kvp" field="postdata-key" key="_method"
rhs="DELETE" />
</and>
<assign order="1" type="variable" lhs="object_id" rhs="object_id"
normalize="tokens-normalize" norm-delim="." norm-token="norm-lhs" />
<assign order="2" type="value" lhs="object_type" rhs="Message" />
<trigger order="3" name="Delete">
<external>
<action name="nspolicy_lookup" />
<action name="send_event" />
</external>
<var name="object_type" />
<var name="object" />
<var name="object_id" />
<var name="from_user" />
<var name="instance_id" />
</trigger>
</actions>
</request>
<response>
<info>
<field name="resp-body" encodingtype="JSON"
parsertype="jsonstream" />
</info>
<actions>
<and>
<match mtype="nsdef" field="status" key="http_statuscode"
rhs="created" />
<match mtype="strstr" field="location-path"
rhs="/api/v1/messages/" />
<match mtype="eq" lhsvar="tmp" rhs="400" />
<match mtype="struct-search-keys"
searchkeys="{messages[{attachments[{full_name}]}]}" field="resp-body" />
</and>
<assign order="1" type="value" lhs="tmp" rhs="0" />
<assign order="2" type="struct-get-value"
searchkeys="{messages[{attachments[{full_name}]}]}" lhs="to_object" field="resp-
body" />
<trigger order="3" name="Share">
<external>
<action name="send_event" />
</external>
<var name="object_type" />
<var name="to_user" />
<var name="to_object" />
<var name="object"/>
<var name="from_user" />
<var name="instance_id" />
</trigger>
</actions>
</response>
</resource>

More Related Content

What's hot

Towards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LDTowards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LDJosé Manuel Cantera Fonseca
 
MongoDB Schema Design: Four Real-World Examples
MongoDB Schema Design: Four Real-World ExamplesMongoDB Schema Design: Four Real-World Examples
MongoDB Schema Design: Four Real-World ExamplesMike Friedman
 
Getting started with MongoDB and Scala - Open Source Bridge 2012
Getting started with MongoDB and Scala - Open Source Bridge 2012Getting started with MongoDB and Scala - Open Source Bridge 2012
Getting started with MongoDB and Scala - Open Source Bridge 2012sullis
 
MongoDB, it's not just about big data
MongoDB, it's not just about big dataMongoDB, it's not just about big data
MongoDB, it's not just about big datawillshulman
 

What's hot (9)

Ajax chap 3
Ajax chap 3Ajax chap 3
Ajax chap 3
 
Ajax chap 2.-part 1
Ajax chap 2.-part 1Ajax chap 2.-part 1
Ajax chap 2.-part 1
 
Towards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LDTowards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LD
 
Css Selectors
Css SelectorsCss Selectors
Css Selectors
 
Introduction to JSON & AJAX
Introduction to JSON & AJAXIntroduction to JSON & AJAX
Introduction to JSON & AJAX
 
Javascript 2
Javascript 2Javascript 2
Javascript 2
 
MongoDB Schema Design: Four Real-World Examples
MongoDB Schema Design: Four Real-World ExamplesMongoDB Schema Design: Four Real-World Examples
MongoDB Schema Design: Four Real-World Examples
 
Getting started with MongoDB and Scala - Open Source Bridge 2012
Getting started with MongoDB and Scala - Open Source Bridge 2012Getting started with MongoDB and Scala - Open Source Bridge 2012
Getting started with MongoDB and Scala - Open Source Bridge 2012
 
MongoDB, it's not just about big data
MongoDB, it's not just about big dataMongoDB, it's not just about big data
MongoDB, it's not just about big data
 

Similar to Analysis

Chickenbiryani try
Chickenbiryani tryChickenbiryani try
Chickenbiryani tryadmin15kkr
 
Chickenbiryani try
Chickenbiryani tryChickenbiryani try
Chickenbiryani tryadmin15kkr
 
Chickenbiryani try
Chickenbiryani tryChickenbiryani try
Chickenbiryani tryadmin15kkr
 
Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operationsyeda zoya mehdi
 
https://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=tshttps://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=tsArif Alexi
 
Zen Coding Cheat Sheet
Zen Coding Cheat SheetZen Coding Cheat Sheet
Zen Coding Cheat SheetFaysal Shahi
 
Going with style: Themes and apps for Magento Go
Going with style: Themes and apps for Magento GoGoing with style: Themes and apps for Magento Go
Going with style: Themes and apps for Magento GoX.commerce
 
Simple blog wall creation on Java
Simple blog wall creation on JavaSimple blog wall creation on Java
Simple blog wall creation on JavaMax Titov
 
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자Donghyeok Kang
 
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebHTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebRobert Nyman
 
Modularized Persistence - B Zsoldos
Modularized Persistence - B ZsoldosModularized Persistence - B Zsoldos
Modularized Persistence - B Zsoldosmfrancis
 
Summer - The HTML5 Library for Java and Scala
Summer - The HTML5 Library for Java and ScalaSummer - The HTML5 Library for Java and Scala
Summer - The HTML5 Library for Java and Scalarostislav
 
Doctype htm1
Doctype htm1Doctype htm1
Doctype htm1Eddy_TKJ
 
Taking Web Apps Offline
Taking Web Apps OfflineTaking Web Apps Offline
Taking Web Apps OfflinePedro Morais
 
HTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAXHTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAXRobert Nyman
 
RedisConf18 - Redis and Elasticsearch
RedisConf18 - Redis and ElasticsearchRedisConf18 - Redis and Elasticsearch
RedisConf18 - Redis and ElasticsearchRedis Labs
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDTmrcoffee282
 

Similar to Analysis (20)

Chickenbiryani try
Chickenbiryani tryChickenbiryani try
Chickenbiryani try
 
Chickenbiryani try
Chickenbiryani tryChickenbiryani try
Chickenbiryani try
 
Chickenbiryani try
Chickenbiryani tryChickenbiryani try
Chickenbiryani try
 
JSOP in 60 seconds
JSOP in 60 secondsJSOP in 60 seconds
JSOP in 60 seconds
 
Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operation
 
https://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=tshttps://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=ts
 
Zencoding cheatsheet, ayuda Memoria
Zencoding cheatsheet, ayuda MemoriaZencoding cheatsheet, ayuda Memoria
Zencoding cheatsheet, ayuda Memoria
 
Zen Coding Cheat Sheet
Zen Coding Cheat SheetZen Coding Cheat Sheet
Zen Coding Cheat Sheet
 
Going with style: Themes and apps for Magento Go
Going with style: Themes and apps for Magento GoGoing with style: Themes and apps for Magento Go
Going with style: Themes and apps for Magento Go
 
Simple blog wall creation on Java
Simple blog wall creation on JavaSimple blog wall creation on Java
Simple blog wall creation on Java
 
Broadleaf Presents Thymeleaf
Broadleaf Presents ThymeleafBroadleaf Presents Thymeleaf
Broadleaf Presents Thymeleaf
 
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
 
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebHTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
 
Modularized Persistence - B Zsoldos
Modularized Persistence - B ZsoldosModularized Persistence - B Zsoldos
Modularized Persistence - B Zsoldos
 
Summer - The HTML5 Library for Java and Scala
Summer - The HTML5 Library for Java and ScalaSummer - The HTML5 Library for Java and Scala
Summer - The HTML5 Library for Java and Scala
 
Doctype htm1
Doctype htm1Doctype htm1
Doctype htm1
 
Taking Web Apps Offline
Taking Web Apps OfflineTaking Web Apps Offline
Taking Web Apps Offline
 
HTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAXHTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAX
 
RedisConf18 - Redis and Elasticsearch
RedisConf18 - Redis and ElasticsearchRedisConf18 - Redis and Elasticsearch
RedisConf18 - Redis and Elasticsearch
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
 

More from admin15kkr (20)

Presentation1
Presentation1Presentation1
Presentation1
 
Presentation1
Presentation1Presentation1
Presentation1
 
Presentation1
Presentation1Presentation1
Presentation1
 
Presentation1
Presentation1Presentation1
Presentation1
 
Students
StudentsStudents
Students
 
Anish
AnishAnish
Anish
 
Newnew
NewnewNewnew
Newnew
 
Anish24
Anish24Anish24
Anish24
 
Test92
Test92Test92
Test92
 
Esfbsdfdnskfj
EsfbsdfdnskfjEsfbsdfdnskfj
Esfbsdfdnskfj
 
2 pii abi 321
2 pii abi 3212 pii abi 321
2 pii abi 321
 
Testing.g mail&gdrive.multi login.fix
Testing.g mail&gdrive.multi login.fixTesting.g mail&gdrive.multi login.fix
Testing.g mail&gdrive.multi login.fix
 
Analysis
AnalysisAnalysis
Analysis
 
Dapii15
Dapii15Dapii15
Dapii15
 
Munna
MunnaMunna
Munna
 
Analysis
AnalysisAnalysis
Analysis
 
Analysis
AnalysisAnalysis
Analysis
 
Analysis
AnalysisAnalysis
Analysis
 
Dapii15
Dapii15Dapii15
Dapii15
 
Analysis
AnalysisAnalysis
Analysis
 

Analysis

  • 1. <resource name="share_file" path="/api/v1/messages/{object_id}" length- check="true"> <request> <info> <field encodingtype="TEXT" name="post-data" parsertype="stream"/> </info> <actions> <and> <match field="method" key="httpmethods" mtype="nsdef" rhs="put"/> <match field="post-data" mtype="decode-key"> <key name="subject&quot;:" order="1"/> </match> </and> <assign endswith="0x22" field="post-data" lhs="object" order="1" startswith="0x22" type="decode-key-value"/> <assign lhs="object_type" order="2" rhs="Blog" type="value"/> <trigger browser-platforms="windows,mac,ios" endprocessing="y" name="Edit" order="3"> <external> <action name="send_event"/> <action name="nspolicy_lookup"/> </external> <var name="object_type"/> <var name="instance_id"/> <var name="object"/> <var name="object_id"/> <var name="from_user"/> <dict action="update" key="object_id" val="object"/> </trigger> <assign lhs="object" order="4" rhs=" " type="value"/> </actions> <actions> <and> <match mtype="nsdef" field="method" key="httpmethods" rhs="post" /> <match mtype="kvp" field="postdata-key" key="log_data[publisher_type]" rhs="yam.ui.publisher.global.GroupPublisher" /> <match field="postdata-key" mtype="strstr" rhs="group_id"/> </and> <assign order="1" type="value" lhs="object_type" rhs="Message" /> <assign order="2" type="key-value" field="postdata-key" lhs="object_id" key="group_id" /> <assign order="3" type="value" lhs="tmp" rhs="400" /> <assign order="4" type="value" lhs="object" rhs=" " /> <trigger order="5" name="Share"> <external> <action name="nspolicy_lookup" /> </external> <var name="object_type" /> <var name="object" /> <var name="object_id" /> <var name="from_user" /> <var name="instance_id" /> <dict action="lookup" key="object_id" val="object" /> </trigger> </actions>
  • 2. <actions> <and> <match mtype="nsdef" field="method" key="httpmethods" rhs="post" /> <match mtype="kvp" field="postdata-key" key="_method" rhs="DELETE" /> </and> <assign order="1" type="variable" lhs="object_id" rhs="object_id" normalize="tokens-normalize" norm-delim="." norm-token="norm-lhs" /> <assign order="2" type="value" lhs="object_type" rhs="Message" /> <trigger order="3" name="Delete"> <external> <action name="nspolicy_lookup" /> <action name="send_event" /> </external> <var name="object_type" /> <var name="object" /> <var name="object_id" /> <var name="from_user" /> <var name="instance_id" /> </trigger> </actions> </request> <response> <info> <field name="resp-body" encodingtype="JSON" parsertype="jsonstream" /> </info> <actions> <and> <match mtype="nsdef" field="status" key="http_statuscode" rhs="created" /> <match mtype="strstr" field="location-path" rhs="/api/v1/messages/" /> <match mtype="eq" lhsvar="tmp" rhs="400" /> <match mtype="struct-search-keys" searchkeys="{messages[{attachments[{full_name}]}]}" field="resp-body" /> </and> <assign order="1" type="value" lhs="tmp" rhs="0" /> <assign order="2" type="struct-get-value" searchkeys="{messages[{attachments[{full_name}]}]}" lhs="to_object" field="resp- body" /> <trigger order="3" name="Share"> <external> <action name="send_event" /> </external> <var name="object_type" /> <var name="to_user" /> <var name="to_object" /> <var name="object"/> <var name="from_user" /> <var name="instance_id" /> </trigger>