You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sa...@apache.org on 2013/01/10 00:58:41 UTC

svn commit: r1431158 - in /airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api: AiravataAPIUnimplementedException.java ExperimentAdvanceOptions.java

Author: samindaw
Date: Wed Jan  9 23:58:40 2013
New Revision: 1431158

URL: http://svn.apache.org/viewvc?rev=1431158&view=rev
Log:
adding our own unimplemented exception for the api

Added:
    airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/AiravataAPIUnimplementedException.java   (with props)
Modified:
    airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExperimentAdvanceOptions.java

Added: airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/AiravataAPIUnimplementedException.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/AiravataAPIUnimplementedException.java?rev=1431158&view=auto
==============================================================================
--- airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/AiravataAPIUnimplementedException.java (added)
+++ airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/AiravataAPIUnimplementedException.java Wed Jan  9 23:58:40 2013
@@ -0,0 +1,33 @@
+/*
+ *
+ * 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.airavata.client.api;
+
+public class AiravataAPIUnimplementedException extends
+		AiravataAPIInvocationException {
+
+	private static final long serialVersionUID = -8233342290087971830L;
+
+	public AiravataAPIUnimplementedException(String message) {
+		super(message);
+	}
+
+}

Propchange: airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/AiravataAPIUnimplementedException.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExperimentAdvanceOptions.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExperimentAdvanceOptions.java?rev=1431158&r1=1431157&r2=1431158&view=diff
==============================================================================
--- airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExperimentAdvanceOptions.java (original)
+++ airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExperimentAdvanceOptions.java Wed Jan  9 23:58:40 2013
@@ -26,9 +26,6 @@ import java.util.UUID;
 import org.apache.airavata.client.impl.WorkflowOutputDataSettingsImpl;
 import org.apache.airavata.client.impl.WorkflowSchedulingSettingsImpl;
 
-import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-
-
 public class ExperimentAdvanceOptions {
 	private String executionUser;
 	private String metadata;
@@ -152,6 +149,6 @@ public class ExperimentAdvanceOptions {
 	 * @throws AiravataAPIInvocationException
 	 */
 	public SecuritySettings getCustomSecuritySettings() throws AiravataAPIInvocationException{
-		throw new AiravataAPIInvocationException(new NotImplementedException());
+		throw new AiravataAPIUnimplementedException("Customizing security is not supported by the client in this binary!!!");
 	}
 }