Skip to content

Commit

Permalink
Merge branch 'two-dot-o' into optimistic-tx-semantics
Browse files Browse the repository at this point in the history
Conflicts:
	stack/corepersistence/collection/src/main/java/org/apache/usergrid/persistence/collection/guice/CollectionModule.java
	stack/corepersistence/collection/src/main/java/org/apache/usergrid/persistence/collection/impl/EntityCollectionManagerImpl.java
	stack/corepersistence/collection/src/main/java/org/apache/usergrid/persistence/collection/mvcc/stage/write/WriteOptimisticVerify.java
	stack/corepersistence/collection/src/main/java/org/apache/usergrid/persistence/collection/mvcc/stage/write/WriteUniqueVerify.java
	stack/corepersistence/collection/src/test/java/org/apache/usergrid/persistence/collection/util/EntityBuilder.java
	stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/legacy/EntityManagerFacade.java
	stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/utils/EntityBuilder.java
	stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityCollectionIndexTest.java
	stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/legacy/EntityBuilder.java
  • Loading branch information
Dave Johnson committed Apr 15, 2014
2 parents 8c4d8dd + fd6a06c commit b19e45e
Show file tree
Hide file tree
Showing 377 changed files with 10,582 additions and 7,749 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Expand Up @@ -30,3 +30,13 @@ stack/corepersistence/nbactions.xml
stack/corepersistence/queryindex/nbactions.xml
stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/query/tree/QueryFilterLexer.java
stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/query/tree/QueryFilterParser.java
/stack/corepersistence/perftest2/src/main/resources/finefoods.txt
/stack/corepersistence/perftest1/src/main/resources/finefoods.txt
/stack/corepersistence/perftest2/nbactions.xml
/stack/corepersistence/perftest1/nbactions.xml
/stack/corepersistence/perftest1/src/main/resources/usergrid.properties
/stack/corepersistence/perftest2/src/main/resources/usergrid.properties
portal/nbproject/private/private.properties
portal/nbproject/private/private.xml
portal/nbproject/project.properties
portal/nbproject/project.xml
65 changes: 64 additions & 1 deletion LICENSE
Expand Up @@ -199,4 +199,67 @@
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.
limitations under the License.


USERGRID SUBCOMPONENTS

The Usergrid software includes a number of subcomponents with separate
copyrights and license terms. Your use of the source code for these
subcomponents is subject to the terms and conditions of the following
licenses.

IOS SDK
-------
For the SBJson component:

Copyright (C) 2009-2011 Stig Brautaset. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the author nor the names of its contributors may be used
to endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


For the SSKeychain component:

Copyright (c) 2010-2014 Sam Soffes, http://soff.es

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 11 additions & 0 deletions NOTICE
@@ -0,0 +1,11 @@
Apache Usergrid_
Copyright 2014 The Apache Software Foundation.

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

This product bundles SBJson, which is available under a "3-clause BSD" license.
For details, see sdks/ios/UGAPI/SBJson/ .

This product bundles SSKeychain, which is available under a "MIT/X11" license.
For details, see sdks/ios/UGAPI/SSKeychain/.
64 changes: 3 additions & 61 deletions README.md
Expand Up @@ -10,66 +10,8 @@ This repository contains all the code for Apache Usergrid, including the server
* the admin portal and the many SDKs. A pure HTML5+JavaScript app allowing you to register developers and let them manage their apps in a multi-tenant cluster. Located under [`/portal`](portal)
* SDKs for [iOS](sdks/ios), [Android](sdks/android), [HTML5/JavaScript](sdks/html5-javascript), [node.js](sdks/nodejs), [Ruby on Rails](ruby-on-rails), [pure Ruby](sdks/ruby), [PHP](sdks/php), (server-side) [Java](sdks/java) and [.Net / Windows](sdks/dotnet), located in their respective subdirectories under [`/sdks`](sdks).

How to build and run Usergrid locally
-------------------------------------

