Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to PicketLink 2.5.1.Final. Merging latest changes from master. #41

Open
wants to merge 74 commits into
base: picketlink
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
6b02adb
JDF-256 support Forge 1.1.2 and Forge 1.2
pmuir Apr 9, 2013
2b80ca6
Fixing up the admin and the forge scaffold
LightGuard Apr 12, 2013
e8f0b3e
Revert "Fixing up the admin and the forge scaffold"
LightGuard Apr 12, 2013
6791cdd
Fixing forge admin generation and SectionAllocation
LightGuard Apr 12, 2013
ec1a385
Fixing up web.xml
LightGuard Apr 12, 2013
9ae1ccd
JDF-265 alter location of Infinispan file store on OpenShift
pmuir Apr 15, 2013
22ac27b
Move events into future!
pmuir Apr 15, 2013
54ad44d
Prepare for 2.1.2.Final release
pmuir Apr 15, 2013
386d7b3
Prepare for development of 2.1.3-SNAPSHOT
pmuir Apr 15, 2013
63ed750
Fix for JDF-267
VaclavDedik Apr 17, 2013
88ed575
Add support for postgres
pmuir Apr 18, 2013
9465e23
Support for deleting all bookings using REST
pmuir Apr 18, 2013
30361d2
Minor fix for Infinispan cache configuration
VineetReynolds May 7, 2013
5689cf7
Minor fixes for typos and incorrect file references.
emmanuelbernard May 14, 2013
8793e20
JDF-320 Upgrade jQuery to 1.9.1 and jQuery Mobile to 1.3.1.
VineetReynolds May 20, 2013
9d097cd
Fixed bug during calculation of totals of mobile bookings.
VineetReynolds May 21, 2013
632c2e2
JDF-267 Load the events and venues accordions in collapsed mode on pa…
VaclavDedik May 21, 2013
acd84dc
JDF-171 Fixed link for getting started with OpenShift.
VineetReynolds May 21, 2013
546c40b
JDF-182 Display events and venues menu in MSIE without box shadows.
VineetReynolds May 21, 2013
d26251a
JDF-326 Fix for display of custom created Events and Venues without M…
VineetReynolds May 22, 2013
a3727c7
JDF-330 Corrected message for the size constraint on Event descriptions
VineetReynolds May 23, 2013
61aad48
JDF-332 Fix for TicketMonster Android deployment issue on ADT 22.0
VineetReynolds May 26, 2013
cd968fb
JDF-333 Fix to cached MediaItems on OpenShift
VineetReynolds May 26, 2013
3b0909e
JDF-338 Upgraded Cordova usage from 2.0.0 to 2.7.0
VineetReynolds May 25, 2013
7d96a54
Adding JDG tutorial + code corrections
mbogoevici Feb 18, 2013
7452f91
Reverted code changes from previous commit to remove JS errors.
VineetReynolds Apr 18, 2013
19ccb43
JDF-339 Fix for Cordova-based app to use OpenShift-hosted images
VineetReynolds Jun 1, 2013
55373c5
Removed usage of jQuery Mobile nested listviews in the views.
VineetReynolds Jun 1, 2013
3fc3d07
JDF-84 Added a home button on all mobile views.
VineetReynolds Jun 2, 2013
90d51ea
JDF-344 Fix for JavaScript error during subsequent bookings.
VineetReynolds Jun 3, 2013
0708812
Minor fix to the ticket quantity field in Create Booking view
VineetReynolds Jun 3, 2013
12292ff
Fix to display the email on subsequent rendering of Create Booking view
VineetReynolds Jun 3, 2013
847415a
Prepare for 2.1.3.Final release
VineetReynolds Jun 3, 2013
a3e13df
Prepare for development of 2.1.4-SNAPSHOT
VineetReynolds Jun 3, 2013
8a2db60
JDF-67 Added instructions for setting up Jackson dependency
VineetReynolds Jun 6, 2013
d3c6efb
JDF-187 Documentation corrections for the chapter on building User UI.
VineetReynolds Jun 7, 2013
8035ec2
JDF-194 Added a requirement note for running the Arquillian test.
VineetReynolds Jun 7, 2013
0036869
Fixed spelling and formatting issues
VineetReynolds Jun 7, 2013
9a212bd
JDF-356 Corrected instructions for configuring desktop, mobile and Co…
VineetReynolds Jun 7, 2013
746ede5
JDF-360 Specifed BV provider type to avoid deployment error on EAP 6.1
VineetReynolds Jun 11, 2013
5f00e2d
JDF-325 Added global jQuery ajaxSetup option to bypass MSIE caching b…
VineetReynolds Jun 11, 2013
2ce04e0
JDF-369 ticket-monster cordova android add fixed footer
tolis-e Jun 13, 2013
d41a7ad
JDF-370 ticket-monster ios add CordovaLib classes in order to build i…
tolis-e Jun 13, 2013
8c01862
JDF-373 Fixes to mobile website for Safari WebKit
VineetReynolds Jun 13, 2013
65e8cb9
JDF-329 Fix for artifacts in Safari, in ticket booking view
VineetReynolds Jun 13, 2013
c38eb60
JDF-372 - ticket-monster cordova add import instructions for XCode an…
tolis-e Jun 13, 2013
e25ebb1
JDF-371 Updated the recommended Forge versions to those in JBDS 6 & 7
VineetReynolds Jun 14, 2013
82ae51d
JDF-382 Fix for Forge script to address the Forge 1.3.1 release.
VineetReynolds Jun 18, 2013
d6824a0
JDF-374 Fix to ensure bookings view is refreshed on delete
VineetReynolds Jun 20, 2013
6d4337a
JDF-375 Fixed style of navigation bar in Booking View.
VineetReynolds Jun 20, 2013
45d600b
JDF-390 Remove ios useSplashScreen deprecated setting
tolis-e Jun 25, 2013
b15af5e
JDF-378 - Correct warnings on asciidoctor about invalid levels
rafabene Jun 24, 2013
efa23a6
switching from setex to tax headers completely
rafabene Jun 24, 2013
2b8786a
JDF-389 Updated Git patches for Forge 1.3.2
VineetReynolds Jun 26, 2013
69da126
oops. Changes to tax headers removed the authors metadata. Correcting it
rafabene Jun 27, 2013
b18ac4b
JDF-383 Update to ShrinkWrap Resolvers 2.0.0.Final.
VineetReynolds Jul 9, 2013
0519e36
Modified the tutorial generator to use AsciiDoctor
VineetReynolds Jul 10, 2013
28d478a
Fixed Asciidoctor CSS generation and syntax highlighting.
VineetReynolds Jul 12, 2013
2367068
FORGE-345 Improved the styling for code listings.
VineetReynolds Jul 13, 2013
60394bc
Converted the preface section of the book into it's own chapter
VineetReynolds Jul 13, 2013
3d1222a
JDF-262 Updated the tutorial to use JBoss EAP 6.1 and JBDS 6.0.1
VineetReynolds Apr 22, 2013
0e97935
Prepare for 2.1.4.Final release
VineetReynolds Jul 16, 2013
b9f9263
Prepare for development of 2.1.5-SNAPSHOT
VineetReynolds Jul 16, 2013
b2b0316
JDF-366 Upgrade RequireJS to 2.1.8
VineetReynolds Jul 20, 2013
04af91f
JDF-443 Upgraded Underscore.js to 1.5.1
VineetReynolds Jul 21, 2013
acfd2e4
JDF-442 Upgrade to Backbone.js 1.0.0.
VineetReynolds Jul 21, 2013
f6dd17c
JDF-441 Upgraded Modernizr library to 2.6.2.
VineetReynolds Jul 31, 2013
d8e60bb
JDF-439 Updated TicketMonster tutorial to use JBDS 7
VineetReynolds Aug 1, 2013
48cbb73
JDF-438 TicketMonster tutorial now uses jQM palette of JBDS 7
VineetReynolds Aug 1, 2013
4e41da7
Fix to ensure that REST resource generation doesnt break.
VineetReynolds Aug 5, 2013
2ed94f2
Corrected TicketMonster guide for JavaScript library uses.
VineetReynolds Sep 2, 2013
3e03cdb
Prepare for 2.1.5.Final release
VineetReynolds Sep 2, 2013
4dab54d
Prepare for development of 2.1.6-SNAPSHOT
VineetReynolds Sep 2, 2013
85941f7
Updating to PicketLink 2.5.1.Final. Merging latest changes from master.
pedroigor Sep 19, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ bin
_site
_tmp
classes
.forge_settings
36 changes: 36 additions & 0 deletions cordova/android/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# What is this?

