Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D51C2200CF0 for ; Sun, 16 Jul 2017 18:15:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D322B164490; Sun, 16 Jul 2017 16:15:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9E66D16448F for ; Sun, 16 Jul 2017 18:15:22 +0200 (CEST) Received: (qmail 40691 invoked by uid 500); 16 Jul 2017 16:15:21 -0000 Mailing-List: contact commits-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list commits@oodt.apache.org Received: (qmail 39377 invoked by uid 99); 16 Jul 2017 16:15:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jul 2017 16:15:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C22E5F5568; Sun, 16 Jul 2017 16:15:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mattmann@apache.org To: commits@oodt.apache.org Date: Sun, 16 Jul 2017 16:16:02 -0000 Message-Id: <9f6438630ebc465089c9ea81e8c7dcbf@git.apache.org> In-Reply-To: <0eb7791451f84dd9b355023f442daec3@git.apache.org> References: <0eb7791451f84dd9b355023f442daec3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [46/53] [partial] oodt git commit: Record change for OODT-836, OODT-837. archived-at: Sun, 16 Jul 2017 16:15:28 -0000 http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/IconLoader.java ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/IconLoader.java b/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/IconLoader.java deleted file mode 100644 index f5dfd0b..0000000 --- a/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/IconLoader.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * 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. - */ - -package org.apache.oodt.cas.workflow.gui.util; - -//JDK imports -import java.awt.Image; -import java.io.IOException; -import javax.imageio.ImageIO; - -/** - * - * - * Loads the appropriate classpath-level icon image for Tools, etc., that are - * part of the Workflow Editor GUI. - * - * @author mattmann - * @version $Revision$ - * - */ -public class IconLoader { - - public static final int CREATE = 0; - public static final int CREATE_SELECTED = 1; - public static final int DELETE = 2; - public static final int DELETE_SELECTED = 3; - public static final int EDIT = 4; - public static final int EDIT_SELECTED = 5; - public static final int MOVE = 6; - public static final int MOVE_SELECTED = 7; - public static final int ZOOM_IN = 8; - public static final int ZOOM_IN_SELECTED = 9; - public static final int ZOOM_OUT = 10; - public static final int ZOOM_OUT_SELECTED = 11; - public static final int ZOOM_CURSOR = 12; - - private IconLoader() { - } - - public static Image getIcon(int icon) throws IOException { - switch (icon) { - case DELETE: - return ImageIO.read(IconLoader.class.getResource("delete.jpg")); - case DELETE_SELECTED: - return ImageIO.read(IconLoader.class.getResource("delete-sel.jpg")); - case EDIT: - return ImageIO.read(IconLoader.class.getResource("edit.jpg")); - case EDIT_SELECTED: - return ImageIO.read(IconLoader.class.getResource("edit-sel.jpg")); - case MOVE: - return ImageIO.read(IconLoader.class.getResource("move.jpg")); - case MOVE_SELECTED: - return ImageIO.read(IconLoader.class.getResource("move-sel.jpg")); - case ZOOM_IN: - return ImageIO.read(IconLoader.class.getResource("zoom-in.jpg")); - case ZOOM_IN_SELECTED: - return ImageIO.read(IconLoader.class.getResource("zoom-in-sel.jpg")); - case ZOOM_OUT: - return ImageIO.read(IconLoader.class.getResource("zoom-out.jpg")); - case ZOOM_OUT_SELECTED: - return ImageIO.read(IconLoader.class.getResource("zoom-out-sel.jpg")); - case ZOOM_CURSOR: - return ImageIO.read(IconLoader.class.getResource("cursor-zoom.png")); - default: - return null; - } - } - -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/Line.java ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/Line.java b/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/Line.java deleted file mode 100644 index 69d5fd3..0000000 --- a/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/Line.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * 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. - */ - -package org.apache.oodt.cas.workflow.gui.util; - -//OODT imports -import org.apache.oodt.cas.workflow.gui.model.ModelNode; - -/** - * - * - * Wrapper class for representing a line between two {@link ModelNode}s. - * - * @author bfoster - * @author mattmann - * - */ -public class Line { - - private ModelNode fromModel; - private ModelNode toModel; - - public Line(ModelNode fromModel, ModelNode toModel) { - this.fromModel = fromModel; - this.toModel = toModel; - } - - public ModelNode getFromModel() { - return fromModel; - } - - public ModelNode getToModel() { - return toModel; - } - - public boolean equals(Object obj) { - if (obj instanceof Line) { - if (this.fromModel == null && this.toModel == null) { - return ((Line) obj).fromModel == null && ((Line) obj).toModel == null; - } else if (this.fromModel == null) { - return ((Line) obj).fromModel == null - && ((Line) obj).toModel.equals(this.toModel); - } else if (this.toModel == null) { - return ((Line) obj).fromModel.equals(this.fromModel) - && ((Line) obj).toModel == null; - } else { - return ((Line) obj).fromModel.equals(this.fromModel) - && ((Line) obj).toModel.equals(this.toModel); - } - } else { - return false; - } - } - - public String toString() { - return this.fromModel.getModelId() + " -> " + this.toModel.getModelId(); - } - - @Override - public int hashCode() { - int result = fromModel != null ? fromModel.hashCode() : 0; - result = 31 * result + (toModel != null ? toModel.hashCode() : 0); - return result; - } -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/exceptions/WorkflowException.java ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/exceptions/WorkflowException.java b/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/exceptions/WorkflowException.java deleted file mode 100644 index 87edb1a..0000000 --- a/app/weditor/src/main/java/org/apache/oodt/cas/workflow/gui/util/exceptions/WorkflowException.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 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. - */ -package org.apache.oodt.cas.workflow.gui.util.exceptions; - -/** - * Workflow Exception for internal Exceptions. - */ -public class WorkflowException extends Exception { - - public WorkflowException(String message){ - super(message); - } -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/REMOVE.log ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/REMOVE.log b/app/weditor/src/main/resources/REMOVE.log deleted file mode 100755 index dadf8b1..0000000 --- a/app/weditor/src/main/resources/REMOVE.log +++ /dev/null @@ -1,18 +0,0 @@ -# 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. - -This file only exists to ensure that Maven creates -this output directory.You may safely remove this -file. http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/examples/GranuleMaps.xml ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/examples/GranuleMaps.xml b/app/weditor/src/main/resources/examples/GranuleMaps.xml deleted file mode 100644 index b7ce68d..0000000 --- a/app/weditor/src/main/resources/examples/GranuleMaps.xml +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/examples/mspi-workflow.xml ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/examples/mspi-workflow.xml b/app/weditor/src/main/resources/examples/mspi-workflow.xml deleted file mode 100644 index 52313f0..0000000 --- a/app/weditor/src/main/resources/examples/mspi-workflow.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/examples/shared-properties.xml ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/examples/shared-properties.xml b/app/weditor/src/main/resources/examples/shared-properties.xml deleted file mode 100644 index 73ae732..0000000 --- a/app/weditor/src/main/resources/examples/shared-properties.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/examples/test.xml ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/examples/test.xml b/app/weditor/src/main/resources/examples/test.xml deleted file mode 100644 index f2bf057..0000000 --- a/app/weditor/src/main/resources/examples/test.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/cursor-zoom.png ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/cursor-zoom.png b/app/weditor/src/main/resources/icons/cursor-zoom.png deleted file mode 100644 index e47f879..0000000 Binary files a/app/weditor/src/main/resources/icons/cursor-zoom.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/delete-sel.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/delete-sel.jpg b/app/weditor/src/main/resources/icons/delete-sel.jpg deleted file mode 100644 index 3144ab6..0000000 Binary files a/app/weditor/src/main/resources/icons/delete-sel.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/delete.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/delete.jpg b/app/weditor/src/main/resources/icons/delete.jpg deleted file mode 100644 index 876c80c..0000000 Binary files a/app/weditor/src/main/resources/icons/delete.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/edit-sel.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/edit-sel.jpg b/app/weditor/src/main/resources/icons/edit-sel.jpg deleted file mode 100644 index ef262a4..0000000 Binary files a/app/weditor/src/main/resources/icons/edit-sel.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/edit.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/edit.jpg b/app/weditor/src/main/resources/icons/edit.jpg deleted file mode 100644 index e56d6d4..0000000 Binary files a/app/weditor/src/main/resources/icons/edit.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/move-sel.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/move-sel.jpg b/app/weditor/src/main/resources/icons/move-sel.jpg deleted file mode 100644 index b54dcce..0000000 Binary files a/app/weditor/src/main/resources/icons/move-sel.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/move.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/move.jpg b/app/weditor/src/main/resources/icons/move.jpg deleted file mode 100644 index d96e03d..0000000 Binary files a/app/weditor/src/main/resources/icons/move.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/zoom-in-sel.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/zoom-in-sel.jpg b/app/weditor/src/main/resources/icons/zoom-in-sel.jpg deleted file mode 100644 index a072e15..0000000 Binary files a/app/weditor/src/main/resources/icons/zoom-in-sel.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/zoom-in.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/zoom-in.jpg b/app/weditor/src/main/resources/icons/zoom-in.jpg deleted file mode 100644 index a61decf..0000000 Binary files a/app/weditor/src/main/resources/icons/zoom-in.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/zoom-out-sel.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/zoom-out-sel.jpg b/app/weditor/src/main/resources/icons/zoom-out-sel.jpg deleted file mode 100644 index 5820b39..0000000 Binary files a/app/weditor/src/main/resources/icons/zoom-out-sel.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/icons/zoom-out.jpg ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/icons/zoom-out.jpg b/app/weditor/src/main/resources/icons/zoom-out.jpg deleted file mode 100644 index 2996af1..0000000 Binary files a/app/weditor/src/main/resources/icons/zoom-out.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/app/weditor/src/main/resources/logging.properties ---------------------------------------------------------------------- diff --git a/app/weditor/src/main/resources/logging.properties b/app/weditor/src/main/resources/logging.properties deleted file mode 100644 index 8d72499..0000000 --- a/app/weditor/src/main/resources/logging.properties +++ /dev/null @@ -1,40 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE.txt 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. - - -# Specify the handlers to create in the root logger -# (all loggers are children of the root logger) -# The following creates two handlers -handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler - -# Set the default logging level for the root logger -.level = INFO - -# Set the default logging level for new ConsoleHandler instances -java.util.logging.ConsoleHandler.level = ALL -java.util.logging.FileHandler.level = ALL - -# Set the default formatter for new ConsoleHandler instances -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - -# default file output is in user's home directory. -java.util.logging.FileHandler.pattern = ../logs/cas_workflow_gui%g.log -java.util.logging.FileHandler.limit = 50000 -java.util.logging.FileHandler.count = 5 -java.util.logging.FileHandler.append = true -java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter - -# Set the default logging level for the subsystems -org.apache.oodt.cas.workflow.gui.level = INFO http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/.htaccess ---------------------------------------------------------------------- diff --git a/balance/etc/skel/.htaccess b/balance/etc/skel/.htaccess deleted file mode 100644 index e3a557a..0000000 --- a/balance/etc/skel/.htaccess +++ /dev/null @@ -1,45 +0,0 @@ -# -# 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. -# - -# Rewrite rules for OODT Balance web applications. -# -# Enable the rewrite engine -RewriteEngine On - -# Make sure that the value for RewriteBase exactly matches the -# value for site_root in config.ini. This value should point to the -# location (relative to the server's document root) of the -# Balance webapp directory (the directory containing config.ini). For -# example, if the application lives at the server's document root, then -# RewriteBase should be set to '/'. If, on the other hand, the application -# has been installed into a subdirectory 'foo' underneath the server's -# document root, RewriteBase (and site_root in config.ini) should be set -# to '/foo/' -RewriteBase / - -# This section forwards all requests to the Balance application's front -# controller. Unless you are modifying the low-level behavior of the -# Balance application framework, there should be no need to make any -# modifications below this line. ----------------------------------------- -# -# Send all other non-static requests to the main controller -RewriteCond %{REQUEST_URI} !/static/(.*)$ -RewriteCond %{REQUEST_URI} !/scripts/(.*)$ -RewriteCond %{REQUEST_URI} !/global/(.*)$ -RewriteCond %{REQUEST_URI} !index\.php/.+$ -RewriteRule ^(.+)$ ./index\.php/$1 [L,NC] - http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/README.txt ---------------------------------------------------------------------- diff --git a/balance/etc/skel/README.txt b/balance/etc/skel/README.txt deleted file mode 100644 index ce7b2fd..0000000 --- a/balance/etc/skel/README.txt +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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. - */ - -OODT Balance Web Application README File - -The OODT Balance web application skeleton is a quick way to get started -developing a new Balance application. It provides the necessary directory -structure and sane default configuration values that you can customize to -suit your needs. These instructions assume you have the necessary access -to install files into your web server's document root. These instructions -will help you create an application called 'my-application' which will be -accessed from http://localhost/my-application. Your environment and/or -needs may differ, so adapt the following as necessary. - - -1. Installing the OODT Balance PEAR package ("Balance library") - -The Balance library provides core classs that must be in place prior to -developing a Balance application. The library only needs to be installed -once per system. If you have previously installed the Balance library on -your system, you can safely skip this step. - - a. Download the latest stable Balance library release (OODT_ROOT/balance/lib/pear) - to a scratch directory on your system - b. Build the pear package using the pear command line utility: - $ pear package - c. Install the resulting package (.tgz file) using the pear installer: - $ pear install --force Org_Apache_Oodt_Balance-#.#.#.tgz - -2. Setting up the web application skeleton - -The files in this directory represent the Balance application skeleton. If -you have not already done so, move the directory containing this file to -your web server's directory root, noting the name you use for the path -(e.g.: /path/to/document/root/my-application). The instructions below assume -that you have named the directory 'my-application'. Adjust as necessary for -your environment. - - a. In the config.ini file, set the url_base configuration variable to /my-application - b. In the .htaccess file, set the RewriteBase directive to /my-application - c. Visit http://localhost/my-application to see your skeletal Balance application. Note - that the URL you use to visit your application may differ slightly from the above - if you have set up virtual hosting or have a domain name other than localhost. - -3. Developing your web application - -The following is a very high level introduction to developing a web application using Balance. - -Balance operates on the concept of application 'views'. Each application url, e.g.: -http://localhost/my-application/about, maps to exactly one view, e.g.: HOME/views/about.php, -where HOME is the location of the Balance web application files. A view file is a plain vanilla -PHP file, which, in its simplest form, might only contain static HTML. For more involved tasks, -functions from the Balance core library can be invoked directly from within the view file. - -Most sites incorporate common, site-wide content at the top (header) and bottom (footer) of -each page. Balance supports header and footer files, which get included with every view unless -the view file itself explicitly modifies this behavior. By default, the header and footer file -can be found at HOME/views/common/header.php and HOME/views/common/footer.php, respectively. - -Occasionally, such as when a form gets submitted via POST, a script needs to be invoked to handle -the input. Scripts are generally located at HOME/scripts, and are named according to the url -that will be used to invoke them. Scripts are differentiated from views from a url standpoint in -that urls for scripts end in '.do' whereas urls for views generally do not have a file extension. -As a concrete example, imagine a login view providing inputs for username and password. It might -theoretically reside at HOME/views/login.php and be accessed via -http://localhost/my-application/login. On submission, the login form's target might be set to a -login script that processes the submitted user information. That script would reside at -HOME/scripts/login.php and be accessed via http://localhost/my-application/login.do. In the -event that the script is intended to handle GET parameters, they are appended after the .do using -the standard url notation (e.g.: ...myscript.do?param1=value1¶m2=value2). The '.do' extension is -merely a url routing convention meant to imply the execution of some action, the actual script -file in HOME/scripts maintains the '.php' extension. - -More information can be obtained by visiting the OODT website (http://oodt.apache.org) or posing -a question to the OODT user mailing list (user@oodt.apache.org). - http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/config.ini ---------------------------------------------------------------------- diff --git a/balance/etc/skel/config.ini b/balance/etc/skel/config.ini deleted file mode 100644 index 04391b1..0000000 --- a/balance/etc/skel/config.ini +++ /dev/null @@ -1,82 +0,0 @@ -; -; 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. -; - -; -; OODT Balance -; Web Application Base Framework -; -; Application Configuration File. This file should be called 'config.ini' and -; should reside in the root directory of your site. This file follows standard -; ini file conventions. Lines beginning with ';' are comments and are ignored. -; - -[Application Environment] - -; site_root -; If the site lives at the document root of the server, this will be '/'. On -; the other hand, if the site lives in a sub-directory of the document root, -; this will be the full path (starting from the document root) to the root -; directory of the site. Always start with a slash (/) and always omit the -; trailing slash. -; -; examples: -; (document root) http://domain.com/ (site_root: '/') -; (subdirectory) http://domain.com/apps/site (site_root: '/apps/site') -; -; Note: The value for site_root should always match the value for 'RewriteBase' -; in the .htaccess file located in the site's root directory. -; -site_root = / - - -[Application Content] - -; views_dir -; This is the directory inside your site root where your application's views -; reside. This should be a relative path (./). If you have set things up -; according to the instructions, the framework will use the location of this -; file (config.ini) as the base. -; -; Note: The value provided is simply an example. It is up to you to provide -; valid paths for your environment. -views_dir = ./views - -; header_file_path -; This is the file that contains a site-wide header code/layout to be included -; in each view. This should be a relative path (./). If you have set things up -; according to the instructions, the framework will use the location of this -; file (config.ini) as the base. -; -; Note: The value provided is simply an example. It is up to you to provide -; valid paths for your environment. -header_file_path = ./views/common/header.php - -; footer_file_path -; This is the file that contains a site-wide footer code/layout to be included -; in each view. This should be a relative path (./). If you have set things up -; according to the instructions, the framework will use the location of this -; file (config.ini) as the base. -; -; Note: The value provided is simply an example. It is up to you to provide -; valid paths for your environment. -footer_file_path = ./views/common/footer.php - - -[AUTH & AUTH] - -; Authorization error redirect path to login page -authorization_redirect_url = / http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/hooks.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/hooks.php b/balance/etc/skel/hooks.php deleted file mode 100644 index b26dd94..0000000 --- a/balance/etc/skel/hooks.php +++ /dev/null @@ -1,98 +0,0 @@ -"; - * } - * - * - * Take a look at the docblock descriptions of each hook to get a sense of where - * in the view rendering process the hook is invoked. - * - */ - -/** - * hook_before_all - * - * This hook is executed before any other hooks. It can be used for any - * pre-processing logic. - */ -function hook_before_all() {} - -/** - * hook_before_header - * - * This hook is executed before the contents of the header file are processed. - */ -function hook_before_header() {} - -/** - * hook_before_view - * - * This hook is executed before the contents of the main view are processed. - */ -function hook_before_view() {} - -/** - * hook_before_footer - * - * This hook is executed before the contents of the footer are processed - */ -function hook_before_footer() {} - -/** - * hook_before_send - * - * This hook is after all of the view components (header, view, footer) have been - * processed but before the processed results are sent out across the wire to the - * browser. HTTP headers have not yet been sent to the browser. - */ -function hook_before_send() {} - -/** - * hook_after_send - * - * This hook is after all of the view components (header, view, footer) have been - * processed and sent out across the wire to the browser. It can be used for logging - * or analytics purposes, or to append a common trailer to all content. - */ -function hook_after_send() { - $timeStart = $GLOBALS['balance_request_start']; - $timeEnd = microtime(true); - $elapsed = $timeEnd - $timeStart; - - echo "\r\n"; -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/index.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/index.php b/balance/etc/skel/index.php deleted file mode 100644 index e02633d..0000000 --- a/balance/etc/skel/index.php +++ /dev/null @@ -1,48 +0,0 @@ -loadModule('foo'); - -/* Generate and send a response to the browser **************************/ -$response = $app->getResponse()->send(); - -/* Clean up after ourselves *********************************************/ -$app->cleanup(); http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/scripts/widgets/BreadcrumbsWidget.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/scripts/widgets/BreadcrumbsWidget.php b/balance/etc/skel/scripts/widgets/BreadcrumbsWidget.php deleted file mode 100644 index 571186e..0000000 --- a/balance/etc/skel/scripts/widgets/BreadcrumbsWidget.php +++ /dev/null @@ -1,101 +0,0 @@ - "(string) specifying the html that should separate breadcrumbs" - * - * *NOTE*: the class also recognizes the `breadcrumbs_separator` application config - * setting. If this setting is present within the application config.ini file, - * the value will be used as the separator; - * - * - * Adding a label breadcrumb (no link): - * $bcw->add('Label'); - * - * Adding a linked label breadcrumb: - * $bcw->add('Label','link_href'); - * - * - */ - -class BreadcrumbsWidget - implements Org_Apache_Oodt_Balance_Interfaces_IApplicationWidget { - - protected $separator = ' → '; - - public function __construct($options = array()) { - - // Check if the breadcrumbs_separator config setting has been set - if (isset(App::Get()->settings['breadcrumbs_separator'])) { - $this->separator = App::Get()->settings['breadcrumbs_separator']; - } - - // If the 'separator' option has been passed, prefer it - if (isset($options['separator'])) { - $this->separator = $options['separator']; - } - } - - public function add( $label = null, $link = null) { - $breadcrumbs = App::Get()->response->data('breadcrumbs'); - if ( $label != null && $link != null ) { - - // will show up as a linked label - $breadcrumbs[] = array($label,$link); - } elseif ( $label != null ) { - - // will show up as just text - $breadcrumbs[] = $label; - } else - return 0; - - App::Get()->response->data("breadcrumbs",$breadcrumbs); - } - - public function render($bEcho = true) { - $str = ''; - $data = App::Get()->response->data('breadcrumbs'); - if ( !empty($data) ) { - foreach ($data as $bc) { - if (is_array($bc)) { - $str .= ''.$bc[0]."{$this->separator}"; - } else { - $str .= ''.$bc.''; - } - } - } - - if($bEcho) { - echo $str; - } else { - return $str; - } - } -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/static/css/balance/balance.css ---------------------------------------------------------------------- diff --git a/balance/etc/skel/static/css/balance/balance.css b/balance/etc/skel/static/css/balance/balance.css deleted file mode 100644 index e32eb68..0000000 --- a/balance/etc/skel/static/css/balance/balance.css +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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. - */ - -/***** RESET *************************************************************/ -html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, -blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, -img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, -i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, -caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, -embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, -section, summary, time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} - -/***** BALANCE DEFAULTS *********************************************/ - -html,body { - font-family:arial,verdana,sans-serif; - font-size:1em; - font-weight:normal; - color:#000; - line-height:1.5em; -} - -h1, h2, h3, h4, h5 { - margin:10px 0; -} - -h1 { - font-size:2.1em; - font-weight:bold; - margin:15px 0; -} - -h2 { - font-size:1.8em; - font-weight:bold; - margin:12px 0; -} - -h3 { - font-size:1.4em; - font-weight:bold; -} - -h4 { - font-size:1.2em; - font-weight:bold; -} - -h5 { - font-size:1em; - font-weight:bold; -} - -div.container { - width:960px; - margin:10px auto; -} - - -/** - * Balance Widget Styling - */ - -div.bal_widget { - border:solid 1px #ccc; - padding:5px; -} - -/** - * Balance default footer styling - */ -div.bal_footer { - color:#888; - font-size:80%; -} http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/static/css/site.css ---------------------------------------------------------------------- diff --git a/balance/etc/skel/static/css/site.css b/balance/etc/skel/static/css/site.css deleted file mode 100644 index 37fd84b..0000000 --- a/balance/etc/skel/static/css/site.css +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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. - */ -/** - * Place site CSS statements here - **/ http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/views/common/footer.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/views/common/footer.php b/balance/etc/skel/views/common/footer.php deleted file mode 100644 index bb45547..0000000 --- a/balance/etc/skel/views/common/footer.php +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/views/common/header.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/views/common/header.php b/balance/etc/skel/views/common/header.php deleted file mode 100644 index df5dc1f..0000000 --- a/balance/etc/skel/views/common/header.php +++ /dev/null @@ -1,56 +0,0 @@ - - - - -Untitled OODT Balance Application - - - - - - - - - - - - - - - - - -
-GetMessages(); -?> http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/views/errors/403.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/views/errors/403.php b/balance/etc/skel/views/errors/403.php deleted file mode 100644 index 9e87eab..0000000 --- a/balance/etc/skel/views/errors/403.php +++ /dev/null @@ -1,30 +0,0 @@ -add('Home',SITE_ROOT . '/'); -$bcw->add('Access Forbidden'); -?> - -
-