It's easy to build and run Usergrid locally. All you need is the Java JDK 1.7 and Maven 3.0.5 installed and on your path. Here's how you do it. First you get the source code like this:
For more information
===
See the [Apache Usergrid web site](http://usergrid.incubator.apache.org/).

git clone git@github.com:usergrid/usergrid.git

Next, you change directories into the Java SDK package and build the SDK:

cd usergrid/sdks/java
mvn clean install

Next, you change directory into the stack directory and build the Usergrid WAR and launcher:

cd ../..
cd stack
mvn clean install

Finally, you can run Usergrid locally by using the all-in-one launcher, which includes a web server (Grizzly) and the database (Cassandra):

cd launcher
java -jar target/usergrid-launcher-0.0.29-SNAPSHOT.jar

(you might have to substitute 0.0.29-SNAPSHOT with something newer)

You should see the Usergrid launcher UI and from there you can start Usergrid and access the admin console.

If not, subscribe to the [user mailing list](mailto:user-subscribe@usergrid.incubator.apache.org) and we can help you out.


Backwards compatibility
-----------------------

If you previously developed with Apache Usergrid, you know our code used to be structured into _separate_ repositories: usergrid-stack, usergrid-portal, etc. We are now using a _merged_ repository.

### How to update your code setup & pull changes from your old forks

You just need to clone this repository, and use [git subtree (usually requires git 1.8+)](http://engineeredweb.com/blog/how-to-install-git-subtree/) to merge your changes under the new structure. Here’s an example for a portal fork. Adjust the prefix, repository address and branch you want to pull from as necessary.

git clone git@github.com:usergrid/usergrid.git
cd usergrid
git subtree pull --prefix=portal git@github.com:my-github-account/my-usergrid-portal-fork.git master

This will pull (i.e. merge) the changes you made from the master branch of github.com/my-github-account/my-usergrid-portal-fork into the portal/ subfolder. It should ask you to provide a commit message for the merge. There’s lot of flexibility on how to fetch and merge, [please see the git subtree manual](https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt) for details. Then please do consider sending us a pull request with these changes ;)


### How to pull commits made on this repo into your old forks

You should really update your old repositories to the new structure with the instructions above, but the following may work for you, although we make no guarantee they will work in the future.

You can produce a branch compatible with the old repos by using [git subtree (usually requires git 1.8+)](http://engineeredweb.com/blog/how-to-install-git-subtree/). Then from this repository you can

git clone git@github.com:usergrid/usergrid.git
cd usergrid
git checkout master
git subtree split --prefix=portal -b portal
git checkout portal

This will create a “portal” branch that is compatible with the old usergrid-portal repository, from the code under the portal/ directory. You can pull from that branch (or push changes to it, although we will not accept pull requests sent thusly).

The `git subtree split` above should function for portal, ugc, and any of the SDKs, but will not work for the stack, due to some anonymous comments left in the tree that prevent a split, and cannot be corrected lest we break the history and force a rebase on all forks.

**Please update your code setup as soon as possible and [ask the dev list](https://mail-archives.apache.org/mod_mbox/incubator-usergrid-dev/) if you have any questions!**
11 changes: 8 additions & 3 deletions portal/config.js
Expand Up @@ -2,11 +2,13 @@ var Usergrid = Usergrid || {};

Usergrid.showNotifcations = true;


// used only if hostname does not match a real server name
Usergrid.overrideUrl = 'https://api.usergrid.com/';

Usergrid.options = {
client:{
requiresDeveloperKey:false
// apiKey:'123456'
},
showAutoRefresh:true,
Expand Down Expand Up @@ -74,7 +76,10 @@ Usergrid.regex = {
collectionNameRegexDescription: "Collection name only allows : a-z A-Z 0-9. Must be between 3-25 characters."
};
try{
if(module && module.exports){
module.exports = Usergrid;
if (typeof module !== 'undefined'){

if(module && module.exports){
module.exports = Usergrid;
}
}
}catch(e){}
}catch(e){}
18 changes: 9 additions & 9 deletions portal/index-debug.html
Expand Up @@ -8,12 +8,12 @@
<meta name="description" content="">
<meta name="author" content="">

<link id="libScript" href="2.0.34/js/libs/bootstrap/custom/css/bootstrap.min.css" rel="stylesheet">
<link id="libScript" href="2.0.34/css/dash.min.css" rel="stylesheet">
<link id="libScript" href="2.0.0/js/libs/bootstrap/custom/css/bootstrap.min.css" rel="stylesheet">
<link id="libScript" href="2.0.0/css/dash.min.css" rel="stylesheet">

<!--styles for jquery ui calendar component-->
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.34/js/libs/jqueryui/jquery-ui-1.8.9.custom.css">
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.34/js/libs/jqueryui/jquery-ui-timepicker.css">
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.0/js/libs/jqueryui/jquery-ui-1.8.9.custom.css">
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.0/js/libs/jqueryui/jquery-ui-timepicker.css">
</head>
<body ng-controller="PageCtrl">
<!-- Google Tag Manager -->
Expand Down Expand Up @@ -109,20 +109,20 @@

<footer>
<hr>
<p class="pull-right">&copy; Apigee 2013</p>
<p class="pull-right">&copy; Apigee 2014</p>
</footer>
</div>
</div>
</div>
</section>
<script id="libScript" src="2.0.34/js/libs/usergrid-libs.min.js"></script>
<script id="libScript" src="2.0.34/js/libs/bootstrap/custom/js/bootstrap.min.js"></script>
<script id="libScript" src="2.0.0/js/libs/usergrid-libs.min.js"></script>
<script id="libScript" src="2.0.0/js/libs/bootstrap/custom/js/bootstrap.min.js"></script>
<!--todo - remove this. temporarily including jquery ui for calendar in push-->
<script id="libScript" src="2.0.34/js/libs/jqueryui/jquery.ui.timepicker.min.js" type="text/javascript"></script>
<script id="libScript" src="2.0.0/js/libs/jqueryui/jquery.ui.timepicker.min.js" type="text/javascript"></script>
<!-- In dev use: <script src="js/libs/angular-1.1.5.js"></script> -->
<!--<script type="text/javascript" src="js/libs/angular-ui-ng-grid/ng-grid-2.0.2.debug.js"></script>-->
<script src="config.js"></script>
<script id="main-script" src="2.0.34/js/usergrid-dev.min.js"></script>
<script id="main-script" src="2.0.0/js/usergrid-dev.min.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion portal/index-template.html
Expand Up @@ -110,7 +110,7 @@

<footer>
<hr>
<p class="pull-right">&copy; Apigee 2013</p>
<p class="pull-right">&copy; Apigee 2014</p>
</footer>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions portal/index.html
Expand Up @@ -8,12 +8,12 @@
<meta name="description" content="">
<meta name="author" content="">

<link id="libScript" href="2.0.34/js/libs/bootstrap/custom/css/bootstrap.min.css" rel="stylesheet">
<link id="libScript" href="2.0.34/css/dash.min.css" rel="stylesheet">
<link id="libScript" href="2.0.0/js/libs/bootstrap/custom/css/bootstrap.min.css" rel="stylesheet">
<link id="libScript" href="2.0.0/css/dash.min.css" rel="stylesheet">

<!--styles for jquery ui calendar component-->
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.34/js/libs/jqueryui/jquery-ui-1.8.9.custom.css">
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.34/js/libs/jqueryui/jquery-ui-timepicker.css">
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.0/js/libs/jqueryui/jquery-ui-1.8.9.custom.css">
<link id="libScript" rel="stylesheet" type="text/css" href="2.0.0/js/libs/jqueryui/jquery-ui-timepicker.css">
</head>
<body ng-controller="PageCtrl">
<!-- Google Tag Manager -->
Expand Down Expand Up @@ -109,20 +109,20 @@

<footer>
<hr>
<p class="pull-right">&copy; Apigee 2013</p>
<p class="pull-right">&copy; Apigee 2014</p>
</footer>
</div>
</div>
</div>
</section>
<script id="libScript" src="2.0.34/js/libs/usergrid-libs.min.js"></script>
<script id="libScript" src="2.0.34/js/libs/bootstrap/custom/js/bootstrap.min.js"></script>
<script id="libScript" src="2.0.0/js/libs/usergrid-libs.min.js"></script>
<script id="libScript" src="2.0.0/js/libs/bootstrap/custom/js/bootstrap.min.js"></script>
<!--todo - remove this. temporarily including jquery ui for calendar in push-->
<script id="libScript" src="2.0.34/js/libs/jqueryui/jquery.ui.timepicker.min.js" type="text/javascript"></script>
<script id="libScript" src="2.0.0/js/libs/jqueryui/jquery.ui.timepicker.min.js" type="text/javascript"></script>
<!-- In dev use: <script src="js/libs/angular-1.1.5.js"></script> -->
<!--<script type="text/javascript" src="js/libs/angular-ui-ng-grid/ng-grid-2.0.2.debug.js"></script>-->
<script src="config.js"></script>
<script id="main-script" src="2.0.34/js/usergrid.min.js"></script>
<script id="main-script" src="2.0.0/js/usergrid.min.js"></script>

</body>
</html>
7 changes: 6 additions & 1 deletion portal/js/app.js
Expand Up @@ -51,6 +51,8 @@ AppServices.Services = angular.module('appservices.services', []);
AppServices.Controllers = angular.module('appservices.controllers', []);
AppServices.Filters = angular.module('appservices.filters', []);
AppServices.Directives = angular.module('appservices.directives', []);
AppServices.Performance = angular.module('appservices.performance', []);
AppServices.Push = angular.module('appservices.push', []);

angular.module('appservices',
[ 'ngRoute',
Expand All @@ -62,7 +64,8 @@ angular.module('appservices',
'appservices.directives',
'appservices.constants',
'appservices.controllers',

'appservices.performance',
'appservices.push'
]).config(['$routeProvider', '$locationProvider','$sceDelegateProvider',
function ($routeProvider,$locationProvider,$sceDelegateProvider) {
$routeProvider
Expand All @@ -77,6 +80,7 @@ angular.module('appservices',
.when('/users/profile', {templateUrl: 'users/users-profile.html', controller: 'UsersProfileCtrl'})
.when('/users/groups', {templateUrl: 'users/users-groups.html', controller: 'UsersGroupsCtrl'})
.when('/users/activities', {templateUrl: 'users/users-activities.html', controller: 'UsersActivitiesCtrl'})
.when('/users/feed', {templateUrl: 'users/users-feed.html', controller: 'UsersFeedCtrl'})
.when('/users/graph', {templateUrl: 'users/users-graph.html', controller: 'UsersGraphCtrl'})
.when('/users/roles', {templateUrl: 'users/users-roles.html', controller: 'UsersRolesCtrl'})
.when('/groups', {templateUrl: 'groups/groups.html', controller: 'GroupsCtrl'})
Expand Down Expand Up @@ -112,4 +116,5 @@ angular.module('appservices',
'https://appservices.apigee.com/**',
'https://api.usergrid.com/**'
]);

}]);

0 comments on commit b19e45e

Please sign in to comment.