SlideShare a Scribd company logo
Alfresco study37 alfresco_ng2_components
Alfresco study37 alfresco_ng2_components
see https://github.com/Alfresco/alfresco-ng2-components/blob/master/INTRODUCTION.md
1/2
2/2
Alfresco angular2 components
alfresco ng2
alfresco
activiti
- Alfresco -
<!— CORS filter filter mapping —>
<!-- CORS Filter Mappings Begin —>
<!--
<filter-mapping>
<filter-name>CORS</filter-name>
<url-pattern>/api/*</url-pattern>
<url-pattern>/service/*</url-pattern>
$ cp ~/…/enablecores-1.0.jar modules/platform
- tomcat/webapps/alfresco/WEB-INF/web.xml
- -
$ npm install -g yo
$ npm install -g generator-ng2-alfresco-app
$ yo ng2-alfresco-app
…
cd <application name>
$ npm install
$ npm start
export class FilesComponent implements OnInit {
// currentPath: string = ‘/Sites/swsdp/
documentLibrary’;
currentPath: string = ‘/‘;
rootFolderId: string = '-root-';
vi app/components/files/files.component.ts
Dirty hack!
…
getNodePath(node: MinimalNodeEntity): string {
if (node) {
let pathWithCompanyHome = node.entry.path.name;
// return pathWithCompanyHome.replace('/Company
Home', '') + '/' + node.entry.name;
return pathWithCompanyHome.replace('/
', '') + '/' + node.entry.name;
}
return null;
}
vi node_modules/ng2-alfresco-documentlist/src/components/
document-list.ts
1/2
…
<content-action
target="folder"
title="Activiti: View Form"
(execute)="viewActivitiForm($event)">
</content-action>
<content-action
target="document"
title="send comment"
(execute)="sendComment($event)">
</content-action>
</content-actions>
</alfresco-document-list>
vi app/components/files/files.component.html
2/2
…
myCustomAction1(event) {
alert('Custom document action for ' + event.value.entry.name);
}
sendComment(event) {
var commentBody = new this.auth.alfrescoApi.core.CommentBody();
commentBody['content'] = "This is comment from ng2";
this.auth.alfrescoApi.core.commentsApi.addComment(event.value.entry
.id,commentBody);
alert('send comment');
}
vi app/components/files/files.component.ts
alfresco-js-api
ng2-alfresco-
core
ng2-alfresco-
login
ng2-alfresco-
search
ng2-alfresco-
documentList
UI
Alfresco study37 alfresco_ng2_components
Alfresco study37 alfresco_ng2_components
Alfresco study37 alfresco_ng2_components

More Related Content

PDF
Alfresco study presentation 38th customize How-To WebDAV
PDF
What happens in laravel 4 bootstraping
PPTX
Wykorzystanie form request przy implementacji API w Laravelu
PDF
Head First Zend Framework - Part 1 Project & Application
PDF
Python Flask app deployed to OPenShift using Wercker CI
PDF
#30.스프링프레임워크 & 마이바티스 (Spring Framework, MyBatis)_스프링프레임워크 강좌, 재직자환급교육,실업자국비지원...
PDF
深入淺出 MVC
PDF
AnsibleFest 2014 - Role Tips and Tricks
Alfresco study presentation 38th customize How-To WebDAV
What happens in laravel 4 bootstraping
Wykorzystanie form request przy implementacji API w Laravelu
Head First Zend Framework - Part 1 Project & Application
Python Flask app deployed to OPenShift using Wercker CI
#30.스프링프레임워크 & 마이바티스 (Spring Framework, MyBatis)_스프링프레임워크 강좌, 재직자환급교육,실업자국비지원...
深入淺出 MVC
AnsibleFest 2014 - Role Tips and Tricks

What's hot (20)

PDF
SDPHP - Percona Toolkit (It's Basically Magic)
PDF
Filling the flask
PDF
V2 and beyond
PDF
Rest API using Flask & SqlAlchemy
PDF
Release with confidence
PDF
[Spring Camp 2013] Java Configuration 없인 못살아!
PDF
자바 웹 개발 시작하기 (1주차 : 웹 어플리케이션 체험 실습)
PPT
Learn flask in 90mins
PPT
Deploy Rails Application by Capistrano
PPT
Zend - Installation And Sample Project Creation
PDF
Datagrids with Symfony 2, Backbone and Backgrid
PDF
Node.js API 서버 성능 개선기
PDF
The JavaFX Ecosystem
KEY
Write php deploy everywhere
PDF
Hacking ansible
PDF
Develop and Deploy your JavaEE micro service in less than 5 minutes with Apac...
PDF
Generators
PPTX
RESTful in Drupal 8 and Services module - New`n`Tasty!
PDF
Getting Started-with-Laravel
PDF
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
SDPHP - Percona Toolkit (It's Basically Magic)
Filling the flask
V2 and beyond
Rest API using Flask & SqlAlchemy
Release with confidence
[Spring Camp 2013] Java Configuration 없인 못살아!
자바 웹 개발 시작하기 (1주차 : 웹 어플리케이션 체험 실습)
Learn flask in 90mins
Deploy Rails Application by Capistrano
Zend - Installation And Sample Project Creation
Datagrids with Symfony 2, Backbone and Backgrid
Node.js API 서버 성능 개선기
The JavaFX Ecosystem
Write php deploy everywhere
Hacking ansible
Develop and Deploy your JavaEE micro service in less than 5 minutes with Apac...
Generators
RESTful in Drupal 8 and Services module - New`n`Tasty!
Getting Started-with-Laravel
[Community Open Camp] 給 PHP 開發者的 VS Code 指南
Ad

Viewers also liked (8)

PDF
Alfresco勉強会#40 QRコードによる文書の振り分け
PDF
Alfresco study41 alfresco_sdk3_introduction
PPTX
0からわかるAlfresco 2017年1月版
PPTX
Share UIカスタマイズの第一歩
PDF
Alfresco勉強会#35 AlfrescoのアクティビティフィードをSlackに送るカスタマイズ
PPTX
Alfresco勉強会#36 alfresco 5でカスタムREST APIを作ってみよう
PPTX
Alfresco Javascript Consoleのご紹介
PDF
Alfresco勉強会#34 Alfrescoをカスタマイズする時に知っておくと便利なこと
Alfresco勉強会#40 QRコードによる文書の振り分け
Alfresco study41 alfresco_sdk3_introduction
0からわかるAlfresco 2017年1月版
Share UIカスタマイズの第一歩
Alfresco勉強会#35 AlfrescoのアクティビティフィードをSlackに送るカスタマイズ
Alfresco勉強会#36 alfresco 5でカスタムREST APIを作ってみよう
Alfresco Javascript Consoleのご紹介
Alfresco勉強会#34 Alfrescoをカスタマイズする時に知っておくと便利なこと
Ad

More from Takeshi Totani (12)

PPTX
Alfresco study32 introducing5.1
PDF
Alfresco study29 activitymonitoring
PDF
Alfresco勉強会#25 ワークフロー入門
PDF
20140129 alfresco addons
PDF
Alfresco onlineeditbywebdav 2013
PDF
20130925 alfresco study18performancetuning
PDF
20130801 alfresco study17customizemap
PDF
20130606 alfresco study16audit
PDF
20130509 alfresco study15permission
PDF
JJUGナイトセミナー オープンソースポータルLiferayの紹介とLiferay IDEを使った簡単ポートレット開発
PDF
第7回Alfresco勉強会資料 カスタムのオンライン編集
PPTX
Alfresco study3 alfresco4
Alfresco study32 introducing5.1
Alfresco study29 activitymonitoring
Alfresco勉強会#25 ワークフロー入門
20140129 alfresco addons
Alfresco onlineeditbywebdav 2013
20130925 alfresco study18performancetuning
20130801 alfresco study17customizemap
20130606 alfresco study16audit
20130509 alfresco study15permission
JJUGナイトセミナー オープンソースポータルLiferayの紹介とLiferay IDEを使った簡単ポートレット開発
第7回Alfresco勉強会資料 カスタムのオンライン編集
Alfresco study3 alfresco4

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Cloud computing and distributed systems.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Approach and Philosophy of On baking technology
PPTX
Spectroscopy.pptx food analysis technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
cuic standard and advanced reporting.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Understanding_Digital_Forensics_Presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
Cloud computing and distributed systems.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Network Security Unit 5.pdf for BCA BBA.
sap open course for s4hana steps from ECC to s4
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Approach and Philosophy of On baking technology
Spectroscopy.pptx food analysis technology

Alfresco study37 alfresco_ng2_components