403 Access Forbidden

-
You are not authorized to view the requested resource. If you feel this is in error, please - contact the webmaster for this site
-
http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/views/errors/404.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/views/errors/404.php b/balance/etc/skel/views/errors/404.php deleted file mode 100644 index 4f40a82..0000000 --- a/balance/etc/skel/views/errors/404.php +++ /dev/null @@ -1,29 +0,0 @@ -add('Home',SITE_ROOT . '/'); -$bcw->add('Not Found'); -?> - -
-

404 Not Found

-
The requested resource (request->uri?>) does not exist.
-
http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/etc/skel/views/index.php ---------------------------------------------------------------------- diff --git a/balance/etc/skel/views/index.php b/balance/etc/skel/views/index.php deleted file mode 100644 index 9d65e00..0000000 --- a/balance/etc/skel/views/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -

 

-

Hello from OODT Balance

- -
-
To configure your application:
- file:///config.ini -
- -
-
To edit this view:
- file:///views/index.php -
- -
-
For more information:
- http://oodt.apache.org -
http://git-wip-us.apache.org/repos/asf/oodt/blob/098cc4fa/balance/lib/pear/Boot/bootstrap.php ---------------------------------------------------------------------- diff --git a/balance/lib/pear/Boot/bootstrap.php b/balance/lib/pear/Boot/bootstrap.php deleted file mode 100644 index abdcb9d..0000000 --- a/balance/lib/pear/Boot/bootstrap.php +++ /dev/null @@ -1,59 +0,0 @@ -