This the Cordova-Android project for TicketMonster.

## Importing and running the project

Prerequisites
-------------

* The Android Developer Tools plug-in must be installed in JBDS/Eclipse.
* An Android Virtual Device having a minimum API level 8 must be available. The recommended API level is 17 (Jelly Bean).

Import the ticket-monster Code
------------------------------

First we need to import the existing Android code to JBDS or Eclipse.

1. On Eclipse, click File then import.
2. Select *Existing Android Code Into Workspace* and click *Next*.
3. On Root Directory, click on *Browse...* button and navigate to the `$TICKET-MONSTER_HOME/cordova/android/TicketMonster` project on your filesystem.
4. After selecting the TicketMonster project, you can click on *Finish* button to start the project import.
5. Make sure that `$TICKET-MONSTER_HOME/cordova/android/TicketMonster/assets/www` is a symbolic link to `../../../demo/src/main/webapp`

#### Troubleshooting Windows Operating Systems

As Windows doesn't support symbolic links you must copy `$TICKET-MONSTER_HOME/demo/src/main/webapp` folder to `$TICKET-MONSTER_HOME/cordova/android/TicketMonster/assets/www`


Start the Emulator and Deploy the application
--------------------------------------------

1. Start the emulator on Eclipse by clicking *Window* and select *AVD Manager*.
2. On Android Virtual Device Manager window, select the appropriate AVD and click on *Start* button.
3. On Launch Options window click on *Launch* button.
4. After Emulator started, select your project on Eclipse
5. Click on *Run*, then *Run As* and *Android Application*
5 changes: 3 additions & 2 deletions cordova/android/TicketMonster/.classpath
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
5 changes: 3 additions & 2 deletions cordova/android/TicketMonster/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
android:minSdkVersion="8"
android:targetSdkVersion="17" />

