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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -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. ---> -<cas:workflows - xmlns="http://oodt.jpl.nasa.gov/2.0/cas" - xmlns:cas="http://oodt.jpl.nasa.gov/2.0/cas" - xmlns:p="http://oodt.jpl.nasa.gov/2.0/cas/property"> - - <sequential id="urn:npp:GranuleMaps" name="GranuleMaps"> - <configuration> - - <!-- PCS properties --> - <property name="PGETask/Query/FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/> - <property name="PGETask/Ingest/FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/> - <property name="PGETask/Ingest/ClientTransferServiceFactory" value="gov.nasa.jpl.oodt.cas.filemgr.datatransfer.LocalDataTransferFactory"/> - <property name="PGETask/Ingest/MetFileExtension" value="cas"/> - <property name="PGETask/Ingest/CrawlerCrawlForDirs" value="false"/> - <property name="PGETask/Ingest/CrawlerRecur" value="false"/> - <property name="PGETask/Ingest/ActionsIds" value="RmDataFile"/> - <property name="PGETask/Ingest/ActionRepoFile" value="file:[PCS_HOME]/core/pge/policy/action-beans.xml" envReplace="true"/> - - <!-- Timeout properties --> - <property name="PGETask/Condition/Timeout" value="30000"/> - - <!-- query properties --> - <property name="PGETask/Condition/StartDateTimeKey" value="StartDateTime"/> - <property name="PGETask/Condition/EndDateTimeKey" value="EndDateTime"/> - <property name="PGETask/Condition/SortByKey" value="StartDateTime"/> - <property name="PGETask/Condition/VersioningKey" value="ProductionDateTime"/> - <property name="PGETask/Condition/FilterAlgorClass" value="gov.nasa.jpl.oodt.cas.filemgr.structs.query.filter.WeightedHashFilterAlgor"/> - <property name="PGETask/Condition/MinNumOfFiles" value="1"/> - <property name="PGETask/Condition/MaxGapSize" value="-1"/> - <property name="PGETask/Condition/EpsilonInMillis" value="0"/> - - <!-- Wait time between block and unblock in minutes --> - <property name="BlockTimeElapse" value="1"/> - - </configuration> - - <conditions execution="parallel" type="pre"> - <condition id-ref="urn:npp:MOA_IASI_L1C_Daily"/> - <condition id-ref="urn:npp:MOA_MHS_L1B_Daily"/> - <condition id-ref="urn:npp:MOA_AMSUA_L1B_Daily"/> - </conditions> - - <parallel> - <task id-ref="urn:npp:Orbits"/> - <task id-ref="urn:npp:MoaIasiGPolygon"/> - <task id-ref="urn:npp:MoaMhsGPolygon"/> - <task id-ref="urn:npp:MoaAmsuaGPolygon"/> - </parallel> - - <parallel> - <conditions execution="sequential" type="pre"> - <condition id-ref="urn:npp:MOA_ORBITS_FileBased"/> - </conditions> - - <task id-ref="urn:npp:MoaIasiMap"/> - <task id-ref="urn:npp:MoaMhsMap"/> - <task id-ref="urn:npp:MoaAmsuaMap"/> - - <!--conditions execution="sequential" type="post"> - <condition id-ref="urn:npp:VerifyMapsExist" name="VerifyMapsExist"/> - </conditions--> - - </parallel> - - <workflow id-ref="MSPI_L1_Workflow"/> - - </sequential> - - - <!-- CONDITIONS --> - <condition id="urn:npp:MOA_IASI_L1C_Daily" name="MOA_IASI_L1C_Daily" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_IASI_L1C"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="480"/> - <property name="PGETask/Condition/EpsilonInMillis" value="30000"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/IASI_L1_Query"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/IASI_L1_FormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/IASI_L1_Filenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <condition id="urn:npp:MOA_MHS_L1B_Daily" name="MOA_MHS_L1B_Daily" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_MHS_L1B"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="15"/> - <property name="PGETask/Condition/EpsilonInMillis" value="60000"/> <!--2mins--> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/MHS_L1_Query"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/MHS_L1_FormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/MHS_L1_Filenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <condition id="urn:npp:MOA_AMSUA_L1B_Daily" name="MOA_MHS_L1B_Daily" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_AMSUA_L1B"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="15"/> - <property name="PGETask/Condition/EpsilonInMillis" value="60000"/> <!--2mins--> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/AMSUA_L1_Query"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/AMSUA_L1_FormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/AMSUA_L1_Filenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <condition id="urn:npp:MOA_ORBITS_FileBased" name="MOA_ORBITS_FileBased" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_ORBITS"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/OrbitsQuery"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/OrbitsFormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/OrbitsFilenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <condition id="urn:npp:MOA_IASI_POLY_FileBased" name="MOA_IASI_POLY_FileBased" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_IASI_POLY"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/IASI_GPolyQuery"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/IASI_GPolyFormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/IASI_GPolyFilenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <condition id="urn:npp:MOA_MHS_POLY_FileBased" name="MOA_MHS_POLY_FileBased" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_MHS_POLY"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/MHS_GPolyQuery"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/MHS_GPolyFormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/MHS_GPolyFilenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <condition id="urn:npp:MOA_AMSUA_POLY_FileBased" name="MOA_AMSUA_POLY_FileBased" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration> - <property name="PGETask/Condition/ProductTypeNames" value="MOA_AMSUA_POLY"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/AMSUA_GPolyQuery"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/AMSUA_GPolyFormattedMetadata | $FileLocation/$Filename},{Runtime/Condition/AMSUA_GPolyFilenames | $Filename}"/> - <property name="QueueName" value="java"/> - </configuration> - </condition> - <!--condition id="urn:npp:VerifyMapsExist" name="VerifyMapsExist" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"/--> - - - <!-- TASKS --> - <task id="urn:npp:Orbits" name="MoaOrbits" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <configuration> - <property name="PGETask/Name" value="MoaOrbits" /> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaOrbits/SPSS_Version]/config/PgeConfig_MoaOrbits.xml"/> - <property name="Runtime/Condition/L1FormattedMetadata" value="[Runtime/Condition/IASI_L1_FormattedMetadata]"/> - <property name="Runtime/Condition/L1Filenames" value="[Runtime/Condition/IASI_L1_Filenames]"/> - <property name="Instrument" value="MetOpS"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - <task id="urn:npp:MoaIasiGPolygon" name="MoaIasiGPolygon" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <configuration> - <property name="PGETask/Name" value="MoaIasiGPolygon"/> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaIasiGPolygon/SPSS_Version]/config/PgeConfig_MoaGPolygon.xml"/> - <property name="Runtime/Condition/L1FormattedMetadata" value="[Runtime/Condition/IASI_L1_FormattedMetadata]"/> - <property name="Runtime/Condition/L1Filenames" value="[Runtime/Condition/IASI_L1_Filenames]"/> - <property name="Instrument" value="IASI"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - <task id="urn:npp:MoaMhsGPolygon" name="MoaMhsGPolygon" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <configuration> - <property name="PGETask/Name" value="MoaAmsuaGPolygon"/> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaAmsuaGPolygon/SPSS_Version]/config/PgeConfig_MoaGPolygon.xml"/> - <property name="Runtime/Condition/L1FormattedMetadata" value="[Runtime/Condition/AMSUA_L1_FormattedMetadata]"/> - <property name="Runtime/Condition/L1Filenames" value="[Runtime/Condition/AMSUA_L1_Filenames]"/> - <property name="Instrument" value="AMSUA"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - <task id="urn:npp:MoaAmsuaGPolygon" name="MoaAmsuaGPolygon" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <configuration> - <property name="PGETask/Name" value="MoaMhsGPolygon"/> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaMhsGPolygon/SPSS_Version]/config/PgeConfig_MoaGPolygon.xml"/> - <property name="Runtime/Condition/L1FormattedMetadata" value="[Runtime/Condition/MHS_L1_FormattedMetadata]"/> - <property name="Runtime/Condition/L1Filenames" value="[Runtime/Condition/MHS_L1_Filenames]"/> - <property name="Instrument" value="MHS"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - <task id="urn:npp:MoaIasiMap" name="MoaIasiMap" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="sequential" type="pre"> - <condition id-ref="urn:npp:MOA_IASI_POLY_FileBased"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MoaIasiMap"/> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaIasiMap/SPSS_Version]/config/PgeConfig_MoaMap.xml"/> - <property name="Runtime/Condition/GPolyFormattedMetadata" value="[Runtime/Condition/IASI_GPolyFormattedMetadata]"/> - <property name="Runtime/Condition/GPolyFilenames" value="[Runtime/Condition/IASI_GPolyFilenames]"/> - <property name="Instrument" value="IASI"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - <task id="urn:npp:MoaMhsMap" name="MoaMhsMap" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="sequential" type="pre"> - <condition id-ref="urn:npp:MOA_MHS_POLY_FileBased"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MoaMhsMap"/> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaMhsMap/SPSS_Version]/config/PgeConfig_MoaMap.xml"/> - <property name="Runtime/Condition/GPolyFormattedMetadata" value="[Runtime/Condition/MHS_GPolyFormattedMetadata]"/> - <property name="Runtime/Condition/GPolyFilenames" value="[Runtime/Condition/MHS_GPolyFilenames]"/> - <property name="Instrument" value="MHS"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - <task id="urn:npp:MoaAmsuaMap" name="MoaAmsuaMap" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="sequential" type="pre"> - <condition id-ref="urn:npp:MOA_AMSUA_POLY_FileBased"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MoaAmsuaMap"/> - <property name="PGETask/ConfigFilePath" value="[SPSS_CONFIG_HOME]/[MoaAmsuaMap/SPSS_Version]/config/PgeConfig_MoaMap.xml"/> - <property name="Runtime/Condition/GPolyFormattedMetadata" value="[Runtime/Condition/AMSUA_GPolyFormattedMetadata]"/> - <property name="Runtime/Condition/GPolyFilenames" value="[Runtime/Condition/AMSUA_GPolyFilenames]"/> - <property name="Instrument" value="AMSUA"/> - <property name="QueueName" value="idl"/> - </configuration> - </task> - -</cas:workflows> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -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. ---> -<workflows> - - <sequential id="MSPI_L1_Workflow" name="MSPI L1 Workflow"> - - <configuration extends="global,workflows"/> - - <task id-ref="MSPI_L1A1_Task"/> - <task id-ref="MSPI_L1A2_Task"/> - <task id-ref="MSPI_L1B1_Task"/> - <task id-ref="MSPI_L1B2_Task"/> - - </sequential> - - <!-- CONDITIONS --> - <condition id="MSPI_L0_Condition" name="MSPI L0 Condition" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration extends="global,conditions,1-file"> - <property name="PGETask/Condition/ProductTypeNames" value="MSPI_L0"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/L0/Formatted | $FileLocation/$Filename},{Runtime/Condition/L0/Filenames | $Filename},{Runtime/Condition/L0/StartDateTime | $StartDateTime},{Runtime/Condition/L0/EndDat - eTime | $EndDateTime},{Runtime/Condition/L0/Latitude | $Latitude},{Runtime/Condition/L0/Longitude | $Longitude},{Runtime/Condition/L0/Azimuth | $Azimuth},{Runtime/Condition/L0/Elevation | $Elevation}"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/L0_Query"/> - </configuration> - </condition> - <condition id="MSPI_L1A1_Condition" name="MSPI L1A1 Condition" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration extends="global,conditions,1-file"> - <property name="PGETask/Condition/ProductTypeNames" value="MSPI_L1A1"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/L1A1/Formatted | $FileLocation/$Filename},{Runtime/Condition/L1A1/Filenames | $Filename},{Runtime/Condition/L1A1/StartDateTime | $StartDateTime},{Runtime/Condition/L1A - 1/EndDateTime | $EndDateTime},{Runtime/Condition/L1A1/Latitude | $Latitude},{Runtime/Condition/L1A1/Longitude | $Longitude},{Runtime/Condition/L1A1/Azimuth | $Azimuth},{Runtime/Condition/L1A1/Elevation | $Elevation}"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/L1A1_Query"/> - </configuration> - </condition> - <condition id="MSPI_L1A2_Condition" name="MSPI L1A2 Condition" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration name="MSPI_L1A2_Condition" extends="global,conditions,1-file"> - <property name="PGETask/Condition/ProductTypeNames" value="MSPI_L1A2"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/L1A2/Formatted | $FileLocation/$Filename},{Runtime/Condition/L1A2/Filenames | $Filename},{Runtime/Condition/L1A2/StartDateTime | $StartDateTime},{Runtime/Condition/L1A - 2/EndDateTime | $EndDateTime},{Runtime/Condition/L1A2/Latitude | $Latitude},{Runtime/Condition/L1A2/Longitude | $Longitude},{Runtime/Condition/L1A2/Azimuth | $Azimuth},{Runtime/Condition/L1A2/Elevation | $Elevation}"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/L1A2_Query"/> - </configuration> - </condition> - <condition id="MSPI_L1B1_Condition" name="MSPI L1B1 Condition" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration extends="global,conditions,1-file"> - <property name="PGETask/Condition/ProductTypeNames" value="MSPI_L1B1"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/L1B1/Formatted | $FileLocation/$Filename},{Runtime/Condition/L1B1/Filenames | $Filename},{Runtime/Condition/L1B1/StartDateTime | $StartDateTime},{Runtime/Condition/L1B - 1/EndDateTime | $EndDateTime},{Runtime/Condition/L1B1/Latitude | $Latitude},{Runtime/Condition/L1B1/Longitude | $Longitude},{Runtime/Condition/L1B1/Azimuth | $Azimuth},{Runtime/Condition/L1B1/Elevation | $Elevation},{Runtime/Condition/L1B1/ref_row | 32}" - /> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/L1B1_Query"/> - </configuration> - </condition> - <condition id="MSPI_L1B1_Diag_Condition" name="MSPI L1B1 Diag Condition" class="gov.nasa.jpl.oodt.cas.pge.condition.PGETaskWorkflowCondition"> - <configuration extends="global,conditions,1-file"> - <property name="PGETask/Condition/ProductTypeNames" value="MSPI_L1B1_Diag"/> - <property name="PGETask/Condition/ResultKeyFormats" value="{Runtime/Condition/L1B1_Diag/Formatted | $FileLocation/$Filename},{Runtime/Condition/L1B1_Diag/Filenames | $Filename}"/> - <property name="PGETask/Condition/SqlQueryKey" value="Runtime/Condition/L1B1_Diag_Query"/> - </configuration> - </condition> - - <!-- TASKS --> - <task id="MSPI_L1A1_Task" name="MSPI L1A1 Task" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="sequential" type="pre"> - <condition id-ref="MSPI_L0_Condition"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MSPI_L1A1_Task"/> - <property name="PGETask/FileBasedConfig/StageConfigFile" value="true"/> - <property name="PGETask/FileBasedConfig/ConfigFilePath" value="[PCS_HOME]/core/pge/policy/mspi/PgeConfig_MSPI_L1.xml" envReplace="true"/> - <property name="MSPI/L1Type" value="L1A1"/> - <property name="MSPI/L1InputType" value="L0"/> - </configuration> - </task> - <task id="MSPI_L1A2_Task" name="MSPI L1A2 Task" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="sequential" type="pre"> - <condition id-ref="MSPI_L1A1_Condition"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MSPI_L1A2_Task"/> - <property name="PGETask/FileBasedConfig/StageConfigFile" value="true"/> - <property name="PGETask/FileBasedConfig/ConfigFilePath" value="[PCS_HOME]/core/pge/policy/mspi/PgeConfig_MSPI_L1.xml" envReplace="true"/> - <property name="MSPI/L1Type" value="L1A2"/> - <property name="MSPI/L1InputType" value="L1A1"/> - </configuration> - </task> - <task id="MSPI_L1B1_Task" name="MSPI L1B1 Task" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="sequential" type="pre"> - <condition id-ref="MSPI_L1A2_Condition"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MSPI_L1B1_Task"/> - <property name="PGETask/FileBasedConfig/StageConfigFile" value="true"/> - <property name="PGETask/FileBasedConfig/ConfigFilePath" value="[PCS_HOME]/core/pge/policy/mspi/PgeConfig_MSPI_L1.xml" envReplace="true"/> - <property name="MSPI/L1Type" value="L1B1"/> - <property name="MSPI/L1InputType" value="L1A2"/> - </configuration> - </task> - <task id="MSPI_L1B2_Task" name="MSPI L1B2 Task" class="gov.nasa.jpl.oodt.cas.pge.StdPGETaskInstance"> - <conditions execution="parallel" type="pre"> - <condition id-ref="MSPI_L1B1_Condition"/> - <condition id-ref="MSPI_L1B1_Diag_Condition"/> - </conditions> - <configuration> - <property name="PGETask/Name" value="MSPI_L1B2_Task"/> - <property name="PGETask/FileBasedConfig/StageConfigFile" value="true"/> - <property name="PGETask/FileBasedConfig/ConfigFilePath" value="[PCS_HOME]/core/pge/policy/mspi/PgeConfig_MSPI_L1.xml" envReplace="true"/> - <property name="MSPI/L1Type" value="L1B2"/> - <property name="MSPI/L1InputType" value="L1B1"/> - </configuration> - </task> - -</workflows> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -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. ---> -<workflows> - <configuration name="global"> - <property name="PGETask/Query/FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/> - <property name="BlockTimeElapse" value="10"/> <!--10mins--> - </configuration> - <configuration name="workflows"> - <property name="PGETask/Ingest/FileManagerUrl" value="[FILEMGR_URL]" envReplace="true"/> - <property name="PGETask/Ingest/ClientTransferServiceFactory" value="gov.nasa.jpl.oodt.cas.filemgr.datatransfer.LocalDataTransferFactory"/> - <property name="PGETask/Ingest/MetFileExtension" value="cas"/> - <property name="PGETask/Ingest/CrawlerCrawlForDirs" value="false"/> - <property name="PGETask/Ingest/CrawlerRecur" value="false"/> - <!--property name="PGETask/Ingest/ActionsIds" value="RmDataFile"/> - <property name="PGETask/Ingest/ActionRepoFile" value="file:[PCS_HOME]/cas/pge/policy/action-beans.xml" envReplace="true"/--> - - <!-- resource runner properties --> - <property name="QueueName" value="exe"/> - <property name="Load" value="2"/> - </configuration> - <configuration name="conditions"> - <property name="PGETask/Condition/Timeout" value="28800"/> <!--8hrs--> - <property name="PGETask/Condition/StartDateTimeKey" value="StartDateTime"/> - <property name="PGETask/Condition/EndDateTimeKey" value="EndDateTime"/> - <property name="PGETask/Condition/SortByKey" value="StartDateTime"/> - <property name="PGETask/Condition/VersioningKey" value="ProductionDateTime"/> - <property name="PGETask/Condition/MinNumOfFiles" value="1"/> - <property name="PGETask/Condition/MaxGap/Size" value="-1"/> - <property name="PGETask/Condition/EpsilonInMillis" value="0"/> - <property name="PGETask/Condition/FilterAlgorClass" value="gov.nasa.jpl.oodt.cas.filemgr.structs.query.filter.WeightedHashFilterAlgor"/> - - <!-- resource runner properties --> - <property name="QueueName" value="conds"/> - <property name="Load" value="1"/> - </configuration> - <configuration name="airs"> - <property name="PGETask/Condition/StartDateTimeKey" value="UTC_start_time"/> - <property name="PGETask/Condition/EndDateTimeKey" value="UTC_stop_time"/> - <property name="PGETask/Condition/SortByKey" value="UTC_start_time"/> - <property name="PGETask/Condition/VersioningKey" value="ProductionDatetime"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="240"/> - <property name="PGETask/Condition/EpsilonInMillis" value="10000"/> <!--10secs--> - </configuration> - <configuration name="14-files"> - <!-- filter properties --> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="14"/> - <property name="PGETask/Condition/EpsilonInMillis" value="1000000"/> <!--1000secs--> - - <!-- gap analysis properties --> - <property name="PGETask/Condition/MaxGap/Size" value="6000000"/> <!--100mins--> - <property name="PGETask/Condition/MaxGap/StartDateTime" value="[NominalDate]T00:00:00.000Z"/> - <property name="PGETask/Condition/MaxGap/EndDateTime" value="[NominalDate]T23:59:59.999Z"/> - </configuration> - <configuration name="480-files"> - <!-- filter properties --> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="480"/> - <property name="PGETask/Condition/EpsilonInMillis" value="30000"/> <!--30secs--> - </configuration> - <configuration name="1-file"> - <property name="PGETask/Condition/FilterAlgorClass" value="gov.nasa.jpl.oodt.cas.filemgr.structs.query.filter.TakeEarliestEventFilterAlgor"/> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="1"/> - </configuration> - <configuration name="concat-files"> - <!-- filter properties --> - <property name="PGETask/Condition/ExpectedNumOfFiles" value="28"/> - <property name="PGETask/Condition/EpsilonInMillis" value="21600000"/> <!--6hours--> - <property name="PGETask/Condition/MinNumOfFiles" value="2"/> - </configuration> -</workflows> - 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -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. ---> -<cas:workflows - xmlns="http://oodt.jpl.nasa.gov/2.0/cas" - xmlns:cas="http://oodt.jpl.nasa.gov/2.0/cas" - xmlns:p="http://oodt.jpl.nasa.gov/2.0/cas/property"> - - <workflow id="TestWorkflow" execution="sequential"> - <task id-ref="Orbit"/> - <workflow id="tester" execution="sequential"> - <conditions execution="parallel"> - <condition id-ref="cond1"/> - <condition id-ref="cond2"/> - </conditions> - - <parallel> - <workflow id="L0" execution="sequential"> - <task id-ref="L0a"/> - <task id-ref="L0b"/> - <task id-ref="L0c"/> - <task id-ref="L0d"/> - </workflow> - <workflow id-ref="L1a"/> - </parallel> - <sequential> - <task id-ref="Ane"/> - <parallel> - <workflow id-ref="GeoCal"/> - <workflow id-ref="Geo"/> - </parallel> - </sequential> - - <conditions execution="sequential"> - <condition id-ref="cond3"/> - </conditions> - </workflow> - <workflow id-ref="MSPI_L1_Workflow"/> - </workflow> - - <task id="Orbit" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance"/> - <task id="L0a" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,cond1_key,cond2_key"/> - <task id="L0b" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,cond1_key,cond2_key,L0a_key"/> - <task id="L0c" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,cond1_key,cond2_key,L0a_key,L0b_key"/> - <task id="L0d" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,cond1_key,cond2_key,L0a_key,L0b_key,L0c_key"/> - <task id="Ane" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,cond1_key,cond2_key,L0a_key,L0b_key,L0c_key,L0d_key"/> - - <condition id="cond1" p:timeout="200" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance"/> - <condition id="cond2" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance"/> - <condition id="cond3" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="L0a_key,L0b_key,L0c_key,L0d_key,L1aTask_key,Ane_key,GeoCalTask_key,GeoTask_key,cond1_key,cond2_key"/> - - <sequential id="L1a"> - <task id="L1aTask" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,cond1_key,cond2_key"/> - </sequential> - - <workflow id="GeoCal" execution="sequential"> - <task id="GeoCalTask" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,Ane_key,cond1_key,cond2_key,L0b_key,L0c_key,L0d_key"/> - </workflow> - - <workflow id="Geo" execution="sequential"> - <task id="GeoTask" class="gov.nasa.jpl.oodt.cas.workflow.instance.ValidateMetadataInstance" p:validateKey="Orbit_key,Ane_key,cond1_key,cond2_key,L0b_key,L0c_key,L0d_key"/> - </workflow> - -</cas:workflows> \ 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 ([email protected]). - 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 @@ -<?php -/* - * 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. - * -*/ - -/** - * HOOKS.PHP - * - * Hooks provide the ability, as the name implies, to hook into various parts of - * the view rendering process and insert customizations. The contents of these - * functions are run at the appropriate time *EVERY* time a view is rendered, i.e. - * the content of the hooks is not by default view-specific but rather will be - * applied to all views. (However, there is nothing that prevents developers from - * inserting conditional logic inside a hook that then causes view-specific - * them to exhibit view-specific behavior). - * - * As an example, consider a hook that adds the amount of time Balance took to render - * the page as an inline HTML comment at the bottom of each page after it has been sent: - * - * function hook_after_send() { - * $timeStart = $GLOBALS['balance_request_start']; - * $timeNow = microtime(true); - * $elapsed = $timeNow - $timeStart; - * echo "<!-- page rendered in {$elapsed} seconds -->"; - * } - * - * - * 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<!-- page rendered in {$elapsed} seconds -->"; -} 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 @@ -<?php -/* - * 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 - * - * Front-controller - * This file handles the marshalling of requests to the appropriate - * application view. - * - */ -define ("DEBUG", true); // Change this to `false` when no longer debugging - -// Application root directory path (should never need to change this) -define ("HOME", dirname(__FILE__)); - -/* Set up application environment ***************************************/ -require_once("Org/Apache/Oodt/Balance/Boot/bootstrap.php"); - -/* Initialize the application with the settings from config.ini *********/ -$app = $GLOBALS['app'] = App::Create(parse_ini_file(HOME . '/config.ini')); - -/* Initialize any globally required modules here ************************/ -// Example: -// To load a module 'foo', located at ./modules/foo, on every request: -// App::Get()->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 @@ -<?php -/* - * 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. - */ - -/* - * BREADCRUMB DISPLAY WIDGET - * - * Widget to display basic information about the current page. It allows - * users to keep track of their locations within the website. - * - * These breadcrumbs will allow the user to return to parent pages when a - * a link is provided. - * - * Initialization BreadcrumbsWidget: - * $bcw = new BreadcrumbsWidget( $options = array()); - * - * supported options: - * 'separator' => "(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 .= '<span class="crumb link"><a href="'.$bc[1].'">'.$bc[0]."</a></span>{$this->separator}"; - } else { - $str .= '<span class="crumb text">'.$bc.'</span>'; - } - } - } - - 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 @@ -<?php -/* - * 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. - */ - -/* - * Application Footer File - * - * This file represents a sample application footer file that will be displayed - * with every application view (unless the view has explicitly requested - * a different footer file, or no footer at all). To customize the footer - * file, you have two options: - * - * 1) make changes to this file directly - * 2) create a new footer file, and update config.ini to point to it, instead - */ -?> - -<div class="bal_footer"> - Created with OODT Balance v.<?php echo BALANCE_VERSION ?> -</div> -<!-- html closing statements --> -</div> -</body> -</html> 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 @@ -<?php -/* - * 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. - */ - -/* - * Application Header File - * - * This file represents a sample application header file that will be displayed - * with every application view (unless the view has explicitly requested - * a different header file, or no header file at all). To customize the header - * file, you have two options: - * - * 1) make changes to this file directly - * 2) create a new header file, and update config.ini to point to it, instead - */ -?> -<!DOCTYPE html> -<html> -<head> -<title>Untitled OODT Balance Application</title> - -<!-- Base stylesheets --> -<link rel="stylesheet" type="text/css" href="<?php echo SITE_ROOT .'/static/css/balance/balance.css'?>"/> - -<!-- Base Javascript --> - -<!-- Dynamically Added Stylesheets --> -<!-- STYLESHEETS --> - -<!-- Dynamically Added Javascripts --> -<!-- JAVASCRIPTS --> - -<!-- Site specific stylesheet overrides --> -<link rel="stylesheet" type="text/css" href="<?php echo SITE_ROOT .'/static/css/site.css'?>"/> - -</head> -<body> -<div class="container"> -<?php - // This retrieves any 'flash' messages that should be displayed to the user - echo App::Get()->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 @@ -<?php -/* - * 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. - */ - -// Prepare BreadcrumbsWigdet -require_once( HOME . '/scripts/widgets/BreadcrumbsWidget.php'); -$bcw = new BreadcrumbsWidget(); -$bcw->add('Home',SITE_ROOT . '/'); -$bcw->add('Access Forbidden'); -?> - -<div id="page_content"> - <h2> 403 Access Forbidden </h2> - <h5> You are not authorized to view the requested resource. If you feel this is in error, please - contact the webmaster for this site </h5> -</div> 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 @@ -<?php -/* - * 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. - */ - -// Prepare BreadcrumbsWigdet -require_once( HOME . '/scripts/widgets/BreadcrumbsWidget.php'); -$bcw = new BreadcrumbsWidget(); -$bcw->add('Home',SITE_ROOT . '/'); -$bcw->add('Not Found'); -?> - -<div id="page_content"> - <h2> 404 Not Found </h2> - <h5> The requested resource (<?php echo App::Get()->request->uri?>) does not exist.</h5> -</div> 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 @@ -<!-- -/* - * 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. - */ ---> -<p> </p> -<h1>Hello from OODT Balance</h1> - -<div class="box"> - <h5>To configure your application:</h5> - <code>file://<?php echo HOME?>/config.ini</code> -</div> - -<div class="box"> - <h5>To edit this view:</h5> - <code>file://<?php echo HOME?>/views/index.php</code> -</div> - -<div class="box"> - <h5>For more information:</h5> - <a href="http://oodt.apache.org">http://oodt.apache.org</a> -</div> 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 @@ -<?php -/* - * 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 - * - * Bootstrap file to provide all framework base files necessary to - * satisfy a resource request. - * - * @author ahart - * - */ - -define("BALANCE_VERSION", '0.3-SNAPSHOT'); - -// Include Required Framework Interfaces -include("Org/Apache/Oodt/Balance/Interfaces/IApplicationWidget.php"); -include("Org/Apache/Oodt/Balance/Interfaces/IApplicationDataProvider.php"); -include("Org/Apache/Oodt/Balance/Interfaces/IApplicationAuthenticationProvider.php"); -include("Org/Apache/Oodt/Balance/Interfaces/IApplicationAuthorizationProvider.php"); - -// Include Required Framework Classes -include("Org/Apache/Oodt/Balance/Core/Application.class.php"); -include("Org/Apache/Oodt/Balance/Core/ApplicationRequest.class.php"); -include("Org/Apache/Oodt/Balance/Core/ApplicationResponse.class.php"); -include("Org/Apache/Oodt/Balance/Core/ApplicationDataResponse.class.php"); - - -class App { - - protected static $app = null; - - public static function Create($config) { - if (!self::$app) { - self::$app = new Org_Apache_Oodt_Balance_Core_Application($config); - } - return self::$app; - } - - public static function Get() { - return self::$app; - } -}
