chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1642272 [6/29] - in /chemistry/parts: branches/ tags/ trunk/ trunk/cmis-js/ trunk/cmis-js/components/ trunk/cmis-js/components/browser/ trunk/cmis-js/components/library/ trunk/cmis-js/lib/ trunk/cmis-js/samples/ trunk/cmis-js/samples/brows...
Date Fri, 28 Nov 2014 08:44:33 GMT
Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Browser.aspx
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Browser.aspx?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Browser.aspx
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Browser.aspx
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,145 @@
+<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,
Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
%>
+<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+
+<WebPartPages:AllowFraming ID="AllowFraming" runat="server" />
+
+<html>
+<head>
+    <title></title>
+
+    <!-- script type="text/javascript" src="../Scripts/jquery-1.7.1.min.js"></!-->
+    <script type="text/javascript" src="/_layouts/15/MicrosoftAjax.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
+
+    <script type="text/javascript" src="../SiteAssets/dependencies/jquery-1.11.1.min.js"></script>
+    <script type="text/javascript" src="../SiteAssets/lib/cmis.js"></script>
+    <script type="text/javascript" src="../SiteAssets/browser/browser.js"></script>
+    <script type="text/javascript" src="../SiteAssets/dependencies/cmiswebparts.js"></script>
+    <link rel="stylesheet" href="../SiteAssets/browser/reset.css" />
+    <link rel="stylesheet" href="../SiteAssets/browser/browser.css" />
+
+
+    <script type="text/javascript">
+        'use strict';
+        var Access = "";
+        var Url = "";
+        var UserName = "";
+        var Password = "";
+        var InitialObjectID = "";
+        var InitialPath = "";
+
+        function getQueryStringParameter(paramToRetrieve) {
+            var params;
+            var strParams;
+
+            params = document.URL.split("?")[1].split("&");
+            strParams = "";
+            for (var i = 0; i < params.length; i = i + 1) {
+                var singleParam = params[i].split("=");
+                if (singleParam[0] == paramToRetrieve)
+                    return singleParam[1];
+            }
+        }
+
+        // Set the style of the client web part page to be consistent with the host web.
+        (function () {
+            var hostUrl = '';
+            if (document.URL.indexOf('?') != -1) {
+                var params = document.URL.split('?')[1].split('&');
+                for (var i = 0; i < params.length; i++) {
+                    var p = decodeURIComponent(params[i]);
+                    if (/^SPHostUrl=/i.test(p)) {
+                        hostUrl = p.split('=')[1];
+                        document.write('<link rel="stylesheet" href="' + hostUrl + '/_layouts/15/defaultcss.ashx"
/>');
+                        break;
+                    }
+                }
+            }
+            if (hostUrl == '') {
+                document.write('<link rel="stylesheet" href="/_layouts/15/1033/styles/themable/corev15.css"
/>');
+            }
+        })();
+
+        $(document).ready(function () {
+
+            var Access = decodeURIComponent(getQueryStringParameter("AccessControlAllowOrigin"));
+
+            $.ajaxSetup({
+                headers: {
+                    "Access-Control-Allow-Origin": Access
+                }
+            });
+
+
+            //console.log("Access = " + Access);
+            var Url = decodeURIComponent(getQueryStringParameter("Url"));
+            //console.log("Url = " + Url);
+            var UserName = decodeURIComponent(getQueryStringParameter("UserName"));
+            //console.log("UserName = " + UserName);
+            var Password = decodeURIComponent(getQueryStringParameter("Password"));
+            //console.log("Password = " + Password);
+            var InitialObjectID = decodeURIComponent(getQueryStringParameter("InitialObjectID"));
+            //console.log("InitialObjectID = " + InitialObjectID);
+            var InitialPath = decodeURIComponent(getQueryStringParameter("InitialPath"));
+            //console.log("InitialPath = " + InitialPath);
+
+            var initPath = null;
+            if (InitialPath.length > 0)
+                initPath = InitialPath;
+
+            var initObjectId = null;
+            if (InitialObjectID.length > 0)
+                initObjectId = InitialObjectID;
+
+            var browserOptions = {
+                cmis: {
+                    serverUrl: Url,
+                    username: UserName,
+                    password: Password,
+                    initObjectId: initObjectId,
+                    initPath: initPath
+                }
+            };
+
+            var browser = $("#browser").cmisbrowser(browserOptions);
+        });
+
+
+    </script>
+</head>
+<body>
+
+
+	<div id="browser" class="cmisbrowser"></div>
+    <!--
+        /**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ * Browser UI component based on the CMIS 1.1 JS Connector
+ * 
+ * Developer(s): - Ben Chevallereau (ben.chevallereau@armedia.com /
+ * benjamin.chevallereau@gmail.com)
+ * 
+ * Version: 1.1 (05-09-2014)
+ * 
+ * This JS library can be used to any CMIS 1.1 compliant repository.
+ */
+        -->
+</body>
+</html>

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Connections.aspx
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Connections.aspx?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Connections.aspx
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Connections.aspx
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,100 @@
+<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,
Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
%>
+<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+
+<WebPartPages:AllowFraming ID="AllowFraming" runat="server" />
+
+<html>
+<head>
+    <title></title>
+
+    <script type="text/javascript" src="../Scripts/jquery-1.7.1.min.js"></script>
+    <script type="text/javascript" src="/_layouts/15/MicrosoftAjax.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
+
+    <script type="text/javascript" src="../SiteAssets/lib/jquery-1.11.1.min.js"></script>
+    <script type="text/javascript" src="../SiteAssets/lib/cmiswebparts.js"></script>
+
+    <script type="text/javascript">
+        'use strict';
+
+        // Set the style of the client web part page to be consistent with the host web.
+        (function () {
+            var hostUrl = '';
+            if (document.URL.indexOf('?') != -1) {
+                var params = document.URL.split('?')[1].split('&');
+                for (var i = 0; i < params.length; i++) {
+                    var p = decodeURIComponent(params[i]);
+                    if (/^SPHostUrl=/i.test(p)) {
+                        hostUrl = p.split('=')[1];
+                        document.write('<link rel="stylesheet" href="' + hostUrl + '/_layouts/15/defaultcss.ashx"
/>');
+                        break;
+                    }
+                }
+            }
+            if (hostUrl == '') {
+                document.write('<link rel="stylesheet" href="/_layouts/15/1033/styles/themable/corev15.css"
/>');
+            }
+        })();
+    </script>
+</head>
+<body>
+<div id="ListContainer" style="padding-top:20px;padding-bottom:20px;">
+    <span class="ms-list-addnew ms-textXLarge ms-list-addnew-aligntop ms-soften">CMIS
Connections</span>
+    <div style="clear:both; height:40px"></div>
+    <asp:Literal ID="ListData" runat="server" />
+</div>
+
+<div id="FormContainer">
+    <span class="ms-list-addnew ms-textXLarge ms-list-addnew-aligntop ms-soften">Add\Edit
CMIS Connection</span>
+    <div style="clear:both; height:40px"></div>
+    <table>
+    <tr>
+        <td>Name of Connection String:</td>
+        <td>
+            <asp:TextBox ID="txtConnectionName" runat="server" ClientIDMode="Static"/>
+            <asp:RequiredFieldValidator ID="rfvConnectionName" ErrorMessage="Please enter
a Connection String Name" ControlToValidate="txtConnectionName" runat="server" />
+        </td>
+    </tr>
+    <tr>
+        <td>Server URL:</td>
+        <td>
+            <asp:TextBox ID="txtUrl" runat="server" ClientIDMode="Static" Width="400"/>
+            <asp:RequiredFieldValidator ID="rfvUrl" ErrorMessage="Please enter a URL to
the Repository" ControlToValidate="txtUrl" runat="server" ClientIDMode="Static" />
+        </td>
+    </tr>
+    <tr>
+        <td>Server Domain:</td>
+        <td>
+            <asp:TextBox ID="txtDomain" runat="server" ClientIDMode="Static"/>
+            <asp:RequiredFieldValidator ID="rfvDomain" ErrorMessage="Please enter a Domain"
ControlToValidate="txtDomain" runat="server" ClientIDMode="Static" />
+        </td>
+    </tr>
+    <tr>
+        <td>User Name:</td>
+        <td>
+            <asp:TextBox ID="txtUsername" runat="server" ClientIDMode="Static"/>
+            <asp:RequiredFieldValidator ID="rfvUsername" ErrorMessage="Please enter Username"
ControlToValidate="txtUsername" runat="server" ClientIDMode="Static" />
+        </td>
+    </tr>
+    <tr>
+        <td>Password:</td>
+        <td>
+            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ClientIDMode="Static"/>
+            <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword"
ErrorMessage="Please enter Password" ClientIDMode="Static"/>
+        </td>
+    </tr>
+    <tr>
+        <td></td>
+        <td>
+            <asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click"
/>
+        </td>
+    </tr>
+    </table>
+</div>
+
+
+
+</body></html>

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Default.aspx
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Default.aspx?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Default.aspx
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Default.aspx
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,63 @@
+<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components
--%>
+
+<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master"
Language="C#" %>
+
+<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+
+<%-- The markup and script in the following Content element will be placed in the <head>
of the page --%>
+<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
+    <script type="text/javascript" src="../Scripts/jquery-1.7.1.min.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
+
+    <!-- Add your CSS styles to the following file -->
+    <link rel="Stylesheet" type="text/css" href="../Content/App.css" />
+
+    <!-- Add your JavaScript to the following file -->
+    <script type="text/javascript" src="../Scripts/App.js"></script>
+</asp:Content>
+
+<%-- The markup in the following Content element will be placed in the TitleArea of the
page --%>
+<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
+    Page Title
+</asp:Content>
+
+<%-- The markup and script in the following Content element will be placed in the <body>
of the page --%>
+<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
+
+    <div>
+        <p id="message">
+            <!-- The following content will be replaced with the user name when you run
the app - see App.js -->
+            initializing...
+        </p>
+    </div>
+    <!--
+        /**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ * Browser UI component based on the CMIS 1.1 JS Connector
+ * 
+ * Developer(s): - Ben Chevallereau (ben.chevallereau@armedia.com /
+ * benjamin.chevallereau@gmail.com)
+ * 
+ * Version: 1.1 (05-09-2014)
+ * 
+ * This JS library can be used to any CMIS 1.1 compliant repository.
+ */
+        -->
+</asp:Content>

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Documents.aspx
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Documents.aspx?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Documents.aspx
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Documents.aspx
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,171 @@
+<%@ Page language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,
Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
%>
+<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
+
+<WebPartPages:AllowFraming ID="AllowFraming" runat="server" />
+
+<html>
+<head>
+    <title></title>
+
+    <!-- script type="text/javascript" src="../Scripts/jquery-1.7.1.min.js"></script
-->
+    <script type="text/javascript" src="/_layouts/15/MicrosoftAjax.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
+    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
+
+    <script type="text/javascript" src="../SiteAssets/dependencies/jquery-1.11.1.min.js"></script>
+    <script type="text/javascript" src="../SiteAssets/library/library.js"></script>
+    <script type="text/javascript" src="../SiteAssets/lib/cmis.js"></script>
+    <script type="text/javascript" src="../SiteAssets/dependencies/cmiswebparts.js"></script>
+    <link rel="stylesheet" href="../SiteAssets/library/reset.css" />
+    <link rel="stylesheet" href="../SiteAssets/library/library.css" />
+
+
+    <script type="text/javascript">
+        'use strict';
+        var Access = "";
+        var Url = "";
+        var UserName = "";
+        var Password = "";
+        var InitialObjectID = "";
+        var InitialPath = "";
+        var InitialQuery = "";
+        var InitialMaxItems = "";
+        var OnlyCheckedOutDocuments = "";
+
+        function getQueryStringParameter(paramToRetrieve) {
+            var params;
+            var strParams;
+
+            params = document.URL.split("?")[1].split("&");
+            strParams = "";
+            for (var i = 0; i < params.length; i = i + 1) {
+                var singleParam = params[i].split("=");
+                if (singleParam[0] == paramToRetrieve)
+                    return singleParam[1];
+            }
+        }
+
+        // Set the style of the client web part page to be consistent with the host web.
+        (function () {
+            var hostUrl = '';
+            if (document.URL.indexOf('?') != -1) {
+                var params = document.URL.split('?')[1].split('&');
+                for (var i = 0; i < params.length; i++) {
+                    var p = decodeURIComponent(params[i]);
+                    if (/^SPHostUrl=/i.test(p)) {
+                        hostUrl = p.split('=')[1];
+                        document.write('<link rel="stylesheet" href="' + hostUrl + '/_layouts/15/defaultcss.ashx"
/>');
+                        break;
+                    }
+                }
+            }
+            if (hostUrl == '') {
+                document.write('<link rel="stylesheet" href="/_layouts/15/1033/styles/themable/corev15.css"
/>');
+            }
+        })();
+
+        $(document).ready(function () {
+
+            var Access = decodeURIComponent(getQueryStringParameter("AccessControlAllowOrigin"));
+
+            $.ajaxSetup({
+                headers: {
+                    "Access-Control-Allow-Origin": Access
+                }
+            });
+
+            //console.log("Access = " + Access);
+            var Url = decodeURIComponent(getQueryStringParameter("Url"));
+            //console.log("Url = " + Url);
+            var UserName = decodeURIComponent(getQueryStringParameter("UserName"));
+            //console.log("UserName = " + UserName);
+            var Password = decodeURIComponent(getQueryStringParameter("Password"));
+            //console.log("Password = " + Password);
+            var InitialObjectID = decodeURIComponent(getQueryStringParameter("InitialObjectID"));
+            //console.log("InitialObjectID = " + InitialObjectID);
+            var InitialPath = decodeURIComponent(getQueryStringParameter("InitialPath"));
+            //console.log("InitialPath = " + InitialPath);
+            var InitialQuery = decodeURIComponent(getQueryStringParameter("InitialQuery"));
+            //console.log("InitialQuery = " + InitialQuery);
+            var InitialMaxItems = decodeURIComponent(getQueryStringParameter("InitialMaxItems"));
+            //console.log("InitialMaxItems = " + InitialMaxItems);
+            var OnlyCheckedOutDocuments = decodeURIComponent(getQueryStringParameter("OnlyCheckedOutDocuments"));
+            //console.log("OnlyCheckedOutDocuments = " + OnlyCheckedOutDocuments);
+
+
+
+
+            var maxItems = parseInt(InitialMaxItems);
+            if (maxItems == 0)
+                maxItems = 20;
+
+            var autoLoad = false;
+            if (InitialPath.length > 0 || InitialObjectID.length > 0 || InitialQuery.length
> 0)
+                autoLoad = true;
+
+            var query = null;
+            if (InitialQuery.length > 0)
+                query = InitialQuery;
+
+            var initPath = null;
+            if (InitialPath.length > 0)
+                initPath = InitialPath;
+
+            var initObjectId = null;
+            if (InitialObjectID.length > 0)
+                initObjectId = InitialObjectID;
+
+            var documentsOptions = {
+                cmis: {
+                    serverUrl: Url,
+                    username: UserName,
+                    password: Password,
+                    initObjectId: initObjectId,
+                    initPath: initPath,
+                    initQuery: query
+                },
+                autoLoad: autoLoad,
+                maxItems: maxItems,
+                showOnlyCheckedOutDocs: OnlyCheckedOutDocuments == "True"
+            };
+
+            var library = $("#library").cmislibrary(documentsOptions);
+
+        });
+
+    </script>
+</head>
+<body>
+	<div id="library" class="cmislibrary"></div>
+    <!-- 
+        /**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ * Browser UI component based on the CMIS 1.1 JS Connector
+ * 
+ * Developer(s): - Ben Chevallereau (ben.chevallereau@armedia.com /
+ * benjamin.chevallereau@gmail.com)
+ * 
+ * Version: 1.1 (05-09-2014)
+ * 
+ * This JS library can be used to any CMIS 1.1 compliant repository.
+ */
+        -->
+</body>
+
+</html>

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Elements.xml
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Elements.xml?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Elements.xml
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Elements.xml
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
+  <Module Name="Pages">
+    <File Path="Pages\Default.aspx" Url="Pages/Default.aspx" ReplaceContent="TRUE" />
+    <File Path="Pages\Browser.aspx" Url="Pages/Browser.aspx" ReplaceContent="TRUE" />
+    <File Path="Pages\Documents.aspx" Url="Pages/Documents.aspx" ReplaceContent="TRUE"
/>
+  </Module>
+</Elements>
+<!-- /**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ * Browser UI component based on the CMIS 1.1 JS Connector
+ * 
+ * Developer(s): - Ben Chevallereau (ben.chevallereau@armedia.com /
+ * benjamin.chevallereau@gmail.com)
+ * 
+ * Version: 1.1 (05-09-2014)
+ * 
+ * This JS library can be used to any CMIS 1.1 compliant repository.
+ */ -->

Propchange: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/Elements.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/SharePointProjectItem.spdata
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/SharePointProjectItem.spdata?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/SharePointProjectItem.spdata
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Pages/SharePointProjectItem.spdata
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml"
SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
+  <Files>
+    <ProjectItemFile Source="Elements.xml" Target="Pages\" Type="ElementManifest" />
+    <ProjectItemFile Source="Default.aspx" Target="Pages\" Type="ElementFile" />
+    <ProjectItemFile Source="Browser.aspx" Target="Pages\" Type="ElementFile" />
+    <ProjectItemFile Source="Documents.aspx" Target="Pages\" Type="ElementFile" />
+  </Files>
+</ProjectItem>
\ No newline at end of file

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/App.js
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/App.js?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/App.js
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/App.js
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,80 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ * Browser UI component based on the CMIS 1.1 JS Connector
+ * 
+ * Developer(s): - Ben Chevallereau (ben.chevallereau@armedia.com /
+ * benjamin.chevallereau@gmail.com)
+ * 
+ * Version: 1.1 (05-09-2014)
+ * 
+ * This JS library can be used to any CMIS 1.1 compliant repository.
+ */
+
+
+
+'use strict';
+
+
+
+var context = SP.ClientContext.get_current();
+
+var user = context.get_web().get_currentUser();
+
+
+
+// This code runs when the DOM is ready and creates a context object which is needed to use
the SharePoint object model
+
+$(document).ready(function () {
+
+    getUserName();
+
+});
+
+
+
+// This function prepares, loads, and then executes a SharePoint query to get the current
users information
+
+function getUserName() {
+
+    context.load(user);
+
+    context.executeQueryAsync(onGetUserNameSuccess, onGetUserNameFail);
+
+}
+
+
+
+// This function is executed if the above call is successful
+
+// It replaces the contents of the 'message' element with the user name
+
+function onGetUserNameSuccess() {
+
+    $('#message').text('Hello ' + user.get_title());
+
+}
+
+
+
+// This function is executed if the above call fails
+
+function onGetUserNameFail(sender, args) {
+
+    alert('Failed to get user name. Error:' + args.get_message());
+
+}
+

Propchange: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/App.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/Elements.xml
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/Elements.xml?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/Elements.xml
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/Elements.xml
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
+  <Module Name="Scripts">
+    <File Path="Scripts\App.js" Url="Scripts/App.js" ReplaceContent="TRUE" />
+    <File Path="Scripts\jquery-1.7.1.min.js" Url="Scripts/jquery-1.7.1.min.js" ReplaceContent="TRUE"
/>
+    <File Path="Scripts\jquery-1.7.1.js" Url="Scripts/jquery-1.7.1.js" ReplaceContent="TRUE"
/>
+    <File Path="Scripts\jquery-1.7.1.intellisense.js" Url="Scripts/jquery-1.7.1.intellisense.js"
ReplaceContent="TRUE" />
+  </Module>
+</Elements>
\ No newline at end of file

Propchange: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/Elements.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/SharePointProjectItem.spdata
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/SharePointProjectItem.spdata?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/SharePointProjectItem.spdata
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/SharePointProjectItem.spdata
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml"
SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
+  <Files>
+    <ProjectItemFile Source="Elements.xml" Target="Scripts\" Type="ElementManifest" />
+    <ProjectItemFile Source="App.js" Target="Scripts\" Type="ElementFile" />
+    <ProjectItemFile Source="jquery-1.7.1.min.js" Target="Scripts\" Type="ElementFile"
/>
+    <ProjectItemFile Source="jquery-1.7.1.js" Target="Scripts\" Type="ElementFile" />
+    <ProjectItemFile Source="jquery-1.7.1.intellisense.js" Target="Scripts\" Type="ElementFile"
/>
+  </Files>
+</ProjectItem>
\ No newline at end of file

Added: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/_references.js
URL: http://svn.apache.org/viewvc/chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/_references.js?rev=1642272&view=auto
==============================================================================
--- chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/_references.js
(added)
+++ chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/_references.js
Fri Nov 28 08:44:28 2014
@@ -0,0 +1,33 @@
+/// <reference path="jquery-1.7.1.js" />
+/// <reference name="MicrosoftAjax.js" />
+/// <reference path="~/_layouts/15/init.js" />
+/// <reference path="~/_layouts/15/SP.Core.js" />
+/// <reference path="~/_layouts/15/SP.Runtime.js" />
+/// <reference path="~/_layouts/15/SP.UI.Dialog.js" />
+/// <reference path="~/_layouts/15/SP.js" />
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ * 
+ * Browser UI component based on the CMIS 1.1 JS Connector
+ * 
+ * Developer(s): - Ben Chevallereau (ben.chevallereau@armedia.com /
+ * benjamin.chevallereau@gmail.com)
+ * 
+ * Version: 1.1 (05-09-2014)
+ * 
+ * This JS library can be used to any CMIS 1.1 compliant repository.
+ */
\ No newline at end of file

Propchange: chemistry/parts/trunk/sharepoint-projects/CMIS.Sharepoint.Apps/CMIS.Sharepoint.Apps/Scripts/_references.js
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message