00001 /* 00002 Copyright (c) Members of the EGEE Collaboration. 2004. 00003 See http://www.eu-egee.org/partners/ for details on the 00004 copyright holders. 00005 00006 Licensed under the Apache License, Version 2.0 (the "License"); 00007 you may not use this file except in compliance with the License. 00008 You may obtain a copy of the License at 00009 00010 http://www.apache.org/licenses/LICENSE-2.0 00011 00012 Unless required by applicable law or agreed to in writing, software 00013 distributed under the License is distributed on an "AS IS" BASIS, 00014 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00015 either express or implied. 00016 See the License for the specific language governing permissions and 00017 limitations under the License. 00018 */ 00019 00020 // File: DAGAdManipulation.h 00021 // Author: Francesco Giacomini <Francesco.Giacomini@cnaf.infn.it> 00022 // Copyright (c) 2003 EU DataGrid. 00023 00024 // $Id: DAGAdManipulation.h,v 1.3.6.1 2010/04/07 09:50:34 mcecchi Exp $ 00025 00026 #ifndef GLITE_WMS_COMMON_REQUESTAD_DAGADMANIPULATION_H 00027 #define GLITE_WMS_COMMON_REQUESTAD_DAGADMANIPULATION_H 00028 00029 #include <string> 00030 #include <vector> 00031 00032 namespace glite { 00033 namespace jdl { 00034 00035 class DAGAd; 00036 00037 bool set_edg_jobid(DAGAd& dagad, std::string const& id); 00038 std::string get_edg_jobid(DAGAd const& dagad); 00039 bool remove_edg_jobid(DAGAd& dagad); 00040 00041 bool set_x509_user_proxy(DAGAd& dagad, std::string const& proxy); 00042 std::string get_x509_user_proxy(DAGAd const& dagad); 00043 bool remove_x509_user_proxy(DAGAd& dagad); 00044 00045 bool set_certificate_subject(DAGAd& dagad, std::string const& subject); 00046 std::string get_certificate_subject(DAGAd const& dagad); 00047 bool remove_certificate_subject(DAGAd& dagad); 00048 00049 bool set_my_proxy_server(DAGAd& dagad, std::string const& id); 00050 std::string get_my_proxy_server(DAGAd const& dagad); 00051 bool remove_my_proxy_server(DAGAd& dagad); 00052 00053 bool set_lb_sequence_code(DAGAd& dagad, std::string const& sequence_code); 00054 std::string get_lb_sequence_code(DAGAd const& dagad); 00055 bool remove_lb_sequence_code(DAGAd& dagad); 00056 00057 bool set_input_sandbox(DAGAd& dagad, std::vector<std::string> const& is); 00058 std::vector<std::string> get_input_sandbox(DAGAd const& dagad); 00059 bool remove_input_sandbox(DAGAd& dagad); 00060 00061 bool set_virtual_organisation(DAGAd& dagad, std::string const& vo); 00062 std::string get_virtual_organisation(DAGAd const& dagad); 00063 bool remove_virtual_organisation(DAGAd& dagad); 00064 00065 bool get_nodes_collocation(DAGAd const& dagad); 00066 00067 bool check_vo(DAGAd const& dagad); 00068 00069 bool parent_child(DAGAd const& dagad, std::string const& parent_node, std::string const& child_node); 00070 00071 } // jdl namespace 00072 } // glite namespace 00073 00074 #endif 00075 00076 // Local Variables: 00077 // mode: c++ 00078 // End: