NIHVIVO-3772 Incorporate the most recent changes from Eric (2012-06-20)
This commit is contained in:
parent
b3c09797b0
commit
c4ae8af529
13 changed files with 880 additions and 951 deletions
|
@ -89,25 +89,13 @@ deploy - Configure the application and deploy directly into the Tomcat webapps
|
|||
|
||||
<!-- the Shindig WAR -->
|
||||
<property name="shindig.war.original.file" location="./shindigorng.war" />
|
||||
<property name="shindig.war.unpacked.dir" location="${build.shindig.dir}/war" />
|
||||
<property name="shindig.war.modified.file" location="${build.shindig.dir}/shindigorng.war" />
|
||||
<property name="shindig.war.deployed.file" location="${tomcat.webapps.dir}/shindigorng.war" />
|
||||
|
||||
<!-- the Shindig-ORNG connector JAR -->
|
||||
<property name="shindig.connector.prefix" value="/WEB-INF/lib" />
|
||||
<property name="shindig.connector.original.file" location="${shindig.war.unpacked.dir}/${shindig.connector.prefix}/shindig-orng-connector-2.0.2.jar" />
|
||||
<property name="shindig.connector.unpacked.dir" location="${build.shindig.dir}/connector" />
|
||||
<property name="shindig.connector.modified.file" location="${build.shindig.dir}/shindig-orng-connector-2.0.2.jar" />
|
||||
|
||||
<!-- the Shindig-ORNG connector configuration file -->
|
||||
<property name="shindig.js.original.file" location="${shindig.connector.unpacked.dir}/orng-container.js" />
|
||||
<property name="shindig.js.modified.file" location="${build.shindig.dir}/orng-container.js" />
|
||||
<property name="shindig.js.deployed.file" location="${shindig.config.dir}/orng-container.js" />
|
||||
<property name="shindig.war.deployed.dir" location="${tomcat.webapps.dir}/shindigorng" />
|
||||
|
||||
<!-- Shindig properties file -->
|
||||
<property name="shindig.properties.template.file" location="${basedir}/shindig.orng.properties.template" />
|
||||
<property name="shindig.properties.modified.file" location="${build.shindig.dir}/shindig.orng.properties" />
|
||||
<property name="shindig.properties.deployed.file" location="${shindig.config.dir}/shindig.orng.properties" />
|
||||
<property name="shindig.properties.template.file" location="${basedir}/shindigorng.properties.template" />
|
||||
<property name="shindig.properties.modified.file" location="${build.shindig.dir}/shindigorng.properties" />
|
||||
<property name="shindig.properties.deployed.file" location="${shindig.config.dir}/shindigorng.properties" />
|
||||
|
||||
</target>
|
||||
|
||||
|
@ -118,6 +106,9 @@ deploy - Configure the application and deploy directly into the Tomcat webapps
|
|||
<delete includeemptydirs="true" failonerror="false">
|
||||
<fileset dir="${build.shindig.dir}" />
|
||||
</delete>
|
||||
<delete includeemptydirs="true" failonerror="false">
|
||||
<fileset dir="${shindig.war.deployed.dir}" />
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - -
|
||||
|
@ -127,49 +118,10 @@ deploy - Configure the application and deploy directly into the Tomcat webapps
|
|||
<mkdir dir="${build.dir}" />
|
||||
<mkdir dir="${build.shindig.dir}" />
|
||||
|
||||
<mkdir dir="${shindig.war.unpacked.dir}" />
|
||||
<mkdir dir="${shindig.connector.unpacked.dir}" />
|
||||
|
||||
<mkdir dir="${shindig.home.dir}" />
|
||||
<mkdir dir="${shindig.config.dir}" />
|
||||
</target>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - -
|
||||
target: removeConnectorConfigFromWar
|
||||
|
||||
Unpack the war.
|
||||
Unpack the JAR.
|
||||
Create a new JAR that doesn't include the config file
|
||||
Create a new WAR that includes the modified JAR.
|
||||
- - - - - - - - - - - - - - - - - -->
|
||||
<target name="removeConnectorConfigFromWar" depends="properties, prepare">
|
||||
<unwar src="${shindig.war.original.file}" dest="${shindig.war.unpacked.dir}" />
|
||||
<unwar src="${shindig.connector.original.file}" dest="${shindig.connector.unpacked.dir}" />
|
||||
<zip destfile="${shindig.connector.modified.file}">
|
||||
<zipfileset src="${shindig.connector.original.file}" excludes="orng-container.js" />
|
||||
</zip>
|
||||
<zip destfile="${shindig.war.modified.file}">
|
||||
<fileset dir="${shindig.war.unpacked.dir}" excludes="**/shindig-orng-connector-2.0.2.jar" />
|
||||
<zipfileset fullpath="WEB-INF/lib/shindig-orng-connector-2.0.2.jar" dir="${build.shindig.dir}" includes="shindig-orng-connector-2.0.2.jar" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - -
|
||||
target: modifyConnectorConfig
|
||||
|
||||
Get the config file from the unpacked connector WAR and JAR, and make a modified copy.
|
||||
- - - - - - - - - - - - - - - - - -->
|
||||
<target name="modifyConnectorConfig" depends="removeConnectorConfigFromWar">
|
||||
<copy file="${shindig.js.original.file}" tofile="${shindig.js.modified.file}">
|
||||
<filterchain>
|
||||
<tokenfilter>
|
||||
<replacestring from="/shindig/openssl/securitytokenkey.txt" to="${OpenSocial.tokenKeyFile}" />
|
||||
</tokenfilter>
|
||||
</filterchain>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - -
|
||||
target: modifyPropertiesFile
|
||||
- - - - - - - - - - - - - - - - - -->
|
||||
|
@ -188,10 +140,9 @@ deploy - Configure the application and deploy directly into the Tomcat webapps
|
|||
<!-- =================================
|
||||
target: deploy
|
||||
================================= -->
|
||||
<target name="deploy" depends="modifyPropertiesFile, removeConnectorConfigFromWar, modifyConnectorConfig" description="--> Deploy the application directly into the Tomcat webapps directory.">
|
||||
<copy file="${shindig.js.modified.file}" tofile="${shindig.js.deployed.file}" />
|
||||
<target name="deploy" depends="modifyPropertiesFile" description="--> Deploy the application directly into the Tomcat webapps directory.">
|
||||
<copy file="${shindig.properties.modified.file}" tofile="${shindig.properties.deployed.file}" />
|
||||
<copy file="${shindig.war.modified.file}" tofile="${shindig.war.deployed.file}" />
|
||||
<copy file="${shindig.war.original.file}" tofile="${shindig.war.deployed.file}" overwrite="true" />
|
||||
</target>
|
||||
|
||||
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
|
||||
-- Add some gadgets to play with ------------------------
|
||||
--
|
||||
|
||||
INSERT INTO `shindig_apps` (`appid`, `name`, `url`, `PersonFilterID`, `enabled`, `channels`) VALUES
|
||||
(100, 'Google Search', 'http://dev-profiles.ucsf.edu/apps/GoogleSearch.xml', NULL, 1, NULL),
|
||||
(101, 'Featured Presentations', 'http://dev-profiles.ucsf.edu/apps/SlideShare.xml', NULL, 1, NULL),
|
||||
(102, 'Faculty Mentor', 'http://dev-profiles.ucsf.edu/apps/Mentor.xml', NULL, 1, NULL),
|
||||
(103, 'Websites', 'http://dev-profiles.ucsf.edu/apps/Links.xml', NULL, 1, NULL),
|
||||
(104, 'Profile List', 'http://dev-profiles.ucsf.edu/apps/ProfileListTool.xml', NULL, 1, 'JSONPersonIds'),
|
||||
(105, 'Publication Export', 'http://dev-profiles.ucsf.edu/apps/PubExportTool.xml', NULL, 1, 'JSONPubMedIds'),
|
||||
(106, 'RDF Test Gadget', 'http://dev-profiles.ucsf.edu/gadgets/RDFTest.xml', NULL, 1, NULL);
|
||||
DELETE FROM `orng_apps`;
|
||||
|
||||
INSERT INTO `shindig_app_views` (`appid`, `viewer_req`, `owner_req`, `page`, `view`, `closed_width`, `open_width`, `start_closed`, `chromeId`, `display_order`) VALUES
|
||||
INSERT INTO `orng_apps` (`appid`, `name`, `url`, `PersonFilterID`, `enabled`, `channels`) VALUES
|
||||
(100, 'Google Search', 'http://dev-profiles.ucsf.edu/orng/GoogleSearch.xml', NULL, 1, NULL),
|
||||
(101, 'Featured Presentations', 'http://dev-profiles.ucsf.edu/orng/SlideShare.xml', NULL, 1, NULL),
|
||||
(102, 'Faculty Mentor', 'http://dev-profiles.ucsf.edu/orng/Mentor.xml', NULL, 1, NULL),
|
||||
(103, 'Websites', 'http://dev-profiles.ucsf.edu/orng/Links.xml', NULL, 1, NULL),
|
||||
(104, 'Profile List', 'http://dev-profiles.ucsf.edu/orng/ProfileListTool.xml', NULL, 1, 'JSONPersonIds'),
|
||||
(106, 'RDF Test Gadget', 'http://dev-profiles.ucsf.edu/orng/RDFTest.xml', NULL, 0, NULL);
|
||||
|
||||
DELETE FROM `orng_app_views`;
|
||||
|
||||
INSERT INTO `orng_app_views` (`appid`, `viewer_req`, `owner_req`, `page`, `view`, `closed_width`, `open_width`, `start_closed`, `chromeId`, `display_order`) VALUES
|
||||
(100, NULL, NULL, 'search', NULL, 600, 600, 1, 'gadgets-search', NULL),
|
||||
(101, NULL, 'R', 'individual', 'profile', 290, 600, 1, 'gadgets-view', 3),
|
||||
(101, NULL, NULL, 'individual-EDIT-MODE', 'home', 700, 700, 1, 'gadgets-edit', NULL),
|
||||
|
@ -23,6 +25,4 @@ INSERT INTO `shindig_app_views` (`appid`, `viewer_req`, `owner_req`, `page`, `vi
|
|||
(104, 'U', NULL, 'gadgetDetails', 'canvas', 700, 700, 0, 'gadgets-detail', NULL),
|
||||
(104, 'U', NULL, 'SimilarPeople.aspx', 'small', 160, 160, 0, 'gadgets-tools', NULL),
|
||||
(104, 'U', NULL, 'individual', 'small', 290, 290, 0, 'gadgets-view', NULL),
|
||||
(104, 'U', NULL, 'CoAuthors.aspx', 'small', 160, 160, 0, 'gadgets-tools', NULL),
|
||||
(105, 'U', NULL, 'individual', 'small', 290, 290, 0, 'gadgets-view', NULL),
|
||||
(105, 'U', NULL, 'gadgetDetails', 'canvas', 700, 700, 0, 'gadgets-detail', NULL);
|
||||
(104, 'U', NULL, 'CoAuthors.aspx', 'small', 160, 160, 0, 'gadgets-tools', NULL);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
--
|
||||
-- Table structure for table `shindig_activity`
|
||||
-- Table structure for table `orng_activity`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shindig_activity` (
|
||||
CREATE TABLE IF NOT EXISTS `orng_activity` (
|
||||
`activityId` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`userId` varchar(255) default NULL,
|
||||
`appId` int(11) default NULL,
|
||||
|
@ -15,10 +15,10 @@ CREATE TABLE IF NOT EXISTS `shindig_activity` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shindig_appdata`
|
||||
-- Table structure for table `orng_appdata`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shindig_appdata` (
|
||||
CREATE TABLE IF NOT EXISTS `orng_appdata` (
|
||||
`userId` varchar(255) NOT NULL,
|
||||
`appId` int(11) NOT NULL,
|
||||
`keyname` varchar(255) NOT NULL,
|
||||
|
@ -31,10 +31,10 @@ CREATE TABLE IF NOT EXISTS `shindig_appdata` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shindig_apps`
|
||||
-- Table structure for table `orng_apps`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shindig_apps` (
|
||||
CREATE TABLE IF NOT EXISTS `orng_apps` (
|
||||
`appid` int(11) NOT NULL,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`url` varchar(255) NOT NULL,
|
||||
|
@ -47,10 +47,10 @@ CREATE TABLE IF NOT EXISTS `shindig_apps` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shindig_app_registry`
|
||||
-- Table structure for table `orng_app_registry`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shindig_app_registry` (
|
||||
CREATE TABLE IF NOT EXISTS `orng_app_registry` (
|
||||
`appid` int(11) NOT NULL,
|
||||
`personId` varchar(255) NOT NULL,
|
||||
`createdDT` datetime NOT NULL,
|
||||
|
@ -60,10 +60,10 @@ CREATE TABLE IF NOT EXISTS `shindig_app_registry` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shindig_app_views`
|
||||
-- Table structure for table `orng_app_views`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shindig_app_views` (
|
||||
CREATE TABLE IF NOT EXISTS `orng_app_views` (
|
||||
`appid` int(11) NOT NULL,
|
||||
`viewer_req` char(1) default NULL,
|
||||
`owner_req` char(1) default NULL,
|
||||
|
@ -79,10 +79,10 @@ CREATE TABLE IF NOT EXISTS `shindig_app_views` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `shindig_messages`
|
||||
-- Table structure for table `orng_messages`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `shindig_messages` (
|
||||
CREATE TABLE IF NOT EXISTS `orng_messages` (
|
||||
`msgId` varchar(255) NOT NULL,
|
||||
`senderId` varchar(255) default NULL,
|
||||
`recipientId` varchar(255) default NULL,
|
||||
|
@ -97,47 +97,47 @@ CREATE TABLE IF NOT EXISTS `shindig_messages` (
|
|||
|
||||
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE shindig_registerAppPerson (uid varchar(255), aid INT, v BOOL)
|
||||
CREATE PROCEDURE orng_registerAppPerson (uid varchar(255), aid INT, v BOOL)
|
||||
BEGIN
|
||||
IF (v)
|
||||
THEN
|
||||
INSERT INTO shindig_app_registry (appId, personId, createdDT) values (aid, uid, now());
|
||||
INSERT INTO orng_app_registry (appId, personId, createdDT) values (aid, uid, now());
|
||||
ELSE
|
||||
DELETE FROM shindig_app_registry where appId = aid AND personId = uid;
|
||||
DELETE FROM orng_app_registry where appId = aid AND personId = uid;
|
||||
END IF;
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE shindig_upsertAppData(uid varchar(255), aid INT, kn varchar(255),v varchar(4000))
|
||||
CREATE PROCEDURE orng_upsertAppData(uid varchar(255), aid INT, kn varchar(255),v varchar(4000))
|
||||
BEGIN
|
||||
DECLARE cnt int;
|
||||
SELECT count(*) FROM shindig_appdata WHERE userId = uid AND appId = aid and keyname = kn INTO cnt;
|
||||
SELECT count(*) FROM orng_appdata WHERE userId = uid AND appId = aid and keyname = kn INTO cnt;
|
||||
IF (cnt > 0)
|
||||
THEN
|
||||
UPDATE shindig_appdata set `value` = v, updatedDT = NOW() WHERE userId = uid AND appId = aid and keyname = kn;
|
||||
UPDATE orng_appdata set `value` = v, updatedDT = NOW() WHERE userId = uid AND appId = aid and keyname = kn;
|
||||
ELSE
|
||||
INSERT INTO shindig_appdata (userId, appId, keyname, `value`) values (uid, aid, kn, v);
|
||||
INSERT INTO orng_appdata (userId, appId, keyname, `value`) values (uid, aid, kn, v);
|
||||
END IF;
|
||||
-- if keyname is VISIBLE, do more
|
||||
IF (kn = 'VISIBLE' AND v = 'Y')
|
||||
THEN
|
||||
CALL shindig_registerAppPerson(uid, aid, 1);
|
||||
CALL orng_registerAppPerson(uid, aid, 1);
|
||||
ELSEIF (kn = 'VISIBLE' )
|
||||
THEN
|
||||
CALL shindig_registerAppPerson(uid, aid, 0);
|
||||
CALL orng_registerAppPerson(uid, aid, 0);
|
||||
END IF;
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE shindig_deleteAppData(uid varchar(255),aid INT, kn varchar(255))
|
||||
CREATE PROCEDURE orng_deleteAppData(uid varchar(255),aid INT, kn varchar(255))
|
||||
BEGIN
|
||||
DELETE FROM shindig_appdata WHERE userId = uid AND appId = aid and keyname = kn;
|
||||
DELETE FROM orng_appdata WHERE userId = uid AND appId = aid and keyname = kn;
|
||||
-- if keyname is VISIBLE, do more
|
||||
IF (kn = 'VISIBLE' )
|
||||
THEN
|
||||
CALL shindig_registerAppPerson(uid, aid, 0);
|
||||
CALL orng_registerAppPerson(uid, aid, 0);
|
||||
END IF;
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
|
|
@ -1,190 +1,191 @@
|
|||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
##################################################################
|
||||
#
|
||||
# Note from UCSF. Compare this to the latest in shindig-common/conf/shindig.properties
|
||||
# whenever you download a new version of shindig
|
||||
#
|
||||
##################################################################
|
||||
|
||||
# Location of feature manifests (comma separated)
|
||||
shindig.features.default=res://features/features.txt
|
||||
|
||||
# Location of container configurations (comma separated)
|
||||
#shindig.containers.default=res://containers/default/container.js
|
||||
shindig.containers.default=res://orng-container.js
|
||||
|
||||
# A file containing blacklisted gadgets.
|
||||
shindig.blacklist.file=
|
||||
|
||||
### Inbound OAuth support
|
||||
# The URL base to use for full OAuth support (three-legged)
|
||||
shindig.oauth.base-url=/oauth/
|
||||
shindig.oauth.authorize-action=/WEB-INF/authorize.jsp
|
||||
|
||||
### Outbound OAuth support
|
||||
shindig.signing.state-key=
|
||||
shindig.signing.key-name=
|
||||
shindig.signing.key-file=
|
||||
shindig.signing.global-callback-url=http://localhost:8080/shindigorng/gadgets/oauthcallback
|
||||
shindig.signing.enable-signed-callbacks=true
|
||||
|
||||
# Set to true if you want to allow the use of 3-legged OAuth tokens when viewer != owner.
|
||||
# This setting is not recommeneded for pages that allow user-controlled javascript, since
|
||||
# that javascript could be used to make unauthorized requests on behalf of the viewer of the page
|
||||
shindig.signing.viewer-access-tokens-enabled=false
|
||||
|
||||
# If enabled here, configuration values can be found in container configuration files.
|
||||
shindig.locked-domain.enabled=false
|
||||
|
||||
# TODO: This needs to be moved to container configuration.
|
||||
# Note by Eric. This is set up to now exclude everything and include nothing
|
||||
shindig.content-rewrite.only-allow-excludes=false
|
||||
shindig.content-rewrite.include-urls=.*
|
||||
shindig.content-rewrite.exclude-urls=
|
||||
shindig.content-rewrite.include-tags=body,embed,img,input,link,script,style
|
||||
shindig.content-rewrite.expires=86400
|
||||
shindig.content-rewrite.proxy-url=/shindigorng/gadgets/proxy?container=default&url=
|
||||
shindig.content-rewrite.concat-url=/shindigorng/gadgets/concat?container=default&
|
||||
shindig.content-rewrite.enable-split-js-concat=false
|
||||
|
||||
#
|
||||
# Default set of forced libs to allow for better caching
|
||||
#
|
||||
# NOTE: setting this causes the EndToEnd test to fail the opensocial-templates test
|
||||
shindig.gadget-rewrite.default-forced-libs=core:rpc
|
||||
shindig.gadget-rewrite.default-forced-libs=
|
||||
|
||||
#
|
||||
# Allow supported JavaScript features required by a gadget to be externalized on demand
|
||||
shindig.gadget-rewrite.externalize-feature-libs=true
|
||||
|
||||
# Configuration for image rewriter
|
||||
shindig.image-rewrite.max-inmem-bytes = 1048576
|
||||
shindig.image-rewrite.max-palette-size = 256
|
||||
shindig.image-rewrite.allow-jpeg-conversion = true
|
||||
shindig.image-rewrite.jpeg-compression = 0.75
|
||||
shindig.image-rewrite.min-threshold-bytes = 200
|
||||
|
||||
# Configuration for the os:Flash tag
|
||||
shindig.flash.min-version = 9.0.115
|
||||
|
||||
# Configuration for template rewriter
|
||||
shindig.template-rewrite.extension-tag-namespace=http://ns.opensocial.org/2009/extensions
|
||||
|
||||
# These values provide default TTLs for HTTP responses that don't use caching headers.
|
||||
shindig.cache.http.defaultTtl=3600000
|
||||
shindig.cache.http.negativeCacheTtl=60000
|
||||
|
||||
# A default refresh interval for XML files, since there is no natural way for developers to
|
||||
# specify this value, and most HTTP responses don't include good cache control headers.
|
||||
shindig.cache.xml.refreshInterval=300000
|
||||
|
||||
# Add entries in the form shindig.cache.lru.<name>.capacity to specify capacities for different
|
||||
# caches when using the LruCacheProvider.
|
||||
# It is highly recommended that the EhCache implementation be used instead of the LRU cache.
|
||||
shindig.cache.lru.default.capacity=1000
|
||||
shindig.cache.lru.expressions.capacity=1000
|
||||
shindig.cache.lru.gadgetSpecs.capacity=1000
|
||||
shindig.cache.lru.messageBundles.capacity=1000
|
||||
shindig.cache.lru.httpResponses.capacity=10000
|
||||
|
||||
# The location of the EhCache configuration file.
|
||||
shindig.cache.ehcache.config=res://org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml
|
||||
|
||||
# True to enable JMX integration with cache stats
|
||||
shindig.cache.ehcache.jmx.enabled=true
|
||||
|
||||
# true to enable JMX stats.
|
||||
shindig.cache.ehcache.jmx.stats=true
|
||||
|
||||
# true to skip expensive encoding detection.
|
||||
# if true, will only attempt to validate utf-8. Assumes all other encodings are ISO-8859-1.
|
||||
shindig.http.fast-encoding-detection=true
|
||||
|
||||
# Configuration for the HttpFetcher
|
||||
# Connection timeout, in milliseconds, for requests.
|
||||
shindig.http.client.connection-timeout-ms=5000
|
||||
|
||||
# Maximum size, in bytes, of the object we fetched, 0 == no limit
|
||||
shindig.http.client.max-object-size-bytes=0
|
||||
|
||||
# Strict-mode parsing for proxy and concat URIs ensures that the authority/host and path
|
||||
# for the URIs match precisely what is found in the container config for it. This is
|
||||
# useful where statistics and traffic routing patterns, typically in large installations,
|
||||
# key on hostname (and occasionally path). Enforcing this does come at the cost that
|
||||
# mismatches break, which in turn mandates that URI generation always happen in consistent
|
||||
# fashion, ie. by the class itself or tightly controlled code.
|
||||
shindig.uri.proxy.use-strict-parsing=false
|
||||
shindig.uri.concat.use-strict-parsing=false
|
||||
|
||||
# Host:port of the proxy to use while fetching urls. Leave blank if proxy is
|
||||
# not to be used.
|
||||
org.apache.shindig.gadgets.http.basicHttpFetcherProxy=
|
||||
|
||||
org.apache.shindig.serviceExpirationDurationMinutes=60
|
||||
|
||||
#
|
||||
# Older versions of shindig used 'data' in the json-rpc response format
|
||||
# The spec calls for using 'result' instead, however to avoid breakage we
|
||||
# allow you to set it back to the old way here
|
||||
#
|
||||
# valid values are
|
||||
# result - new form
|
||||
# data - old broken form
|
||||
# both - return both fields for full compatibility
|
||||
#
|
||||
shindig.json-rpc.result-field=result
|
||||
|
||||
# Remap "Internal server error"s received from the basicHttpFetcherProxy server to
|
||||
# "Bad Gateway error"s, so that it is clear to the user that the proxy server is
|
||||
# the one that threw the exception.
|
||||
shindig.accelerate.remapInternalServerError=true
|
||||
shindig.proxy.remapInternalServerError=true
|
||||
|
||||
shindig.signing.key-file=@TOKEN_KEY_FILE@
|
||||
shindig.signing.key-name=
|
||||
|
||||
####################################################################################
|
||||
#
|
||||
# Open Research Networking Gadgets Items
|
||||
#
|
||||
#####################################################################################
|
||||
|
||||
# orng.system must be set to Profiles or VIVO
|
||||
#orng.system = Profiles
|
||||
orng.system = VIVO
|
||||
|
||||
# orng.dbDriver is likely com.microsoft.sqlserver.jdbc.SQLServerDriver for Profiles and com.mysql.jdbc.Driver for VIVO
|
||||
#orng.dbDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
orng.dbDriver = @DATA_SOURCE_DRIVER@
|
||||
orng.dbURL = @DATA_SOURCE_URL@
|
||||
orng.dbUser = @DATA_SOURCE_USERNAME@
|
||||
orng.dbPassword = @DATA_SOURCE_PASSWORD@
|
||||
orng.tokenservice.port = 8777
|
||||
# orng.RDFConverter = elda | babel
|
||||
orng.RDFConverter = elda
|
||||
#orng.RDFConverter = babel
|
||||
|
||||
# until Profiles has RDF
|
||||
orng.profilesXMLService = http://dev-profiles.ucsf.edu/api_100810/ProfileService.svc/ProfileSearch
|
||||
orng.profilesRDF = true;
|
||||
|
||||
|
||||
|
||||
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
##################################################################
|
||||
#
|
||||
# Note from UCSF. Compare this to the latest in shindig-common/conf/shindig.properties
|
||||
# whenever you download a new version of shindig
|
||||
#
|
||||
##################################################################
|
||||
|
||||
# Location of feature manifests (comma separated)
|
||||
shindig.features.default=res://features/features.txt
|
||||
|
||||
# Location of container configurations (comma separated)
|
||||
# In shindigorng this is set automatically to either res://vivo-container.js or res://profiles-container.js based on your orng.system value below!
|
||||
# Leave this commented out !!!!
|
||||
#shindig.containers.default=res://containers/default/container.js
|
||||
|
||||
|
||||
# A file containing blacklisted gadgets.
|
||||
shindig.blacklist.file=
|
||||
|
||||
### Inbound OAuth support
|
||||
# The URL base to use for full OAuth support (three-legged)
|
||||
shindig.oauth.base-url=/oauth/
|
||||
shindig.oauth.authorize-action=/WEB-INF/authorize.jsp
|
||||
|
||||
### Outbound OAuth support
|
||||
shindig.signing.state-key=
|
||||
shindig.signing.key-name=
|
||||
shindig.signing.key-file=
|
||||
shindig.signing.global-callback-url=http://localhost:8080/shindigorng/gadgets/oauthcallback
|
||||
shindig.signing.enable-signed-callbacks=true
|
||||
|
||||
# Set to true if you want to allow the use of 3-legged OAuth tokens when viewer != owner.
|
||||
# This setting is not recommeneded for pages that allow user-controlled javascript, since
|
||||
# that javascript could be used to make unauthorized requests on behalf of the viewer of the page
|
||||
shindig.signing.viewer-access-tokens-enabled=false
|
||||
|
||||
# If enabled here, configuration values can be found in container configuration files.
|
||||
shindig.locked-domain.enabled=false
|
||||
|
||||
# TODO: This needs to be moved to container configuration.
|
||||
# Note by Eric. This is set up to now exclude everything and include nothing
|
||||
shindig.content-rewrite.only-allow-excludes=false
|
||||
shindig.content-rewrite.include-urls=.*
|
||||
shindig.content-rewrite.exclude-urls=
|
||||
shindig.content-rewrite.include-tags=body,embed,img,input,link,script,style
|
||||
shindig.content-rewrite.expires=86400
|
||||
shindig.content-rewrite.proxy-url=/shindigorng/gadgets/proxy?container=default&url=
|
||||
shindig.content-rewrite.concat-url=/shindigorng/gadgets/concat?container=default&
|
||||
shindig.content-rewrite.enable-split-js-concat=false
|
||||
|
||||
#
|
||||
# Default set of forced libs to allow for better caching
|
||||
#
|
||||
# NOTE: setting this causes the EndToEnd test to fail the opensocial-templates test
|
||||
shindig.gadget-rewrite.default-forced-libs=core:rpc
|
||||
shindig.gadget-rewrite.default-forced-libs=
|
||||
|
||||
#
|
||||
# Allow supported JavaScript features required by a gadget to be externalized on demand
|
||||
shindig.gadget-rewrite.externalize-feature-libs=true
|
||||
|
||||
# Configuration for image rewriter
|
||||
shindig.image-rewrite.max-inmem-bytes = 1048576
|
||||
shindig.image-rewrite.max-palette-size = 256
|
||||
shindig.image-rewrite.allow-jpeg-conversion = true
|
||||
shindig.image-rewrite.jpeg-compression = 0.75
|
||||
shindig.image-rewrite.min-threshold-bytes = 200
|
||||
|
||||
# Configuration for the os:Flash tag
|
||||
shindig.flash.min-version = 9.0.115
|
||||
|
||||
# Configuration for template rewriter
|
||||
shindig.template-rewrite.extension-tag-namespace=http://ns.opensocial.org/2009/extensions
|
||||
|
||||
# These values provide default TTLs for HTTP responses that don't use caching headers.
|
||||
shindig.cache.http.defaultTtl=3600000
|
||||
shindig.cache.http.negativeCacheTtl=60000
|
||||
|
||||
# A default refresh interval for XML files, since there is no natural way for developers to
|
||||
# specify this value, and most HTTP responses don't include good cache control headers.
|
||||
shindig.cache.xml.refreshInterval=300000
|
||||
|
||||
# Add entries in the form shindig.cache.lru.<name>.capacity to specify capacities for different
|
||||
# caches when using the LruCacheProvider.
|
||||
# It is highly recommended that the EhCache implementation be used instead of the LRU cache.
|
||||
shindig.cache.lru.default.capacity=1000
|
||||
shindig.cache.lru.expressions.capacity=1000
|
||||
shindig.cache.lru.gadgetSpecs.capacity=1000
|
||||
shindig.cache.lru.messageBundles.capacity=1000
|
||||
shindig.cache.lru.httpResponses.capacity=10000
|
||||
|
||||
# The location of the EhCache configuration file.
|
||||
shindig.cache.ehcache.config=res://org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml
|
||||
|
||||
# True to enable JMX integration with cache stats
|
||||
shindig.cache.ehcache.jmx.enabled=true
|
||||
|
||||
# true to enable JMX stats.
|
||||
shindig.cache.ehcache.jmx.stats=true
|
||||
|
||||
# true to skip expensive encoding detection.
|
||||
# if true, will only attempt to validate utf-8. Assumes all other encodings are ISO-8859-1.
|
||||
shindig.http.fast-encoding-detection=true
|
||||
|
||||
# Configuration for the HttpFetcher
|
||||
# Connection timeout, in milliseconds, for requests.
|
||||
shindig.http.client.connection-timeout-ms=5000
|
||||
|
||||
# Maximum size, in bytes, of the object we fetched, 0 == no limit
|
||||
shindig.http.client.max-object-size-bytes=0
|
||||
|
||||
# Strict-mode parsing for proxy and concat URIs ensures that the authority/host and path
|
||||
# for the URIs match precisely what is found in the container config for it. This is
|
||||
# useful where statistics and traffic routing patterns, typically in large installations,
|
||||
# key on hostname (and occasionally path). Enforcing this does come at the cost that
|
||||
# mismatches break, which in turn mandates that URI generation always happen in consistent
|
||||
# fashion, ie. by the class itself or tightly controlled code.
|
||||
shindig.uri.proxy.use-strict-parsing=false
|
||||
shindig.uri.concat.use-strict-parsing=false
|
||||
|
||||
# Host:port of the proxy to use while fetching urls. Leave blank if proxy is
|
||||
# not to be used.
|
||||
org.apache.shindig.gadgets.http.basicHttpFetcherProxy=
|
||||
|
||||
org.apache.shindig.serviceExpirationDurationMinutes=60
|
||||
|
||||
#
|
||||
# Older versions of shindig used 'data' in the json-rpc response format
|
||||
# The spec calls for using 'result' instead, however to avoid breakage we
|
||||
# allow you to set it back to the old way here
|
||||
#
|
||||
# valid values are
|
||||
# result - new form
|
||||
# data - old broken form
|
||||
# both - return both fields for full compatibility
|
||||
#
|
||||
shindig.json-rpc.result-field=result
|
||||
|
||||
# Remap "Internal server error"s received from the basicHttpFetcherProxy server to
|
||||
# "Bad Gateway error"s, so that it is clear to the user that the proxy server is
|
||||
# the one that threw the exception.
|
||||
shindig.accelerate.remapInternalServerError=true
|
||||
shindig.proxy.remapInternalServerError=true
|
||||
|
||||
shindig.signing.key-file=@TOKEN_KEY_FILE@
|
||||
shindig.signing.key-name=mykey
|
||||
|
||||
#####################################################################################
|
||||
#
|
||||
# Open Research Networking Gadgets Items
|
||||
#
|
||||
#####################################################################################
|
||||
|
||||
# orng.RDFConverter should be elda. We also currently support babel but it is only being used for test and comparison purposes
|
||||
# and babel will be phased out
|
||||
orng.RDFConverter = elda
|
||||
orng.tokenservice.port = 8777
|
||||
orng.securityTokenKeyFile = @TOKEN_KEY_FILE@
|
||||
|
||||
# orng.system must be set to Profiles or VIVO
|
||||
#orng.system = Profiles
|
||||
#orng.dbDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
#orng.dbURL = jdbc:sqlserver://dev-sql-ctsi.ucsf.edu;instanceName=default;portNumber=1433;databaseName=profiles_100
|
||||
#orng.dbUser = App_Profiles10
|
||||
#orng.dbPassword = Password1234
|
||||
|
||||
orng.system = VIVO
|
||||
orng.dbDriver = @DATA_SOURCE_DRIVER@
|
||||
orng.dbURL = @DATA_SOURCE_URL@
|
||||
orng.dbUser = @DATA_SOURCE_USERNAME@
|
||||
orng.dbPassword = @DATA_SOURCE_PASSWORD@
|
||||
|
||||
|
||||
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue