airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [2/4] airavata git commit: fixing AIRAVATA-2185 : Add OWNER ResourcePermissionType to sharing API
Date Fri, 11 Nov 2016 17:24:12 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/177a2484/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h
b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h
index fb83b87..94d408e 100644
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h
+++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h
@@ -713,6 +713,48 @@ class AiravataIf {
   virtual void getExperiment( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId) = 0;
 
   /**
+   *   *
+   *   * Get Experiment by an admin user
+   *   *
+   *   * Used by an admin user to fetch previously created experiment metadata.
+   *   *
+   *   * @param airavataExperimentId
+   *   *    The unique identifier of the requested experiment. This ID is returned during
the create experiment step.
+   *   *
+   *   * @return ExperimentModel
+   *   *   This method will return the previously stored experiment metadata.
+   *   *
+   *   * @throws org.apache.airavata.model.error.InvalidRequestException
+   *   *    For any incorrect forming of the request itself.
+   *   *
+   *   * @throws org.apache.airavata.model.error.ExperimentNotFoundException
+   *   *    If the specified experiment is not previously created, then an Experiment Not
Found Exception is thrown.
+   *   *
+   *   * @throws org.apache.airavata.model.error.AiravataClientException
+   *   *    The following list of exceptions are thrown which Airavata Client can take corrective
actions to resolve:
+   *   *
+   *   *      UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one
time administrative
+   *   *         step, then Airavata Registry will not have a provenance area setup. The
client has to follow
+   *   *         gateway registration steps and retry this request.
+   *   *
+   *   *      AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be
determined.
+   *   *         For now this is a place holder.
+   *   *
+   *   *      INVALID_AUTHORIZATION - This will throw an authorization exception. When a
more robust security hand-shake
+   *   *         is implemented, the authorization will be more substantial.
+   *   *
+   *   * @throws org.apache.airavata.model.error.AiravataSystemException
+   *   *    This exception will be thrown for any Airavata Server side issues and if the
problem cannot be corrected by the client
+   *   *       rather an Airavata Administrator will be notified to take corrective action.
+   *   *
+   * *
+   * 
+   * @param authzToken
+   * @param airavataExperimentId
+   */
+  virtual void getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId) = 0;
+
+  /**
    * 
    * Get Complete Experiment Details
    * Fetch the completed nested tree structue of previously created experiment metadata which
includes processes ->
@@ -1018,6 +1060,57 @@ class AiravataIf {
 
   /**
    * 
+   * Clone an Existing Experiment by an admin user
+   * Existing specified experiment is cloned and a new name is provided. A copy of the experiment
configuration is made and is persisted with new metadata.
+   *   The client has to subsequently update this configuration if needed and launch the
cloned experiment.
+   * 
+   * @param newExperimentName
+   *    experiment name that should be used in the cloned experiment
+   * 
+   * @param updatedExperiment
+   *    Once an experiment is cloned, to disambiguate, the users are suggested to provide
new metadata. This will again require
+   *      the basic experiment metadata like the name and description, intended user, the
gateway identifier and if the experiment
+   *      should be shared public by default.
+   * @param newExperimentProjectId
+   *    The project in which to create the cloned experiment. This is optional and if null
the experiment will be created
+   *      in the same project as the existing experiment.
+   * 
+   * @return
+   *   The server-side generated.airavata.registry.core.experiment.globally unique identifier
(Experiment ID) for the newly cloned experiment.
+   * 
+   * @throws org.apache.airavata.model.error.InvalidRequestException
+   *    For any incorrect forming of the request itself.
+   * 
+   * @throws org.apache.airavata.model.error.ExperimentNotFoundException
+   *    If the specified experiment is not previously created, then an Experiment Not Found
Exception is thrown.
+   * 
+   * @throws org.apache.airavata.model.error.AiravataClientException
+   *    The following list of exceptions are thrown which Airavata Client can take corrective
actions to resolve:
+   * 
+   *      UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time
administrative
+   *         step, then Airavata Registry will not have a provenance area setup. The client
has to follow
+   *         gateway registration steps and retry this request.
+   * 
+   *      AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined.
+   *         For now this is a place holder.
+   * 
+   *      INVALID_AUTHORIZATION - This will throw an authorization exception. When a more
robust security hand-shake
+   *         is implemented, the authorization will be more substantial.
+   * 
+   * @throws org.apache.airavata.model.error.AiravataSystemException
+   *    This exception will be thrown for any Airavata Server side issues and if the problem
cannot be corrected by the client
+   *       rather an Airavata Administrator will be notified to take corrective action.
+   * 
+   * 
+   * @param authzToken
+   * @param existingExperimentID
+   * @param newExperimentName
+   * @param newExperimentProjectId
+   */
+  virtual void cloneExperimentByAdmin(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId) = 0;
+
+  /**
+   * 
    * Terminate a running Experiment.
    * 
    * @gatewayId
@@ -3028,6 +3121,9 @@ class AiravataNull : virtual public AiravataIf {
   void getExperiment( ::apache::airavata::model::experiment::ExperimentModel& /* _return
*/, const  ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string&
/* airavataExperimentId */) {
     return;
   }