<supports-screens
android:anyDensity="true"
Expand All @@ -31,6 +31,7 @@
<uses-permission android:name="android.permission.BROADCAST_STICKY" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
Expand Down
Binary file not shown.
Binary file not shown.
57 changes: 57 additions & 0 deletions cordova/ios/CordovaLib/Classes/CDV.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
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.
*/

#import "CDVAvailability.h"

#import "CDVPlugin.h"
#import "CDVViewController.h"
#import "CDVCommandDelegate.h"
#import "CDVURLProtocol.h"
#import "CDVInvokedUrlCommand.h"

#import "CDVAccelerometer.h"
#import "CDVBattery.h"
#import "CDVCamera.h"
#import "CDVCapture.h"
#import "CDVConnection.h"
#import "CDVContact.h"
#import "CDVContacts.h"
#import "CDVDebug.h"
#import "CDVDevice.h"
#import "CDVFile.h"
#import "CDVFileTransfer.h"
#import "CDVLocation.h"
#import "CDVNotification.h"
#import "CDVPluginResult.h"
#import "CDVReachability.h"
#import "CDVSound.h"
#import "CDVSplashScreen.h"
#import "CDVWhitelist.h"
#import "CDVLocalStorage.h"
#import "CDVInAppBrowser.h"
#import "CDVScreenOrientationDelegate.h"
#import "CDVTimer.h"

