Constants.java
Language: Java
License: GPL
Copyright: (C) 2005-2007 Alfresco Software Limited.
LOC: 74
星期日, 1月 30, 2011
[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");
星期三, 1月 12, 2011
[Windows] 使用 net use 指令連線網路磁碟機
如果想要把連線指定到你本機的磁碟機p:,那可以這樣用
net use p: "\\serverip\foldername" /user:useraccount password /persistent:no
net use p: "\\serverip\foldername" /user:useraccount password /persistent:no
星期一, 1月 10, 2011
星期日, 1月 09, 2011
[Asp.Net] Https using WebClient
等入驗證之前先補上這一段就可以取得加密的憑證
即可用正常的webclient
即可用正常的webclient
try
{
System.Net.ServicePointManager.ServerCertificateValidationCallback =
delegate(object senderX, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)
{
return true;
};
HtmlText = wc.DownloadString(wc.BaseAddress);
}
catch
{
System.Environment.Exit(System.Environment.ExitCode);
}
[Alfresco] Node References and Store Protocols
了解Alfresco的NodeRef與StoreRef的差異。
Reference:
Node References and Store Protocols
SourceCode:
NodeArchiveServiceImpl.java
NodeRefTest.java
ArchiveAndRestoreTest.java
Reference:
Node References and Store Protocols
SourceCode:
NodeArchiveServiceImpl.java
NodeRefTest.java
ArchiveAndRestoreTest.java
星期二, 1月 04, 2011
[Alfresco] Content Domain Model Notes
這隻ContentModel.java實作Alfresco Data Domain Model相關的QNAME,
簡單來說,就是把各個Data Domain Model內定義的QNAME,
用程式控制來取得完整的QName String。
QNAME Format:{NameSapce}Name
Example:{http://www.alfresco.org/model/content/1.0}content
簡單分析contentModel.xml的結構:
--parent
--archive
--association
--child-association
--properties
--property
--title(aspect標題)
--properties(aspect擁有的屬性集)
--property
--title(property標題)
--type(屬性資料型態)
--default(資料是否有預設值)
--protected
--index
--mandatory
--associations
--association
--child-association
看ContentModel.xml原始碼
Reference:
ContentModel.java
簡單來說,就是把各個Data Domain Model內定義的QNAME,
用程式控制來取得完整的QName String。
QNAME Format:{NameSapce}Name
Example:{http://www.alfresco.org/model/content/1.0}content
簡單分析contentModel.xml的結構:
model(root)
--imports
--namespaces
--constrains
--types
--title--parent
--archive
--association
--child-association
--properties
--property
--aspects
--aspect--title(aspect標題)
--properties(aspect擁有的屬性集)
--property
--title(property標題)
--type(屬性資料型態)
--default(資料是否有預設值)
--protected
--index
--mandatory
--mandotory-aspects
--aspect--associations
--association
--child-association
看ContentModel.xml原始碼
Reference:
ContentModel.java
訂閱:
意見 (Atom)