+  void getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
/* _return */, const  ::apache::airavata::model::security::AuthzToken& /* authzToken */,
const std::string& /* airavataExperimentId */) {
+    return;
+  }
   void getDetailedExperimentTree( ::apache::airavata::model::experiment::ExperimentModel&
/* _return */, const  ::apache::airavata::model::security::AuthzToken& /* authzToken */,
const std::string& /* airavataExperimentId */) {
     return;
   }
@@ -3065,6 +3161,9 @@ class AiravataNull : virtual public AiravataIf {
   void cloneExperiment(std::string& /* _return */, const  ::apache::airavata::model::security::AuthzToken&
/* authzToken */, const std::string& /* existingExperimentID */, const std::string&
/* newExperimentName */, const std::string& /* newExperimentProjectId */) {
     return;
   }
+  void cloneExperimentByAdmin(std::string& /* _return */, const  ::apache::airavata::model::security::AuthzToken&
/* authzToken */, const std::string& /* existingExperimentID */, const std::string&
/* newExperimentName */, const std::string& /* newExperimentProjectId */) {
+    return;
+  }
   void terminateExperiment(const  ::apache::airavata::model::security::AuthzToken& /*
authzToken */, const std::string& /* airavataExperimentId */, const std::string& /*
gatewayId */) {
     return;
   }
@@ -8674,6 +8773,150 @@ class Airavata_getExperiment_presult {
 };
 
 
+class Airavata_getExperimentByAdmin_args {
+ public:
+
+  Airavata_getExperimentByAdmin_args(const Airavata_getExperimentByAdmin_args&);
+  Airavata_getExperimentByAdmin_args& operator=(const Airavata_getExperimentByAdmin_args&);
+  Airavata_getExperimentByAdmin_args() : airavataExperimentId() {
+  }
+
+  virtual ~Airavata_getExperimentByAdmin_args() throw();
+   ::apache::airavata::model::security::AuthzToken authzToken;
+  std::string airavataExperimentId;
+
+  void __set_authzToken(const  ::apache::airavata::model::security::AuthzToken& val);
+
+  void __set_airavataExperimentId(const std::string& val);
+
+  bool operator == (const Airavata_getExperimentByAdmin_args & rhs) const
+  {
+    if (!(authzToken == rhs.authzToken))
+      return false;
+    if (!(airavataExperimentId == rhs.airavataExperimentId))
+      return false;
+    return true;
+  }
+  bool operator != (const Airavata_getExperimentByAdmin_args &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const Airavata_getExperimentByAdmin_args & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class Airavata_getExperimentByAdmin_pargs {
+ public:
+
+
+  virtual ~Airavata_getExperimentByAdmin_pargs() throw();
+  const  ::apache::airavata::model::security::AuthzToken* authzToken;
+  const std::string* airavataExperimentId;
+
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _Airavata_getExperimentByAdmin_result__isset {
+  _Airavata_getExperimentByAdmin_result__isset() : success(false), ire(false), enf(false),
ace(false), ase(false), ae(false) {}
+  bool success :1;
+  bool ire :1;
+  bool enf :1;
+  bool ace :1;
+  bool ase :1;
+  bool ae :1;
+} _Airavata_getExperimentByAdmin_result__isset;
+
+class Airavata_getExperimentByAdmin_result {
+ public:
+
+  Airavata_getExperimentByAdmin_result(const Airavata_getExperimentByAdmin_result&);
+  Airavata_getExperimentByAdmin_result& operator=(const Airavata_getExperimentByAdmin_result&);
+  Airavata_getExperimentByAdmin_result() {
+  }
+
+  virtual ~Airavata_getExperimentByAdmin_result() throw();
+   ::apache::airavata::model::experiment::ExperimentModel success;
+   ::apache::airavata::api::error::InvalidRequestException ire;
+   ::apache::airavata::api::error::ExperimentNotFoundException enf;
+   ::apache::airavata::api::error::AiravataClientException ace;
+   ::apache::airavata::api::error::AiravataSystemException ase;
+   ::apache::airavata::api::error::AuthorizationException ae;
+
+  _Airavata_getExperimentByAdmin_result__isset __isset;
+
+  void __set_success(const  ::apache::airavata::model::experiment::ExperimentModel& val);
+
+  void __set_ire(const  ::apache::airavata::api::error::InvalidRequestException& val);
+
+  void __set_enf(const  ::apache::airavata::api::error::ExperimentNotFoundException&
val);
+
+  void __set_ace(const  ::apache::airavata::api::error::AiravataClientException& val);
+
+  void __set_ase(const  ::apache::airavata::api::error::AiravataSystemException& val);
+
+  void __set_ae(const  ::apache::airavata::api::error::AuthorizationException& val);
+
+  bool operator == (const Airavata_getExperimentByAdmin_result & rhs) const
+  {
+    if (!(success == rhs.success))
+      return false;
+    if (!(ire == rhs.ire))
+      return false;
+    if (!(enf == rhs.enf))
+      return false;
+    if (!(ace == rhs.ace))
+      return false;
+    if (!(ase == rhs.ase))
+      return false;
+    if (!(ae == rhs.ae))
+      return false;
+    return true;
+  }
+  bool operator != (const Airavata_getExperimentByAdmin_result &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const Airavata_getExperimentByAdmin_result & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _Airavata_getExperimentByAdmin_presult__isset {
+  _Airavata_getExperimentByAdmin_presult__isset() : success(false), ire(false), enf(false),
ace(false), ase(false), ae(false) {}
+  bool success :1;
+  bool ire :1;
+  bool enf :1;
+  bool ace :1;
+  bool ase :1;
+  bool ae :1;
+} _Airavata_getExperimentByAdmin_presult__isset;
+
+class Airavata_getExperimentByAdmin_presult {
+ public:
+
+
+  virtual ~Airavata_getExperimentByAdmin_presult() throw();
+   ::apache::airavata::model::experiment::ExperimentModel* success;
+   ::apache::airavata::api::error::InvalidRequestException ire;
+   ::apache::airavata::api::error::ExperimentNotFoundException enf;
+   ::apache::airavata::api::error::AiravataClientException ace;
+   ::apache::airavata::api::error::AiravataSystemException ase;
+   ::apache::airavata::api::error::AuthorizationException ae;
+
+  _Airavata_getExperimentByAdmin_presult__isset __isset;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
+
 class Airavata_getDetailedExperimentTree_args {
  public:
 
@@ -10357,6 +10600,178 @@ class Airavata_cloneExperiment_presult {
 
 };
 
+typedef struct _Airavata_cloneExperimentByAdmin_args__isset {
+  _Airavata_cloneExperimentByAdmin_args__isset() : existingExperimentID(false), newExperimentName(false),
newExperimentProjectId(false) {}
+  bool existingExperimentID :1;
+  bool newExperimentName :1;
+  bool newExperimentProjectId :1;
+} _Airavata_cloneExperimentByAdmin_args__isset;
+
+class Airavata_cloneExperimentByAdmin_args {
+ public:
+
+  Airavata_cloneExperimentByAdmin_args(const Airavata_cloneExperimentByAdmin_args&);
+  Airavata_cloneExperimentByAdmin_args& operator=(const Airavata_cloneExperimentByAdmin_args&);
+  Airavata_cloneExperimentByAdmin_args() : existingExperimentID(), newExperimentName(), newExperimentProjectId()
{
+  }
+
+  virtual ~Airavata_cloneExperimentByAdmin_args() throw();
+   ::apache::airavata::model::security::AuthzToken authzToken;
+  std::string existingExperimentID;
+  std::string newExperimentName;
+  std::string newExperimentProjectId;
+
+  _Airavata_cloneExperimentByAdmin_args__isset __isset;
+
+  void __set_authzToken(const  ::apache::airavata::model::security::AuthzToken& val);
+
+  void __set_existingExperimentID(const std::string& val);
+
+  void __set_newExperimentName(const std::string& val);
+
+  void __set_newExperimentProjectId(const std::string& val);
+
+  bool operator == (const Airavata_cloneExperimentByAdmin_args & rhs) const
+  {
+    if (!(authzToken == rhs.authzToken))
+      return false;
+    if (!(existingExperimentID == rhs.existingExperimentID))
+      return false;
+    if (!(newExperimentName == rhs.newExperimentName))
+      return false;
+    if (!(newExperimentProjectId == rhs.newExperimentProjectId))
+      return false;
+    return true;
+  }
+  bool operator != (const Airavata_cloneExperimentByAdmin_args &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const Airavata_cloneExperimentByAdmin_args & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class Airavata_cloneExperimentByAdmin_pargs {
+ public:
+
+
+  virtual ~Airavata_cloneExperimentByAdmin_pargs() throw();
+  const  ::apache::airavata::model::security::AuthzToken* authzToken;
+  const std::string* existingExperimentID;
+  const std::string* newExperimentName;
+  const std::string* newExperimentProjectId;
+
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _Airavata_cloneExperimentByAdmin_result__isset {
+  _Airavata_cloneExperimentByAdmin_result__isset() : success(false), ire(false), enf(false),
ace(false), ase(false), ae(false), pnfe(false) {}
+  bool success :1;
+  bool ire :1;
+  bool enf :1;
+  bool ace :1;
+  bool ase :1;
+  bool ae :1;
+  bool pnfe :1;
+} _Airavata_cloneExperimentByAdmin_result__isset;
+
+class Airavata_cloneExperimentByAdmin_result {
+ public:
+
+  Airavata_cloneExperimentByAdmin_result(const Airavata_cloneExperimentByAdmin_result&);
+  Airavata_cloneExperimentByAdmin_result& operator=(const Airavata_cloneExperimentByAdmin_result&);
+  Airavata_cloneExperimentByAdmin_result() : success() {
+  }
+
+  virtual ~Airavata_cloneExperimentByAdmin_result() throw();
+  std::string success;
+   ::apache::airavata::api::error::InvalidRequestException ire;
+   ::apache::airavata::api::error::ExperimentNotFoundException enf;
+   ::apache::airavata::api::error::AiravataClientException ace;
+   ::apache::airavata::api::error::AiravataSystemException ase;
+   ::apache::airavata::api::error::AuthorizationException ae;
+   ::apache::airavata::api::error::ProjectNotFoundException pnfe;
+
+  _Airavata_cloneExperimentByAdmin_result__isset __isset;
+
+  void __set_success(const std::string& val);
+
+  void __set_ire(const  ::apache::airavata::api::error::InvalidRequestException& val);
+
+  void __set_enf(const  ::apache::airavata::api::error::ExperimentNotFoundException&
val);
+
+  void __set_ace(const  ::apache::airavata::api::error::AiravataClientException& val);
+
+  void __set_ase(const  ::apache::airavata::api::error::AiravataSystemException& val);
+
+  void __set_ae(const  ::apache::airavata::api::error::AuthorizationException& val);
+
+  void __set_pnfe(const  ::apache::airavata::api::error::ProjectNotFoundException& val);
+
+  bool operator == (const Airavata_cloneExperimentByAdmin_result & rhs) const
+  {
+    if (!(success == rhs.success))
+      return false;
+    if (!(ire == rhs.ire))
+      return false;
+    if (!(enf == rhs.enf))
+      return false;
+    if (!(ace == rhs.ace))
+      return false;
+    if (!(ase == rhs.ase))
+      return false;
+    if (!(ae == rhs.ae))
+      return false;
+    if (!(pnfe == rhs.pnfe))
+      return false;
+    return true;
+  }
+  bool operator != (const Airavata_cloneExperimentByAdmin_result &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const Airavata_cloneExperimentByAdmin_result & ) const;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+  uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _Airavata_cloneExperimentByAdmin_presult__isset {
+  _Airavata_cloneExperimentByAdmin_presult__isset() : success(false), ire(false), enf(false),
ace(false), ase(false), ae(false), pnfe(false) {}
+  bool success :1;
+  bool ire :1;
+  bool enf :1;
+  bool ace :1;
+  bool ase :1;
+  bool ae :1;
+  bool pnfe :1;
+} _Airavata_cloneExperimentByAdmin_presult__isset;
+
+class Airavata_cloneExperimentByAdmin_presult {
+ public:
+
+
+  virtual ~Airavata_cloneExperimentByAdmin_presult() throw();
+  std::string* success;
+   ::apache::airavata::api::error::InvalidRequestException ire;
+   ::apache::airavata::api::error::ExperimentNotFoundException enf;
+   ::apache::airavata::api::error::AiravataClientException ace;
+   ::apache::airavata::api::error::AiravataSystemException ase;
+   ::apache::airavata::api::error::AuthorizationException ae;
+   ::apache::airavata::api::error::ProjectNotFoundException pnfe;
+
+  _Airavata_cloneExperimentByAdmin_presult__isset __isset;
+
+  uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
 typedef struct _Airavata_terminateExperiment_args__isset {
   _Airavata_terminateExperiment_args__isset() : airavataExperimentId(false), gatewayId(false)
{}
   bool airavataExperimentId :1;
@@ -27246,6 +27661,9 @@ class AiravataClient : virtual public AiravataIf {
   void getExperiment( ::apache::airavata::model::experiment::ExperimentModel& _return,
const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId);
   void send_getExperiment(const  ::apache::airavata::model::security::AuthzToken& authzToken,
const std::string& airavataExperimentId);
   void recv_getExperiment( ::apache::airavata::model::experiment::ExperimentModel& _return);
+  void getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId);
+  void send_getExperimentByAdmin(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId);
+  void recv_getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return);
   void getDetailedExperimentTree( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId);
   void send_getDetailedExperimentTree(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId);
   void recv_getDetailedExperimentTree( ::apache::airavata::model::experiment::ExperimentModel&
_return);
@@ -27282,6 +27700,9 @@ class AiravataClient : virtual public AiravataIf {
   void cloneExperiment(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
   void send_cloneExperiment(const  ::apache::airavata::model::security::AuthzToken& authzToken,
const std::string& existingExperimentID, const std::string& newExperimentName, const
std::string& newExperimentProjectId);
   void recv_cloneExperiment(std::string& _return);
+  void cloneExperimentByAdmin(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
+  void send_cloneExperimentByAdmin(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
+  void recv_cloneExperimentByAdmin(std::string& _return);
   void terminateExperiment(const  ::apache::airavata::model::security::AuthzToken& authzToken,
const std::string& airavataExperimentId, const std::string& gatewayId);
   void send_terminateExperiment(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId, const std::string& gatewayId);
   void recv_terminateExperiment();
@@ -27691,6 +28112,7 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor
{
   void process_createExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_deleteExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_getExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+  void process_getExperimentByAdmin(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_getDetailedExperimentTree(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_updateExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_updateExperimentConfiguration(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -27703,6 +28125,7 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor
{
   void process_getJobStatuses(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_getJobDetails(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_cloneExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot,
::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+  void process_cloneExperimentByAdmin(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_terminateExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_registerApplicationModule(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
   void process_getApplicationModule(int32_t seqid, ::apache::thrift::protocol::TProtocol*
iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -27862,6 +28285,7 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor
{
     processMap_["createExperiment"] = &AiravataProcessor::process_createExperiment;
     processMap_["deleteExperiment"] = &AiravataProcessor::process_deleteExperiment;
     processMap_["getExperiment"] = &AiravataProcessor::process_getExperiment;
+    processMap_["getExperimentByAdmin"] = &AiravataProcessor::process_getExperimentByAdmin;
     processMap_["getDetailedExperimentTree"] = &AiravataProcessor::process_getDetailedExperimentTree;
     processMap_["updateExperiment"] = &AiravataProcessor::process_updateExperiment;
     processMap_["updateExperimentConfiguration"] = &AiravataProcessor::process_updateExperimentConfiguration;
@@ -27874,6 +28298,7 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor
{
     processMap_["getJobStatuses"] = &AiravataProcessor::process_getJobStatuses;
     processMap_["getJobDetails"] = &AiravataProcessor::process_getJobDetails;
     processMap_["cloneExperiment"] = &AiravataProcessor::process_cloneExperiment;
+    processMap_["cloneExperimentByAdmin"] = &AiravataProcessor::process_cloneExperimentByAdmin;
     processMap_["terminateExperiment"] = &AiravataProcessor::process_terminateExperiment;
     processMap_["registerApplicationModule"] = &AiravataProcessor::process_registerApplicationModule;
     processMap_["getApplicationModule"] = &AiravataProcessor::process_getApplicationModule;
@@ -28380,6 +28805,16 @@ class AiravataMultiface : virtual public AiravataIf {
     return;
   }
 
+  void getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId) {
+    size_t sz = ifaces_.size();
+    size_t i = 0;
+    for (; i < (sz - 1); ++i) {
+      ifaces_[i]->getExperimentByAdmin(_return, authzToken, airavataExperimentId);
+    }
+    ifaces_[i]->getExperimentByAdmin(_return, authzToken, airavataExperimentId);
+    return;
+  }
+
   void getDetailedExperimentTree( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId) {
     size_t sz = ifaces_.size();
     size_t i = 0;
@@ -28495,6 +28930,16 @@ class AiravataMultiface : virtual public AiravataIf {
     return;
   }
 
+  void cloneExperimentByAdmin(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId) {
+    size_t sz = ifaces_.size();
+    size_t i = 0;
+    for (; i < (sz - 1); ++i) {
+      ifaces_[i]->cloneExperimentByAdmin(_return, authzToken, existingExperimentID, newExperimentName,
newExperimentProjectId);
+    }
+    ifaces_[i]->cloneExperimentByAdmin(_return, authzToken, existingExperimentID, newExperimentName,
newExperimentProjectId);
+    return;
+  }
+
   void terminateExperiment(const  ::apache::airavata::model::security::AuthzToken& authzToken,
const std::string& airavataExperimentId, const std::string& gatewayId) {
     size_t sz = ifaces_.size();
     size_t i = 0;
@@ -29774,6 +30219,9 @@ class AiravataConcurrentClient : virtual public AiravataIf {
   void getExperiment( ::apache::airavata::model::experiment::ExperimentModel& _return,
const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId);
   int32_t send_getExperiment(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId);
   void recv_getExperiment( ::apache::airavata::model::experiment::ExperimentModel& _return,
const int32_t seqid);
+  void getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId);
+  int32_t send_getExperimentByAdmin(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId);
+  void recv_getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return, const int32_t seqid);
   void getDetailedExperimentTree( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId);
   int32_t send_getDetailedExperimentTree(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId);
   void recv_getDetailedExperimentTree( ::apache::airavata::model::experiment::ExperimentModel&
_return, const int32_t seqid);
@@ -29810,6 +30258,9 @@ class AiravataConcurrentClient : virtual public AiravataIf {
   void cloneExperiment(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
   int32_t send_cloneExperiment(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
   void recv_cloneExperiment(std::string& _return, const int32_t seqid);
+  void cloneExperimentByAdmin(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
+  int32_t send_cloneExperimentByAdmin(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId);
+  void recv_cloneExperimentByAdmin(std::string& _return, const int32_t seqid);
   void terminateExperiment(const  ::apache::airavata::model::security::AuthzToken& authzToken,
const std::string& airavataExperimentId, const std::string& gatewayId);
   int32_t send_terminateExperiment(const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& airavataExperimentId, const std::string& gatewayId);
   void recv_terminateExperiment(const int32_t seqid);

http://git-wip-us.apache.org/repos/asf/airavata/blob/177a2484/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp
b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp
index 2a0bec1..d6031ff 100644
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp
+++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp
@@ -830,6 +830,51 @@ class AiravataHandler : virtual public AiravataIf {
   }
 
   /**
+   *   *
+   *   * Get Experiment by an admin user
+   *   *
+   *   * Used by an admin user to fetch previously created experiment metadata.
+   *   *
+   *   * @param airavataExperimentId
+   *   *    The unique identifier of the requested experiment. This ID is returned during
the create experiment step.
+   *   *
+   *   * @return ExperimentModel
+   *   *   This method will return the previously stored experiment metadata.
+   *   *
+   *   * @throws org.apache.airavata.model.error.InvalidRequestException
+   *   *    For any incorrect forming of the request itself.
+   *   *
+   *   * @throws org.apache.airavata.model.error.ExperimentNotFoundException
+   *   *    If the specified experiment is not previously created, then an Experiment Not
Found Exception is thrown.
+   *   *
+   *   * @throws org.apache.airavata.model.error.AiravataClientException
+   *   *    The following list of exceptions are thrown which Airavata Client can take corrective
actions to resolve:
+   *   *
+   *   *      UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one
time administrative
+   *   *         step, then Airavata Registry will not have a provenance area setup. The
client has to follow
+   *   *         gateway registration steps and retry this request.
+   *   *
+   *   *      AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be
determined.
+   *   *         For now this is a place holder.
+   *   *
+   *   *      INVALID_AUTHORIZATION - This will throw an authorization exception. When a
more robust security hand-shake
+   *   *         is implemented, the authorization will be more substantial.
+   *   *
+   *   * @throws org.apache.airavata.model.error.AiravataSystemException
+   *   *    This exception will be thrown for any Airavata Server side issues and if the
problem cannot be corrected by the client
+   *   *       rather an Airavata Administrator will be notified to take corrective action.
+   *   *
+   * *
+   * 
+   * @param authzToken
+   * @param airavataExperimentId
+   */
+  void getExperimentByAdmin( ::apache::airavata::model::experiment::ExperimentModel&
_return, const  ::apache::airavata::model::security::AuthzToken& authzToken, const std::string&
airavataExperimentId) {
+    // Your implementation goes here
+    printf("getExperimentByAdmin\n");
+  }
+
+  /**
    * 
    * Get Complete Experiment Details
    * Fetch the completed nested tree structue of previously created experiment metadata which
includes processes ->
@@ -1173,6 +1218,60 @@ class AiravataHandler : virtual public AiravataIf {
 
   /**
    * 
+   * Clone an Existing Experiment by an admin user
+   * Existing specified experiment is cloned and a new name is provided. A copy of the experiment
configuration is made and is persisted with new metadata.
+   *   The client has to subsequently update this configuration if needed and launch the
cloned experiment.
+   * 
+   * @param newExperimentName
+   *    experiment name that should be used in the cloned experiment
+   * 
+   * @param updatedExperiment
+   *    Once an experiment is cloned, to disambiguate, the users are suggested to provide
new metadata. This will again require
+   *      the basic experiment metadata like the name and description, intended user, the
gateway identifier and if the experiment
+   *      should be shared public by default.
+   * @param newExperimentProjectId
+   *    The project in which to create the cloned experiment. This is optional and if null
the experiment will be created
+   *      in the same project as the existing experiment.
+   * 
+   * @return
+   *   The server-side generated.airavata.registry.core.experiment.globally unique identifier
(Experiment ID) for the newly cloned experiment.
+   * 
+   * @throws org.apache.airavata.model.error.InvalidRequestException
+   *    For any incorrect forming of the request itself.
+   * 
+   * @throws org.apache.airavata.model.error.ExperimentNotFoundException
+   *    If the specified experiment is not previously created, then an Experiment Not Found
Exception is thrown.
+   * 
+   * @throws org.apache.airavata.model.error.AiravataClientException
+   *    The following list of exceptions are thrown which Airavata Client can take corrective
actions to resolve:
+   * 
+   *      UNKNOWN_GATEWAY_ID - If a Gateway is not registered with Airavata as a one time
administrative
+   *         step, then Airavata Registry will not have a provenance area setup. The client
has to follow
+   *         gateway registration steps and retry this request.
+   * 
+   *      AUTHENTICATION_FAILURE - How Authentication will be implemented is yet to be determined.
+   *         For now this is a place holder.
+   * 
+   *      INVALID_AUTHORIZATION - This will throw an authorization exception. When a more
robust security hand-shake
+   *         is implemented, the authorization will be more substantial.
+   * 
+   * @throws org.apache.airavata.model.error.AiravataSystemException
+   *    This exception will be thrown for any Airavata Server side issues and if the problem
cannot be corrected by the client
+   *       rather an Airavata Administrator will be notified to take corrective action.
+   * 
+   * 
+   * @param authzToken
+   * @param existingExperimentID
+   * @param newExperimentName
+   * @param newExperimentProjectId
+   */
+  void cloneExperimentByAdmin(std::string& _return, const  ::apache::airavata::model::security::AuthzToken&
authzToken, const std::string& existingExperimentID, const std::string& newExperimentName,
const std::string& newExperimentProjectId) {
+    // Your implementation goes here
+    printf("cloneExperimentByAdmin\n");
+  }
+
+  /**
+   * 
    * Terminate a running Experiment.
    * 
    * @gatewayId

http://git-wip-us.apache.org/repos/asf/airavata/blob/177a2484/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
index 8f2d18d..e94cb57 100644
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
+++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
@@ -46,13 +46,15 @@ const std::map<int, const char*> _ResourceType_VALUES_TO_NAMES(::apache::thrift:
 
 int _kResourcePermissionTypeValues[] = {
   ResourcePermissionType::WRITE,
-  ResourcePermissionType::READ
+  ResourcePermissionType::READ,
+  ResourcePermissionType::OWNER
 };
 const char* _kResourcePermissionTypeNames[] = {
   "WRITE",
-  "READ"
+  "READ",
+  "OWNER"
 };
-const std::map<int, const char*> _ResourcePermissionType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2,
_kResourcePermissionTypeValues, _kResourcePermissionTypeNames), ::apache::thrift::TEnumIterator(-1,
NULL, NULL));
+const std::map<int, const char*> _ResourcePermissionType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3,
_kResourcePermissionTypeValues, _kResourcePermissionTypeNames), ::apache::thrift::TEnumIterator(-1,
NULL, NULL));
 
 
 GroupModel::~GroupModel() throw() {

http://git-wip-us.apache.org/repos/asf/airavata/blob/177a2484/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
index e2e61b3..b3c3dd1 100644
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
+++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
@@ -51,7 +51,8 @@ extern const std::map<int, const char*> _ResourceType_VALUES_TO_NAMES;
 struct ResourcePermissionType {
   enum type {
     WRITE = 0,
-    READ = 1
+    READ = 1,
+    OWNER = 2
   };
 };
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/177a2484/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Group/Types.php
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Group/Types.php
b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Group/Types.php
index 44f3db0..ec7a68e 100644
--- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Group/Types.php
+++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Group/Types.php
@@ -33,9 +33,11 @@ final class ResourceType {
 final class ResourcePermissionType {
   const WRITE = 0;
   const READ = 1;
+  const OWNER = 2;
   static public $__names = array(
     0 => 'WRITE',
     1 => 'READ',
+    2 => 'OWNER',
   );
 }
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/177a2484/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
index c545a8f..d3d9d42 100755
--- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
+++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
@@ -61,6 +61,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('  string createExperiment(AuthzToken authzToken, string gatewayId, ExperimentModel
experiment)')
   print('  bool deleteExperiment(AuthzToken authzToken, string experimentId)')
   print('  ExperimentModel getExperiment(AuthzToken authzToken, string airavataExperimentId)')
+  print('  ExperimentModel getExperimentByAdmin(AuthzToken authzToken, string airavataExperimentId)')
   print('  ExperimentModel getDetailedExperimentTree(AuthzToken authzToken, string airavataExperimentId)')
   print('  void updateExperiment(AuthzToken authzToken, string airavataExperimentId, ExperimentModel
experiment)')
   print('  void updateExperimentConfiguration(AuthzToken authzToken, string airavataExperimentId,
UserConfigurationDataModel userConfiguration)')
@@ -73,6 +74,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('   getJobStatuses(AuthzToken authzToken, string airavataExperimentId)')
   print('   getJobDetails(AuthzToken authzToken, string airavataExperimentId)')
   print('  string cloneExperiment(AuthzToken authzToken, string existingExperimentID, string
newExperimentName, string newExperimentProjectId)')
+  print('  string cloneExperimentByAdmin(AuthzToken authzToken, string existingExperimentID,
string newExperimentName, string newExperimentProjectId)')
   print('  void terminateExperiment(AuthzToken authzToken, string airavataExperimentId, string
gatewayId)')
   print('  string registerApplicationModule(AuthzToken authzToken, string gatewayId, ApplicationModule
applicationModule)')
   print('  ApplicationModule getApplicationModule(AuthzToken authzToken, string appModuleId)')
@@ -470,6 +472,12 @@ elif cmd == 'getExperiment':
     sys.exit(1)
   pp.pprint(client.getExperiment(eval(args[0]),args[1],))
 
+elif cmd == 'getExperimentByAdmin':
+  if len(args) != 2:
+    print('getExperimentByAdmin requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.getExperimentByAdmin(eval(args[0]),args[1],))
+
 elif cmd == 'getDetailedExperimentTree':
   if len(args) != 2:
     print('getDetailedExperimentTree requires 2 args')
@@ -542,6 +550,12 @@ elif cmd == 'cloneExperiment':
     sys.exit(1)
   pp.pprint(client.cloneExperiment(eval(args[0]),args[1],args[2],args[3],))
 
+elif cmd == 'cloneExperimentByAdmin':
+  if len(args) != 4:
+    print('cloneExperimentByAdmin requires 4 args')
+    sys.exit(1)
+  pp.pprint(client.cloneExperimentByAdmin(eval(args[0]),args[1],args[2],args[3],))
+
 elif cmd == 'terminateExperiment':
   if len(args) != 3:
     print('terminateExperiment requires 3 args')


Mime
View raw message