#import "NSArray+Comparisons.h"
#import "NSData+Base64.h"
#import "NSDictionary+Extensions.h"
#import "NSMutableArray+QueueAdditions.h"
#import "UIDevice+Extensions.h"

#import "CDVJSON.h"
39 changes: 39 additions & 0 deletions cordova/ios/CordovaLib/Classes/CDVAccelerometer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
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.
*/

#import <UIKit/UIKit.h>
#import "CDVPlugin.h"

@interface CDVAccelerometer : CDVPlugin <UIAccelerometerDelegate>
{
double x;
double y;
double z;
NSTimeInterval timestamp;
}

@property (readonly, assign) BOOL isRunning;
@property (nonatomic, strong) NSString* callbackId;

- (CDVAccelerometer*)init;

- (void)start:(CDVInvokedUrlCommand*)command;
- (void)stop:(CDVInvokedUrlCommand*)command;

@end
128 changes: 128 additions & 0 deletions cordova/ios/CordovaLib/Classes/CDVAccelerometer.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/*
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.
*/

#import "CDVAccelerometer.h"

@interface CDVAccelerometer () {}
@property (readwrite, assign) BOOL isRunning;
@end

@implementation CDVAccelerometer

@synthesize callbackId, isRunning;

// defaults to 10 msec
#define kAccelerometerInterval 40
// g constant: -9.81 m/s^2
#define kGravitationalConstant -9.81

- (CDVAccelerometer*)init
{
self = [super init];
if (self) {
x = 0;
y = 0;
z = 0;
timestamp = 0;
self.callbackId = nil;
self.isRunning = NO;
}
return self;
}

- (void)dealloc
{
[self stop:nil];
}

- (void)start:(CDVInvokedUrlCommand*)command
{
NSString* cbId = command.callbackId;
NSTimeInterval desiredFrequency_num = kAccelerometerInterval;
UIAccelerometer* pAccel = [UIAccelerometer sharedAccelerometer];

// accelerometer expects fractional seconds, but we have msecs
pAccel.updateInterval = desiredFrequency_num / 1000;
self.callbackId = cbId;
if (!self.isRunning) {
pAccel.delegate = self;
self.isRunning = YES;
}
}

- (void)onReset
{
[self stop:nil];
}

- (void)stop:(CDVInvokedUrlCommand*)command
{
UIAccelerometer* theAccelerometer = [UIAccelerometer sharedAccelerometer];

theAccelerometer.delegate = nil;
self.isRunning = NO;
}

/**
* Picks up accel updates from device and stores them in this class
*/
- (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration
{
if (self.isRunning) {
x = acceleration.x;
y = acceleration.y;
z = acceleration.z;
timestamp = ([[NSDate date] timeIntervalSince1970] * 1000);
[self returnAccelInfo];
}
}

- (void)returnAccelInfo
{
// Create an acceleration object
NSMutableDictionary* accelProps = [NSMutableDictionary dictionaryWithCapacity:4];

[accelProps setValue:[NSNumber numberWithDouble:x * kGravitationalConstant] forKey:@"x"];
[accelProps setValue:[NSNumber numberWithDouble:y * kGravitationalConstant] forKey:@"y"];
[accelProps setValue:[NSNumber numberWithDouble:z * kGravitationalConstant] forKey:@"z"];
[accelProps setValue:[NSNumber numberWithDouble:timestamp] forKey:@"timestamp"];

CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:accelProps];
[result setKeepCallback:[NSNumber numberWithBool:YES]];
[self.commandDelegate sendPluginResult:result callbackId:self.callbackId];
}

// TODO: Consider using filtering to isolate instantaneous data vs. gravity data -jm

