Default Permissions Model Reference
Security and Authentication
星期一, 2月 28, 2011
星期四, 2月 24, 2011
[Mysql] SP where in
DROP PROCEDURE IF EXISTS `simpleproc08`$$
CREATE PROCEDURE `simpleproc08`(IN param0 TEXT, OUT param1 INT)
BEGIN
SET @qry = CONCAT('SELECT COUNT(*) INTO @param1 FROM regions WHERE regions_id IN (', param0, ')');
PREPARE stmt FROM @qry;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
SET param1 = @param1;
END$$
DELIMITER ;
CALL simpleproc08('1, 2, 3', @a);
SELECT @a;
Result:
@a
------
3
CREATE PROCEDURE `simpleproc08`(IN param0 TEXT, OUT param1 INT)
BEGIN
SET @qry = CONCAT('SELECT COUNT(*) INTO @param1 FROM regions WHERE regions_id IN (', param0, ')');
PREPARE stmt FROM @qry;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
SET param1 = @param1;
END$$
DELIMITER ;
CALL simpleproc08('1, 2, 3', @a);
SELECT @a;
Result:
@a
------
3
星期三, 2月 23, 2011
[Alfresco] Authority
AuthorityDAOImpl.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 471
AuthorityServiceImpl.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 215
Reference:
Repository Cache Configuration
Repository Configuration
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 471
AuthorityServiceImpl.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 215
Reference:
Repository Cache Configuration
Repository Configuration
星期二, 2月 22, 2011
[Alfresco] Create a share site using Restful
Use restful api to create a share site.
option1:How to create a share site using the REST API ?
option2:The code is described as the following.I don't build it . XD
option1:How to create a share site using the REST API ?
option2:The code is described as the following.I don't build it . XD
星期一, 2月 21, 2011
[Alfresco] Create a share site
Use webscript to create share site.you can see the following link .
Creating Alfresco Share sites with JavaScript
Creating Alfresco Share sites with JavaScript
星期二, 2月 15, 2011
[Alfresco] Alfresco APIs Reference
if you want to use alfresco APIs to build costomized web application,those are some links as the following
Tips:Navigate to Web Script List:http://localhost:8080/alfresco/service/index
Tips:Navigate to Web Script List:http://localhost:8080/alfresco/service/index
- RESTful API (source code path:remote-api/config/alfresco/templates/webscripts/org/alfresco/*)
- 3.1 REST API
- Deployment REST API
- 3.0 REST API
- Repository RESTful API Reference
- 2.1 REST API
- 2.0 RESTful API
- OpenSearch
- REST Design Guidelines
- CMIS RESTful API Reference
- 3.4 JavaScript Services API
- JavaScript API Cookbook
- Java Foundation API
星期日, 1月 30, 2011
[Alfresco] Constants.java
Constants.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 74
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 74
[Alfresco] ContentModel.java
ContentModel.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 171
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 171
星期五, 1月 28, 2011
星期四, 1月 27, 2011
[Alfresco] Avatar
--UserManager printProperties--
{http://www.alfresco.org/model/content/1.0}name:myfbphoto.jpg
{http://www.alfresco.org/model/system/1.0}node-dbid:20391
{http://www.alfresco.org/model/system/1.0}store-identifier:SpacesStore
{http://www.alfresco.org/model/content/1.0}content:contentUrl=store://2011/1/14/10/30/a9fc0ee8-f528-40c8-b4f2-f53459120a47.bin|mimetype=image/jpeg|size=13245|encoding=utf-8|locale=zh_TW_
{http://www.alfresco.org/model/content/1.0}modified:2011-01-14T10:30:51.377+08:00
{http://www.alfresco.org/model/system/1.0}node-uuid:100cbbf4-39c3-41cc-8d79-a80b112347a2
{http://www.alfresco.org/model/content/1.0}created:2011-01-14T10:30:51.377+08:00
{http://www.alfresco.org/model/system/1.0}store-protocol:workspace
{http://www.alfresco.org/model/content/1.0}creator:Ken
{http://www.alfresco.org/model/content/1.0}modifier:Ken
--/UserManager printProperties--
{http://www.alfresco.org/model/content/1.0}name:myfbphoto.jpg
{http://www.alfresco.org/model/system/1.0}node-dbid:20391
{http://www.alfresco.org/model/system/1.0}store-identifier:SpacesStore
{http://www.alfresco.org/model/content/1.0}content:contentUrl=store://2011/1/14/10/30/a9fc0ee8-f528-40c8-b4f2-f53459120a47.bin|mimetype=image/jpeg|size=13245|encoding=utf-8|locale=zh_TW_
{http://www.alfresco.org/model/content/1.0}modified:2011-01-14T10:30:51.377+08:00
{http://www.alfresco.org/model/system/1.0}node-uuid:100cbbf4-39c3-41cc-8d79-a80b112347a2
{http://www.alfresco.org/model/content/1.0}created:2011-01-14T10:30:51.377+08:00
{http://www.alfresco.org/model/system/1.0}store-protocol:workspace
{http://www.alfresco.org/model/content/1.0}creator:Ken
{http://www.alfresco.org/model/content/1.0}modifier:Ken
associationType:{http://www.alfresco.org/model/content/1.0}avatar
{http://www.alfresco.org/model/content/1.0}path:/{http://www.alfresco.org/model/system/1.0}system/{http://www.alfresco.org/model/system/1.0}people/{http://www.alfresco.org/model/content/1.0}ken/{http://www.alfresco.org/model/content/1.0}myfbphoto.jpg--/UserManager printProperties--
星期三, 1月 26, 2011
[ZK] comfirm in zk component
使用程式控制替元件加入comfirm javascript。
範例如下:
A client-side event listener could stop the sending of a widget event to the server by invoking Event.stop(Map) with
Reference:
ZK Client-side Reference/Notifications/Widget Events
ZK Client-side Reference/Communication/AU Requests/Client-side Firing
範例如下:
//removePhoto.setWidgetListener("onClick", "alert('test');");
removePhoto.setWidgetListener("onClick", "if(!confirm('Remove Your Picture?')){evt.stop({au:true});}");
A client-side event listener could stop the sending of a widget event to the server by invoking Event.stop(Map) with
{au:true}, such asevt.stop({au: true});Reference:
ZK Client-side Reference/Notifications/Widget Events
ZK Client-side Reference/Communication/AU Requests/Client-side Firing
星期二, 1月 25, 2011
星期一, 1月 24, 2011
[Alfresco] AdministrationServiceSystemTest.java
AdministrationServiceSystemTest.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 304
使用alfresco webservice提供簡單的User management測試範例,值得參考。
Reference:
AdministrationServiceSystemTest.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 304
使用alfresco webservice提供簡單的User management測試範例,值得參考。
Reference:
AdministrationServiceSystemTest.java
星期三, 1月 19, 2011
[ZK] Client Side API
減少server的loading,免不得要使用client的資源。
A UI object visible to a user at the client is hosted by a JavaScript object[1] called a widget (Widget).
Document
ZK Client-side Reference(完整的章節-請讀完)
ZK Client Engine 5.0.5 API is based on JQuery.
Zk.Widget
Event Handle
Widget Events
DOM Events
Client Activity Watches
Example
Small Talks/2010/April/Client Side Programming
ZK5: Client Computing with ZUML
A UI object visible to a user at the client is hosted by a JavaScript object[1] called a widget (Widget).
Document
ZK Client-side Reference(完整的章節-請讀完)
ZK Client Engine 5.0.5 API is based on JQuery.
Zk.Widget
Event Handle
Widget Events
DOM Events
Client Activity Watches
Example
Small Talks/2010/April/Client Side Programming
ZK5: Client Computing with ZUML
星期二, 1月 18, 2011
星期日, 1月 16, 2011
星期五, 1月 14, 2011
星期四, 1月 13, 2011
[Asp.Net] 在Asp.net輸出logging
在asp.net使用Console.WriteLine("logging"); 是看不到的。
請改用使用:
請改用使用:
System.Diagnostics.Debug.WriteLine("logging");
訂閱:
意見 (Atom)
