<-- An unbalanced tag we dont care about -->
22 |
Some entities '"
23 |
Not a real entity &fake;
24 |
25 |
26 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/deferjs/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | deferjs
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/resources/org/apache/shindig/gadgets/parse/test-expected.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
An example
5 |
6 |
7 |
8 |
9 |
12 |
Lorem ipsum
13 |
link
14 |
23 |
--------------------------------------------------------------------------------
/java/server/src/test/resources/endtoend/messages.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | test FTW
22 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/content-rewrite/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | content-rewrite
22 |
23 |
--------------------------------------------------------------------------------
/java/server/src/test/resources/endtoend/viewMessages.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | test view FTW
22 |
23 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/xhrwrapper/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | xhrwrapper
21 |
22 | shindig.xhrwrapper
23 |
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-0.9/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | opensocial-0.9
22 | opensocial
23 |
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-1.0/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | opensocial-1.0
22 | opensocial
23 |
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-2.0/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | opensocial-2.0
22 | opensocial
23 |
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-2.5/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | opensocial-2.5
22 | opensocial
23 |
24 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/firebug-lite/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | firebug-lite
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shindig.auth/auth-init.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @fileoverview
22 | *
23 | * Bootstraps auth.js.
24 | */
25 |
26 | shindig.auth = new shindig.Auth();
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/exportjs/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | exportjs
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shindig.container-1.0/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | shindig.container-1.0
22 | container
23 |
24 |
--------------------------------------------------------------------------------
/java/server/src/test/resources/endtoend/messages_ar.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 | WTF tset
23 |
--------------------------------------------------------------------------------
/etc/run-gjslint:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 |
20 | gjslint --strict --unix_mode --exclude_directories features/src/main/javascript/features/swfobject,features/src/main/javascript/features/i18n --recurse features/src/main/javascript/features
21 |
--------------------------------------------------------------------------------
/content/gadgets/rewriter/rewriter1.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | #backgrdiv {
21 | background-image: url("feather.png");
22 | background-repeat: no-repeat;
23 | background-position: 20%;
24 | border: 2px red solid;
25 | }
26 |
--------------------------------------------------------------------------------
/content/gadgets/rewriter/rewriter2.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | #backgrdiv2 {
21 | background-image: url("feather.png");
22 | background-repeat: no-repeat;
23 | background-position: 20%;
24 | border: 2px blue solid;
25 | }
26 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/taming/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | taming
21 |
22 |
23 |
24 | tamings___
25 |
26 |
27 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/core/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 |
Core Utilities package
21 |
Utilities used by core packages.
22 | */
23 | package org.apache.shindig.social.core.util;
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/open-views/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | open-views
21 | open-views.ee
22 | open-views.gadget
23 | open-views.url
24 |
25 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-templates/README:
--------------------------------------------------------------------------------
1 | # History
2 |
3 | Original work come from http://google-jstemplate.googlecode.com and was included at 2009-04-03.
4 |
5 | # Running Tests
6 |
7 | You need to download JsUnit from http://jsunit.net/ and unzip to this folder,
8 | or create a symlink 'jsunit' to your local jsunit directory.
9 | Then you can run the tests for OpenSocial Template library by running the
10 | following script in a unix-like environment:
11 |
12 | firefox jsunit/testRunner.html?testpage=$PWD/ost_test.html
13 |
14 | TODO: Instructions for loading test page for other operating system/browser
15 | environments.
16 |
17 | N.B.: Has been verified only on FF1.5 and FF2.
18 |
19 | N.B.: These tests run in the jsunit.net version JsUnit, other than the
20 | jsunit.berlios.de version used in the tests for other features. The heavy use of
21 | client-side objects requires a browser-based JsUnit. This rules out the other
22 | version, which uses an embedded Rhino engine. jsnuit.net does not support Maven,
23 | so we cannot integrate the testing into Maven build process.
24 |
--------------------------------------------------------------------------------
/java/server/src/test/resources/endtoend/failCajaUrlTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/protocol/model/SortOrder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.protocol.model;
20 |
21 | /**
22 | * Common sort order definitions
23 | */
24 | public enum SortOrder {
25 | ascending, descending
26 | }
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/flash/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.flash.* API to cajoled gadgets
23 | */
24 |
25 | tamings___.push(function(imports) {
26 | // TODO(felix8a): tame flash
27 | });
28 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/sample/service/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | *
Sample Container package
21 | *
Support classes for a simple sample container.
22 | */
23 | package org.apache.shindig.social.sample.service;
24 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/protocol/model/FilterOperation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.protocol.model;
20 |
21 | /**
22 | * Standard filter operations
23 | */
24 | public enum FilterOperation {
25 | contains, equals, startsWith, present
26 | }
27 |
--------------------------------------------------------------------------------
/content/gadgets/url-gadget-with-features/url.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/sample/oauth/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | *
Sample OAuth implementation package
21 | *
A Sample implementation of OAuth for the sample container.
22 | */
23 | package org.apache.shindig.social.sample.oauth;
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/caja/es53-guest-frame.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 | es53-guest-frame
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/caja/es53-taming-frame.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 | es53-taming-frame
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/caja/caja-debug.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 | caja-debug
23 | caja
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/skins/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.skin.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.skins, 'getProperty']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/core/oauth/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 |
The Core Social OAuth package
21 |
Provides implementations of the OAuth infrastructure for the
22 | Social component.
23 | */
24 | package org.apache.shindig.social.core.oauth;
25 |
--------------------------------------------------------------------------------
/java/social-api/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | log4j.rootCategory=info
19 | log4j.rootLogger=info, stdout
20 |
21 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
22 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
23 | log4j.appender.stdout.layout.ConversionPattern= %p %m [%d] (%F:%L) %n
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/caja/es53-guest-frame.opt.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 | es53-guest-frame.opt
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/java/social-api/src/test/resources/simplelog.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | log4j.rootCategory=info
19 | log4j.rootLogger=info, stdout
20 |
21 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
22 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
23 | log4j.appender.stdout.layout.ConversionPattern= %p %m [%d] (%F:%L) %n
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/caja/es53-taming-frame.opt.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 | es53-taming-frame.opt
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/settitle/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose gadgets.window.setTitle to cajoled gadgets
23 | */
24 |
25 | tamings___.push(function(imports) {
26 | caja___.whitelistFuncs([
27 | [gadgets.window, 'setTitle']
28 | ]);
29 | });
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.urlparams/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.util, 'getUrlParameters']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/defer.test/defertest.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | shindig.defer = (function() {
21 | function callback(callback) {
22 | var args = [].slice.call(arguments, 1);
23 | callback.apply(null, args);
24 | }
25 |
26 | return {
27 | callback: callback
28 | };
29 | })();
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-height/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.window.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.window, 'adjustHeight']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-width.width/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.window.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.window, 'getWidth']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-width/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.window.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.window, 'adjustWidth']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-height.height/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.window.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.window, 'getHeight']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/proxied-form-post/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.io.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.io, 'proxiedMultipartFormPost']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shared-script-frame/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.script.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.script, 'getScriptFrame']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.onload/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.util, 'registerOnLoadHandler']
27 | ]);
28 | });
29 |
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-size.util/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.window.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.window, 'getViewportDimensions']
27 | ]);
28 | });
29 |
--------------------------------------------------------------------------------
/content/containers/deprecated/container/rpc_relay.html:
--------------------------------------------------------------------------------
1 |
19 |
28 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/wave/externs.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * 'License'); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations under the License.
17 | */
18 |
19 | /**
20 | * @fileoverview Contains variable declarations so that the jscompiler
21 | * will not report errors on these objects.
22 | */
23 |
24 | var gadgets;
25 | gadgets.rpc;
26 | gadgets.rpc.call = function(parent, serviceName, opt_callback, opt_params) {};
27 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/resources/org/apache/shindig/gadgets/parse/test-with-iecond-comments-expected.html:
--------------------------------------------------------------------------------
1 |
2 |
An example
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/opensocial/oauth/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 |
The Social Authentication package
21 |
OAuth interfaces that are used throughout the Social Component to
22 | manage OAuth assertions.
23 | */
24 |
25 | package org.apache.shindig.social.opensocial.oauth;
26 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/UriStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.uri;
20 |
21 | /**
22 | * Contains all states of a Uri - versioned/unversioned, etc.
23 | */
24 | public enum UriStatus {
25 | VALID_VERSIONED,
26 | VALID_UNVERSIONED,
27 | INVALID_VERSION,
28 | BAD_URI
29 | }
30 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/analytics/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | analytics
21 | core.legacy
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-data-context/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | opensocial-data-context
22 | taming
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/core/oauth2/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | * Implementation of OAuth 2.0.
21 | *
22 | * This implementation currently complies to
23 | *
OAuth 2.0 DRAFT 21
24 | */
25 | package org.apache.shindig.social.core.oauth2;
--------------------------------------------------------------------------------
/features/bin/runner.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 |
20 | # This script is designed to be run from the features module root directory.
21 | # It's very simple; feel free to make it more robust.
22 |
23 | java -cp ~/.m2/repository//rhino/js/1.7R1/js-1.7R1.jar org.mozilla.javascript.tools.shell.Main src/test/javascript/features/alltests.js BatchTest OsapiTest JsonRpcTransportTest
24 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.none/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
25 | core.none
26 |
27 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.util, 'getFeatureParameters'],
27 | [gadgets.util, 'hasFeature']
28 | ]);
29 | });
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/auth-refresh/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | auth-refresh
21 | shindig.auth
22 | rpc
23 |
24 |
25 |
26 | update_security_token
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/cloo/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | cloo
21 |
22 |
23 |
24 | cloo.interfc
25 | cloo.obj
26 | cloo.me
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/gadgets.json.ext/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | // TODO(felix8a): is this safe?
27 | // [gadgets.json.xml, 'convertXmlToJson']
28 | ]);
29 | });
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/globals/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | globals
21 |
22 |
23 | gadgets
24 | shindig
25 | osapi
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/common/util/TimeSource.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.common.util;
20 |
21 | /**
22 | * Simple source of current time to use for dependency injection.
23 | */
24 | public class TimeSource {
25 |
26 | public long currentTimeMillis() {
27 | return System.currentTimeMillis();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.json/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.tamesTo(gadgets.json.stringify, caja___.getJSON().stringify);
26 | caja___.tamesTo(gadgets.json.parse, caja___.getJSON().parse);
27 | });
28 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/sample/spi/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | *
Sample SPI implementation
21 | *
A Sample implementation of the SPI, using a JSON DB
22 | * implementation. This container is used for end to end testing of the
23 | * Social API
24 | */
25 | package org.apache.shindig.social.sample.spi;
26 |
--------------------------------------------------------------------------------
/content/gadgets/templates/TestTemplateLibrary.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 | Hello World from template library with relative url!
24 |
25 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shindig.uri.ext/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
23 | shindig.uri.ext
24 | globals
25 | shindig.uri
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.io/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.io.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.io, 'encodeValues'],
27 | [gadgets.io, 'getProxyUrl'],
28 | [gadgets.io, 'makeRequest']
29 | ]);
30 | });
31 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ProxyingContentRewriterTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.rewrite;
20 |
21 | import org.junit.Test;
22 |
23 | public class ProxyingContentRewriterTest {
24 | @Test
25 | public void implementIntegrationTests() throws Exception {
26 | // TODO: what the method says
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/java/server/src/test/resources/endtoend/testLibrary.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 | var templateLibraryExecuted = true;
23 |
24 |
25 | ${content}
26 |
27 |
28 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/defer.test/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | defer.test
22 | globals
23 |
24 |
25 |
26 | shindig.defer.callback
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ScriptConcatContentRewriterTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.rewrite;
20 |
21 | import org.junit.Test;
22 |
23 | public class ScriptConcatContentRewriterTest {
24 | @Test
25 | public void implementIntegrationTests() throws Exception {
26 | // TODO: what the method says
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleConcatContentRewriterTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.rewrite;
20 |
21 | import org.junit.Test;
22 |
23 | public class StyleConcatContentRewriterTest {
24 | @Test
25 | public void implementIntegrationTests() throws Exception {
26 | // TODO: what the method says
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.string/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.util, 'escape'],
27 | [gadgets.util, 'escapeString'],
28 | [gadgets.util, 'unescapeString']
29 | ]);
30 | });
31 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/i18n/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | opensocial-i18n
21 | globals
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/pubsub/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.pubsub.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.pubsub, 'publish'],
27 | [gadgets.pubsub, 'subscribe'],
28 | [gadgets.pubsub, 'unsubscribe']
29 | ]);
30 | });
31 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/PreloadModule.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.preload;
20 |
21 | import com.google.inject.AbstractModule;
22 |
23 | /**
24 | * Guice bindings for the render package.
25 | */
26 | public class PreloadModule extends AbstractModule {
27 | @Override
28 | protected void configure() {
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleAdjacencyContentRewriterTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.rewrite;
20 |
21 | import org.junit.Test;
22 |
23 | public class StyleAdjacencyContentRewriterTest {
24 | @Test
25 | public void implementIntegrationTests() throws Exception {
26 | // TODO: what the method says
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/core/config/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | *
Core configuration
21 | *
This package contains core configuration classes for Guice to
22 | * construct the Social API component. Implementors may want to override
23 | * modules in this package
24 | */
25 | package org.apache.shindig.social.core.config;
26 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/auth-refresh/auth-refresh.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations under the License.
17 | */
18 |
19 | /*global gadgets, shindig */
20 |
21 | /**
22 | * @fileoverview Allows the container to refresh the gadget security token.
23 | */
24 | gadgets.rpc.register('update_security_token', function(token) {
25 | if (this.f !== '..') {
26 | return;
27 | }
28 | shindig.auth.updateSecurityToken(token);
29 | });
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-data-context/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose the opensocial.data.DataContext API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [opensocial.data, 'getDataContext'],
27 | [opensocial.data.DataContext, 'putDataSet']
28 | ]);
29 | });
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/selection/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | var tamings___ = tamings___ || [];
21 | tamings___.push(function(imports) {
22 | ___.grantRead(gadgets.selection, 'setSelection');
23 | ___.grantRead(gadgets.selection, 'getSelection');
24 | ___.grantRead(gadgets.selection, 'addListener');
25 | ___.grantRead(gadgets.selection, 'removeListener');
26 | });
27 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagExtractorContentRewriterTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.rewrite;
20 |
21 | import org.junit.Test;
22 |
23 | public class StyleTagExtractorContentRewriterTest {
24 | @Test
25 | public void implementIntegrationTests() throws Exception {
26 | // TODO: what the method says
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/org.jquery.core-1.4.2/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | org.jquery.core-1.4.2
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.urlparams/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | core.util.urlparams
21 | globals
22 |
23 |
24 |
25 |
26 | gadgets.util.getUrlParameters
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.base/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.* API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistFuncs([
26 | [gadgets.util, 'makeClosure'],
27 | [gadgets.util, 'makeEnum'],
28 | [gadgets.util, 'shouldPollXhrReadyStateChange']
29 | ]);
30 | });
31 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 |
The Social Model API package
21 |
Model interfaces that are used throughout the Social Component to transfer the model. Implementors may implement these interfaces to contain their model objects.
22 |
23 | */
24 |
25 | package org.apache.shindig.social.opensocial.model;
26 |
--------------------------------------------------------------------------------
/etc/cruisecontrol/README:
--------------------------------------------------------------------------------
1 | === Instructions for running cruise control on the shindig java source code ===
2 |
3 | Download the latest CruiseControl (CC) from http://cruisecontrol.sourceforge.net/download.html. As
4 | of now we are using 2.7.2, but newer version should work as well.
5 |
6 | Install CC on the same level as your Shindig project. (You can use other locations as well, but this
7 | would require you to modify the config.xml file -- which should be easy.)
8 |
9 | /usr/local
10 | |
11 | +---- Shindig
12 | +---- CruiseControl
13 |
14 | In ~/.m2 create settings.xml with the following content. The site.html.dir property needs to point
15 | the right location were the httpd can find it.
16 |
17 |
18 |
19 |
20 | reporting
21 |
22 | file:///usr/local/google/shindig/html</site.html.dir>
23 |
24 |
25 |
26 |
27 |
28 |
29 | Build the project with 'mvn clean package site-deploy -P reporting'
30 |
31 | Replace the existing cruisecontrol/config.xml with the one from
/etc/cruisecontrol/
32 |
33 | Restart CruiseControl
34 |
35 | Force a build!
36 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shindig.random/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
23 | shindig.random
24 | globals
25 | shindig.sha1
26 |
27 |
28 | shindig.random
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/java/server/src/test/resources/endtoend/failCajaTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
27 | var x = {};
28 | with(x) {};
29 |
30 | ]]>
31 |
32 |
33 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/protocol/model/ExtendableBeanImpl.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.protocol.model;
20 |
21 | import java.util.HashMap;
22 |
23 |
24 | /**
25 | * A generic bucket to store arbitrary extensions.
26 | */
27 | public class ExtendableBeanImpl extends HashMap implements ExtendableBean {
28 | private static final long serialVersionUID = 1L;
29 | }
30 |
--------------------------------------------------------------------------------
/java/social-api/src/test/resources/logging.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | handlers=java.util.logging.ConsoleHandler
19 | java.util.logging.ConsoleHandler.level=ALL
20 | java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
21 | .level=INFO
22 |
23 | # Shindig commons
24 | org.apache.shindig.common.JsonContainerConfig.level=${java.util.logging.test.level}
25 | org.apache.shindig.common.xml.XmlUtil.level=${java.util.logging.test.level}
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/StyleAdjacencyContentRewriter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.rewrite;
20 |
21 | /**
22 | * Merges adjacent style tags.
23 | *
24 | * @since 2.0.0
25 | */
26 | public class StyleAdjacencyContentRewriter extends DomWalker.Rewriter {
27 | public StyleAdjacencyContentRewriter() {
28 | super(new StyleAdjacencyVisitor());
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/java/sample-maven-archetype/src/main/resources/archetype-resources/src/main/webapp/myFirstGadget.xml:
--------------------------------------------------------------------------------
1 | #set( $symbol_pound = '#' )
2 | #set( $symbol_dollar = '$' )
3 | #set( $symbol_escape = '\' )
4 |
5 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | The Social Service API package
21 | Service classes and interfaces that bind to the HTTP transport
22 | and provide routing and handling of the REST requests. Containers may
23 | extend the DataServiceServlet and other classes.
24 | */
25 |
26 | package org.apache.shindig.social.opensocial.service;
27 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/pubsub-2/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | pubsub-2
21 | globals
22 | taming
23 | org.openajax.hub-2.0.7
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.event/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | core.util.event
21 | globals
22 | core.log
23 |
24 |
25 |
26 | gadgets.util.attachBrowserEvent
27 | gadgets.util.removeBrowserEvent
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shindig.container/util.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations under the License.
17 | */
18 |
19 | /**
20 | * @fileoverview Utility functions for the Open Gadget Container.
21 | */
22 |
23 | Function.prototype.inherits = function(parentCtor) {
24 | function tempCtor() {};
25 | tempCtor.prototype = parentCtor.prototype;
26 | this.superClass_ = parentCtor.prototype;
27 | this.prototype = new tempCtor();
28 | this.prototype.constructor = this;
29 | };
30 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/pubsub-2/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose core gadgets.pubsub.* API to cajoled gadgets
23 | */
24 | // XXX not sure what to do here
25 | //tamings___.push(function(imports) {
26 | // caja___.whitelistFuncs([
27 | // [gadgets.pubsub, 'publish'],
28 | // [gadgets.pubsub, 'subscribe'],
29 | // [gadgets.pubsub, 'unsubscribe']
30 | // ]);
31 | //});
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/osml/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
25 | osml
26 | opensocial-data
27 | opensocial-templates
28 |
29 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/protocol/model/ExtendableBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.protocol.model;
20 |
21 | import java.util.Map;
22 |
23 |
24 | import com.google.inject.ImplementedBy;
25 |
26 | /**
27 | * A generic bucket to store arbitrary extensions.
28 | */
29 | @ImplementedBy(ExtendableBeanImpl.class)
30 | @Exportablebean
31 | public interface ExtendableBean extends Map {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/java/common/src/test/java/org/apache/shindig/common/PairTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.common;
20 |
21 | import static org.junit.Assert.assertEquals;
22 |
23 | import org.junit.Test;
24 |
25 | public class PairTest {
26 |
27 | @Test
28 | public void testPair() {
29 | Pair p = Pair.of("one", new Integer(1));
30 | assertEquals("one", p.one);
31 | assertEquals(new Integer(1), p.two);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/com.google.gadgets.analytics/taming.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @class
22 | * Tame and expose Google Analytics API to cajoled gadgets
23 | */
24 | tamings___.push(function(imports) {
25 | caja___.whitelistCtors([
26 | [gadgets, 'analytics', Object]
27 | ]);
28 | caja___.whitelistMeths([
29 | [gadgets.analytics, 'reportPageview'],
30 | [gadgets.analytics, 'reportEvent']
31 | ]);
32 | });
33 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/HtmlSerializer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.parse;
20 |
21 | import com.google.inject.ImplementedBy;
22 |
23 | import org.w3c.dom.Document;
24 |
25 | /**
26 | * Interface for HTML serializers, which turn a Document into a String.
27 | */
28 | @ImplementedBy(DefaultHtmlSerializer.class)
29 | public interface HtmlSerializer {
30 | String serialize(Document doc);
31 | }
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-width.width/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | dynamic-width.width
21 | globals
22 | taming
23 | dynamic-size.util
24 |
25 |
26 |
27 |
28 | gadgets.window.getWidth
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/common/uri/UriParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.common.uri;
20 |
21 | /**
22 | * An injectable interface for parsing Uris out of String text.
23 | */
24 | public interface UriParser {
25 | /**
26 | * Produces a new Uri from a text representation.
27 | *
28 | * @param text The text uri.
29 | * @return A new Uri, parsed into components.
30 | */
31 | Uri parse(String text);
32 | }
33 |
--------------------------------------------------------------------------------
/java/sample-container/src/main/java/org/apache/shindig/sample/shiro/ShiroGuiceModule.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.sample.shiro;
20 | import com.google.inject.AbstractModule;
21 |
22 | public class ShiroGuiceModule extends AbstractModule {
23 |
24 | protected void configure() {
25 | // We do this so that jsecurity realms can get access to the jsondbservice singleton
26 | requestStaticInjection(SampleShiroRealm.class);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.dom/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | core.util.dom
21 | globals
22 |
23 |
24 |
25 | gadgets.util.createElement
26 | gadgets.util.createIframeElement
27 | gadgets.util.getBodyElement
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/dynamic-height.height/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | dynamic-height.height
21 | globals
22 | taming
23 | dynamic-size.util
24 |
25 |
26 |
27 |
28 | gadgets.window.getHeight
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/gadgets.json.ext/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | gadgets.json.ext
21 | globals
22 | taming
23 | domnode
24 |
25 |
26 |
27 |
28 | gadgets.json.xml.convertXmlToJson
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/oauthpopup/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | oauthpopup
21 | globals
22 |
23 |
24 |
25 | gadgets.oauth.Popup
26 | gadgets.oauth.Popup.prototype.createOpenerOnClick
27 | gadgets.oauth.Popup.prototype.createApprovedOnClick
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/opensocial-data/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | opensocial-data
22 | core.io
23 | core.util
24 | opensocial-data-context
25 | opensocial
26 | xmlutil
27 | domnode
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/common/Pair.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.common;
20 |
21 | /**
22 | * A pair of any two objects.
23 | */
24 | public class Pair {
25 | public final T1 one;
26 | public final T2 two;
27 |
28 | public Pair(T1 one, T2 two) {
29 | this.one = one;
30 | this.two = two;
31 | }
32 |
33 | public static Pair of(T1 one, T2 two) {
34 | return new Pair(one, two);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/OAuthUriManager.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.uri;
20 |
21 | import org.apache.shindig.common.uri.Uri;
22 |
23 | /**
24 | * Methods used by the oauth proxy, currently only used for an OAuth callback.
25 | */
26 | public interface OAuthUriManager {
27 | /**
28 | * @return the OAuth Callback Uri on the provided host.
29 | */
30 | Uri makeOAuthCallbackUri(String container, String host);
31 | }
32 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/core/oauth2/validators/OAuth2GrantValidator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.social.core.oauth2.validators;
20 |
21 | /**
22 | * Handles the validation of a grant requests for access tokens.
23 | */
24 | public interface OAuth2GrantValidator extends OAuth2RequestValidator{
25 |
26 | /**
27 | * Indicates the grant type this handler is registered to handle.
28 | */
29 | public String getGrantType();
30 | }
31 |
--------------------------------------------------------------------------------
/extras/src/main/javascript/features-extras/features.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 |
19 | features-extras/analytics/feature.xml
20 | features-extras/com.google.gadgets.analytics/feature.xml
21 | features-extras/firebug-lite/feature.xml
22 | features-extras/org.jquery.core-1.4.2/feature.xml
23 | features-extras/wave/feature.xml
24 | features-extras/opensocial-payment/feature.xml
25 | features-extras/pubsub-2/feature.xml
26 | features-extras/org.openajax.hub-2.0.7/feature.xml
27 | features-extras/swfobject/feature.xml
28 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/render/ServiceFetcher.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.render;
20 |
21 | import com.google.common.collect.Multimap;
22 | import com.google.inject.ImplementedBy;
23 |
24 | /**
25 | * Retrieves the rpc services for a container.
26 | */
27 | @ImplementedBy(DefaultServiceFetcher.class)
28 | public interface ServiceFetcher {
29 | Multimap getServicesForContainer(String container, String host);
30 | }
31 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.string/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | core.util.string
21 | globals
22 |
23 |
24 |
25 |
26 | gadgets.util.escape
27 | gadgets.util.escapeString
28 | gadgets.util.unescapeString
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/content/containers/deprecated/container/rpc_relay.uncompressed.html:
--------------------------------------------------------------------------------
1 |
19 |
33 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/core.util.base/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | core.util.base
21 | globals
22 |
23 |
24 |
25 |
26 | gadgets.util.makeClosure
27 | gadgets.util.makeEnum
28 | gadgets.util.shouldPollXhrReadyStateChange
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/settitle/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 | settitle
21 | globals
22 | taming
23 | rpc
24 |
25 |
26 |
27 |
28 | gadgets.window.setTitle
29 | _IG_SetTitle
30 | set_title
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/UnsupportedFeatureException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets;
20 |
21 |
22 | /**
23 | * Thrown whenever GadgetFeatureRegistry gets a request for a feature that is
24 | * not registered.
25 | */
26 | public class UnsupportedFeatureException extends GadgetException {
27 | public UnsupportedFeatureException(String name) {
28 | super(GadgetException.Code.UNSUPPORTED_FEATURE,
29 | "Unsupported feature: " + name);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/persistence/OAuth2PersistenceException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.oauth2.persistence;
20 |
21 | /**
22 | * Exception class for errors that occur in the persistence layer.
23 | */
24 | public class OAuth2PersistenceException extends Exception {
25 | private static final long serialVersionUID = -8550943441259921635L;
26 |
27 | public OAuth2PersistenceException(final Exception cause) {
28 | super(cause);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/content/containers/commoncontainer/sample-views.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
23 |
24 |
25 |
26 | Home view
28 | ]]>
29 |
30 |
31 | Canvas view
33 | ]]>
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/actions/constants.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations under the License.
17 | */
18 |
19 | /**
20 | * @fileoverview Constants used throughout the container classes for
21 | * actions.
22 | */
23 |
24 | /**
25 | * Actions namespace
26 | * @type {Object}
27 | */
28 | osapi.container.actions = {};
29 |
30 | /**
31 | * Optional params for actions.
32 | * @enum {string}
33 | */
34 | osapi.container.actions.OptParam = {};
35 | osapi.container.actions.OptParam.VIEW = 'view';
36 | osapi.container.actions.OptParam.VIEW_TARGET = 'viewTarget';
37 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/PreloadException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.preload;
20 |
21 | /**
22 | * Exceptions thrown when preloading data.
23 | */
24 | public class PreloadException extends Exception {
25 | public PreloadException(String msg) {
26 | super(msg);
27 | }
28 |
29 | public PreloadException(Throwable t) {
30 | super(t);
31 | }
32 |
33 | public PreloadException(String msg, Throwable t) {
34 | super(msg, t);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/java/gadgets/src/test/resources/org/apache/shindig/gadgets/rewrite/OSML_test.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
25 |
26 |
27 | osml1
28 | osml2
29 |
30 |
--------------------------------------------------------------------------------
/features/src/test/javascript/features/mocks/env.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * @fileoverview
22 | *
23 | * Provides a simulated browser environment.
24 | * TODO Port John Resig's env.js.
25 | */
26 |
27 | var document = {
28 | location: {
29 | href: "http://localhost"
30 | },
31 | getElementsByTagName: function (name) { return []; }
32 | };
33 |
34 | // See mocks.FakeWindow if you need something more full featured.
35 | var window = {};
36 | window['gadgets'] = {};
37 |
38 | var alert = function() {};
39 |
--------------------------------------------------------------------------------
/java/common/src/main/java/org/apache/shindig/common/xml/XmlException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.common.xml;
20 |
21 | /**
22 | * Exception throw by shindig XML parsing utility routines
23 | */
24 | public class XmlException extends Exception {
25 | public XmlException(String message, Exception cause) {
26 | super(message, cause);
27 | }
28 | public XmlException(Exception cause) {
29 | super(cause);
30 | }
31 | public XmlException(String message) {
32 | super(message);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/persistence/OAuth2CacheException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.oauth2.persistence;
20 |
21 | /**
22 | * Subclass of {@link OAuth2PersistenceException} for caching issues.
23 | *
24 | */
25 | public class OAuth2CacheException extends OAuth2PersistenceException {
26 | private static final long serialVersionUID = -7722454386821962603L;
27 |
28 | public OAuth2CacheException(final Exception cause) {
29 | super(cause);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/java/social-api/src/main/java/org/apache/shindig/social/core/util/xstream/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | /**
20 | XStream Utilities package
21 | The XStream classes enable Bean to XML to Bean conversion using the XStream
22 | library. These are configured to produce and consume XML that conforms to the
23 | OpenSocial XSD. Most of the mapping is performed by InterfaceClassMapper which is
24 | configured by the BeanXStreamConverter class.
25 | */
26 |
27 | package org.apache.shindig.social.core.util.xstream;
28 |
--------------------------------------------------------------------------------
/etc/eclipse/shindig-eclipse-javascript-codetemplate.xml:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | ${filecomment}
20 | ${package_declaration}
21 |
22 | /**
23 | * @author <a href="mailto:dev@shindig.apache.org">Shindig Dev</a>
24 | */
25 | ${typecomment}
26 | ${type_declaration}
--------------------------------------------------------------------------------
/features/src/main/javascript/features/shindig.sha1/feature.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
23 | shindig.sha1
24 | globals
25 |
26 |
27 | shindig.sha1.reset
28 | shindig.sha1.update
29 | shindig.sha1.digest
30 | shindig.sha1.digestString
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/features/FeatureRegistryProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.features;
20 |
21 | import com.google.inject.ImplementedBy;
22 |
23 | import org.apache.shindig.gadgets.GadgetException;
24 |
25 | /**
26 | * Interface to provide feature registry for a repository
27 | */
28 | @ImplementedBy(DefaultFeatureRegistryProvider.class)
29 | public interface FeatureRegistryProvider {
30 | public FeatureRegistry get(String repository) throws GadgetException;
31 | }
32 |
--------------------------------------------------------------------------------
/features/src/main/javascript/features/globals/globals.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations under the License.
17 | */
18 |
19 | /**
20 | * @namespace The global gadgets namespace
21 | * @type {Object}
22 | */
23 | gadgets = window['gadgets'] || {};
24 |
25 | /**
26 | * @namespace The global shindig namespace, used for shindig specific extensions and data
27 | * @type {Object}
28 | */
29 | shindig = window['shindig'] || {};
30 |
31 | /**
32 | * @namespace The global osapi namespace, used for opensocial API specific extensions
33 | * @type {Object}
34 | */
35 | osapi = window['osapi'] || {};
36 |
--------------------------------------------------------------------------------
/java/gadgets/src/main/java/org/apache/shindig/gadgets/js/JsException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.shindig.gadgets.js;
20 |
21 | /**
22 | * Thrown when a step in the JavaScript processing pipeline results in an error.
23 | */
24 | public class JsException extends Exception {
25 |
26 | private final int statusCode;
27 |
28 | public JsException(int statusCode, String msg) {
29 | super(msg);
30 | this.statusCode = statusCode;
31 | }
32 |
33 | public int getStatusCode() {
34 | return statusCode;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------