/*
#define kFilteringFactor 0.1

// Use a basic low-pass filter to keep only the gravity component of each axis.
grav_accelX = (acceleration.x * kFilteringFactor) + ( grav_accelX * (1.0 - kFilteringFactor));
grav_accelY = (acceleration.y * kFilteringFactor) + ( grav_accelY * (1.0 - kFilteringFactor));
grav_accelZ = (acceleration.z * kFilteringFactor) + ( grav_accelZ * (1.0 - kFilteringFactor));

// Subtract the low-pass value from the current value to get a simplified high-pass filter
instant_accelX = acceleration.x - ( (acceleration.x * kFilteringFactor) + (instant_accelX * (1.0 - kFilteringFactor)) );
instant_accelY = acceleration.y - ( (acceleration.y * kFilteringFactor) + (instant_accelY * (1.0 - kFilteringFactor)) );
instant_accelZ = acceleration.z - ( (acceleration.z * kFilteringFactor) + (instant_accelZ * (1.0 - kFilteringFactor)) );


*/
@end
88 changes: 88 additions & 0 deletions cordova/ios/CordovaLib/Classes/CDVAvailability.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
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.
*/

#define __CORDOVA_IOS__

#define __CORDOVA_0_9_6 906
#define __CORDOVA_1_0_0 10000
#define __CORDOVA_1_1_0 10100
#define __CORDOVA_1_2_0 10200
#define __CORDOVA_1_3_0 10300
#define __CORDOVA_1_4_0 10400
#define __CORDOVA_1_4_1 10401
#define __CORDOVA_1_5_0 10500
#define __CORDOVA_1_6_0 10600
#define __CORDOVA_1_6_1 10601
#define __CORDOVA_1_7_0 10700
#define __CORDOVA_1_8_0 10800
#define __CORDOVA_1_8_1 10801
#define __CORDOVA_1_9_0 10900
#define __CORDOVA_2_0_0 20000
#define __CORDOVA_2_1_0 20100
#define __CORDOVA_2_2_0 20200
#define __CORDOVA_2_3_0 20300
#define __CORDOVA_2_4_0 20400
#define __CORDOVA_2_5_0 20500
#define __CORDOVA_2_6_0 20600
#define __CORDOVA_2_7_0 20700
#define __CORDOVA_NA 99999 /* not available */

/*
#if CORDOVA_VERSION_MIN_REQUIRED >= __CORDOVA_1_7_0
// do something when its at least 1.7.0
#else
// do something else (non 1.7.0)
#endif
*/
#ifndef CORDOVA_VERSION_MIN_REQUIRED
#define CORDOVA_VERSION_MIN_REQUIRED __CORDOVA_2_7_0
#endif

/*
Returns YES if it is at least version specified as NSString(X)
Usage:
if (IsAtLeastiOSVersion(@"5.1")) {
// do something for iOS 5.1 or greater
}
*/
#define IsAtLeastiOSVersion(X) ([[[UIDevice currentDevice] systemVersion] compare:X options:NSNumericSearch] != NSOrderedAscending)

#define CDV_IsIPad() ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)] && ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad))

#define CDV_IsIPhone5() ([[UIScreen mainScreen] bounds].size.height == 568 && [[UIScreen mainScreen] bounds].size.width == 320)

/* Return the string version of the decimal version */
#define CDV_VERSION [NSString stringWithFormat:@"%d.%d.%d", \
(CORDOVA_VERSION_MIN_REQUIRED / 10000), \
(CORDOVA_VERSION_MIN_REQUIRED % 10000) / 100, \
(CORDOVA_VERSION_MIN_REQUIRED % 10000) % 100]

#ifdef __clang__
#define CDV_DEPRECATED(version, msg) __attribute__((deprecated("Deprecated in Cordova " #version ". " msg)))
#else
#define CDV_DEPRECATED(version, msg) __attribute__((deprecated()))
#endif

// Enable this to log all exec() calls.
#define CDV_ENABLE_EXEC_LOGGING 0
#if CDV_ENABLE_EXEC_LOGGING
#define CDV_EXEC_LOG NSLog
#else
#define CDV_EXEC_LOG(...) do {} while (NO)
#endif
Loading