/usr/include/arc/wsrf/WSResourceProperties.h is in nordugrid-arc-dev 4.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | #ifndef __ARC_WSRP_H__
#define __ARC_WSRP_H__
#include <vector>
#include <arc/message/SOAPEnvelope.h>
#include "WSRFBaseFault.h"
namespace Arc {
/// Base class for WS-ResourceProperties structures.
/** Inheriting classes implement specific WS-ResourceProperties messages and
their properties/elements. Refer to WS-ResourceProperties specifications
for things specific to every message. */
class WSRP: public WSRF {
protected:
/** set WS-ResourceProperties namespaces and default prefixes in SOAP message */
void set_namespaces(void);
public:
/** Constructor - prepares object for creation of new WSRP request/response/fault */
WSRP(bool fault = false,const std::string& action = "");
/** Constructor - creates object out of supplied SOAP tree.
It does not check if 'soap' represents valid WS-ResourceProperties structure.
Actual check for validity of structure has to be done by derived class. */
WSRP(SOAPEnvelope& soap,const std::string& action = "");
~WSRP(void) { };
};
// ==================== Faults ================================
/// Base class for WS-ResourceProperties faults.
class WSRPFault: public WSRFBaseFault {
public:
/** Constructor - creates object out of supplied SOAP tree. */
WSRPFault(SOAPEnvelope& soap);
/** Constructor - creates new WSRP fault */
WSRPFault(const std::string& type);
virtual ~WSRPFault(void);
};
class WSRPInvalidResourcePropertyQNameFault: public WSRPFault {
public:
WSRPInvalidResourcePropertyQNameFault(SOAPEnvelope& soap):WSRPFault(soap) { };
WSRPInvalidResourcePropertyQNameFault(void):WSRPFault("wsrf-rp:InvalidResourcePropertyQNameFault") { };
virtual ~WSRPInvalidResourcePropertyQNameFault(void) { };
};
/** Base class for WS-ResourceProperties faults which contain ResourcePropertyChangeFailure */
class WSRPResourcePropertyChangeFailure: public WSRPFault {
public:
/** Constructor - creates object out of supplied SOAP tree. */
WSRPResourcePropertyChangeFailure(SOAPEnvelope& soap):WSRPFault(soap) { };
/** Constructor - creates new WSRP fault */
WSRPResourcePropertyChangeFailure(const std::string& type):WSRPFault(type) { };
virtual ~WSRPResourcePropertyChangeFailure(void) { };
XMLNode CurrentProperties(bool create = false);
XMLNode RequestedProperties(bool create = false);
};
class WSRPUnableToPutResourcePropertyDocumentFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPUnableToPutResourcePropertyDocumentFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPUnableToPutResourcePropertyDocumentFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:UnableToPutResourcePropertyDocumentFault") { };
virtual ~WSRPUnableToPutResourcePropertyDocumentFault(void) { };
};
class WSRPInvalidModificationFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPInvalidModificationFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPInvalidModificationFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:InvalidModificationFault") { };
virtual ~WSRPInvalidModificationFault(void) { };
};
class WSRPUnableToModifyResourcePropertyFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPUnableToModifyResourcePropertyFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPUnableToModifyResourcePropertyFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:UnableToModifyResourcePropertyFault") { };
virtual ~WSRPUnableToModifyResourcePropertyFault(void) { };
};
class WSRPSetResourcePropertyRequestFailedFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPSetResourcePropertyRequestFailedFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPSetResourcePropertyRequestFailedFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:SetResourcePropertyRequestFailedFault") { };
virtual ~WSRPSetResourcePropertyRequestFailedFault(void) { };
};
class WSRPInsertResourcePropertiesRequestFailedFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPInsertResourcePropertiesRequestFailedFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPInsertResourcePropertiesRequestFailedFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:InsertResourcePropertiesRequestFailedFault") { };
virtual ~WSRPInsertResourcePropertiesRequestFailedFault(void) { };
};
class WSRPUpdateResourcePropertiesRequestFailedFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPUpdateResourcePropertiesRequestFailedFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPUpdateResourcePropertiesRequestFailedFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:UpdateResourcePropertiesRequestFailedFault") { };
virtual ~WSRPUpdateResourcePropertiesRequestFailedFault(void) { };
};
class WSRPDeleteResourcePropertiesRequestFailedFault: public WSRPResourcePropertyChangeFailure {
public:
WSRPDeleteResourcePropertiesRequestFailedFault(SOAPEnvelope& soap):WSRPResourcePropertyChangeFailure(soap) { };
WSRPDeleteResourcePropertiesRequestFailedFault(void):WSRPResourcePropertyChangeFailure("wsrf-rp:DeleteResourcePropertiesRequestFailedFault") { };
virtual ~WSRPDeleteResourcePropertiesRequestFailedFault(void) { };
};
// ============================================================
class WSRPGetResourcePropertyDocumentRequest: public WSRP {
public:
WSRPGetResourcePropertyDocumentRequest(SOAPEnvelope& soap);
WSRPGetResourcePropertyDocumentRequest(void);
~WSRPGetResourcePropertyDocumentRequest(void);
};
class WSRPGetResourcePropertyDocumentResponse: public WSRP {
public:
WSRPGetResourcePropertyDocumentResponse(SOAPEnvelope& soap);
WSRPGetResourcePropertyDocumentResponse(const XMLNode& prop_doc = XMLNode());
~WSRPGetResourcePropertyDocumentResponse(void);
void Document(const XMLNode& prop_doc);
XMLNode Document(void);
};
// ============================================================
class WSRPGetResourcePropertyRequest: public WSRP {
public:
WSRPGetResourcePropertyRequest(SOAPEnvelope& soap);
WSRPGetResourcePropertyRequest(const std::string& name);
~WSRPGetResourcePropertyRequest(void);
std::string Name(void);
void Name(const std::string& name);
};
class WSRPGetResourcePropertyResponse: public WSRP {
public:
WSRPGetResourcePropertyResponse(SOAPEnvelope& soap);
WSRPGetResourcePropertyResponse(void);
//WSRPGetResourcePropertyResponse(const std::list<XMLNode>& properties);
~WSRPGetResourcePropertyResponse(void);
int Size(void);
void Property(const XMLNode& prop,int pos = -1);
XMLNode Property(int pos);
XMLNode Properties(void);
};
// ============================================================
class WSRPGetMultipleResourcePropertiesRequest: public WSRP {
public:
WSRPGetMultipleResourcePropertiesRequest(SOAPEnvelope& soap);
WSRPGetMultipleResourcePropertiesRequest(void);
WSRPGetMultipleResourcePropertiesRequest(const std::vector<std::string>& names);
~WSRPGetMultipleResourcePropertiesRequest(void);
std::vector<std::string> Names(void);
void Names(const std::vector<std::string>& names);
};
class WSRPGetMultipleResourcePropertiesResponse: public WSRP {
public:
WSRPGetMultipleResourcePropertiesResponse(SOAPEnvelope& soap);
WSRPGetMultipleResourcePropertiesResponse(void);
//WSRPGetMultipleResourcePropertiesResponse(const std::list<XMLNode>& properties);
~WSRPGetMultipleResourcePropertiesResponse(void);
int Size(void);
void Property(const XMLNode& prop,int pos = -1);
XMLNode Property(int pos);
XMLNode Properties(void);
};
// ============================================================
class WSRPPutResourcePropertyDocumentRequest: public WSRP {
public:
WSRPPutResourcePropertyDocumentRequest(SOAPEnvelope& soap);
WSRPPutResourcePropertyDocumentRequest(const XMLNode& prop_doc = XMLNode());
~WSRPPutResourcePropertyDocumentRequest(void);
void Document(const XMLNode& prop_doc);
XMLNode Document(void);
};
class WSRPPutResourcePropertyDocumentResponse: public WSRP {
public:
WSRPPutResourcePropertyDocumentResponse(SOAPEnvelope& soap);
WSRPPutResourcePropertyDocumentResponse(const XMLNode& prop_doc = XMLNode());
~WSRPPutResourcePropertyDocumentResponse(void);
void Document(const XMLNode& prop_doc);
XMLNode Document(void);
};
// ============================================================
class WSRPModifyResourceProperties {
protected:
XMLNode element_;
public:
// Create new node in XML tree or acquire element from XML tree
WSRPModifyResourceProperties(XMLNode& node,bool create,const std::string& name = "");
WSRPModifyResourceProperties(void) { };
virtual ~WSRPModifyResourceProperties(void);
//operator XMLNode(void) { return element_; };
operator bool(void) { return (bool)element_; };
bool operator!(void) { return !element_; };
};
class WSRPInsertResourceProperties: public WSRPModifyResourceProperties {
public:
WSRPInsertResourceProperties(XMLNode node,bool create):WSRPModifyResourceProperties(node,create,"wsrf-rp:Insert") { };
WSRPInsertResourceProperties(void) { };
virtual ~WSRPInsertResourceProperties(void);
XMLNode Properties(void) { return element_; };
};
class WSRPUpdateResourceProperties: public WSRPModifyResourceProperties {
public:
WSRPUpdateResourceProperties(XMLNode node,bool create):WSRPModifyResourceProperties(node,create,"wsrf-rp:Update") { };
WSRPUpdateResourceProperties(void) { };
virtual ~WSRPUpdateResourceProperties(void);
XMLNode Properties(void) { return element_; };
};
class WSRPDeleteResourceProperties: public WSRPModifyResourceProperties {
public:
WSRPDeleteResourceProperties(XMLNode node,bool create):WSRPModifyResourceProperties(node,create,"wsrf-rp:Delete") { };
WSRPDeleteResourceProperties(void) { };
virtual ~WSRPDeleteResourceProperties(void);
std::string Property(void);
void Property(const std::string& name);
};
// ============================================================
class WSRPSetResourcePropertiesRequest: public WSRP {
public:
WSRPSetResourcePropertiesRequest(SOAPEnvelope& soap);
WSRPSetResourcePropertiesRequest(void);
~WSRPSetResourcePropertiesRequest(void);
XMLNode Properties(void);
};
class WSRPSetResourcePropertiesResponse: public WSRP {
public:
WSRPSetResourcePropertiesResponse(SOAPEnvelope& soap);
WSRPSetResourcePropertiesResponse(void);
~WSRPSetResourcePropertiesResponse(void);
};
// ============================================================
class WSRPInsertResourcePropertiesRequest: public WSRP {
public:
WSRPInsertResourcePropertiesRequest(SOAPEnvelope& soap);
WSRPInsertResourcePropertiesRequest(void);
~WSRPInsertResourcePropertiesRequest(void);
WSRPInsertResourceProperties Property(void);
};
class WSRPInsertResourcePropertiesResponse: public WSRP {
public:
WSRPInsertResourcePropertiesResponse(SOAPEnvelope& soap);
WSRPInsertResourcePropertiesResponse(void);
~WSRPInsertResourcePropertiesResponse(void);
};
// ============================================================
class WSRPUpdateResourcePropertiesRequest: public WSRP {
public:
WSRPUpdateResourcePropertiesRequest(SOAPEnvelope& soap);
WSRPUpdateResourcePropertiesRequest(void);
~WSRPUpdateResourcePropertiesRequest(void);
WSRPUpdateResourceProperties Property(void);
};
class WSRPUpdateResourcePropertiesResponse: public WSRP {
public:
WSRPUpdateResourcePropertiesResponse(SOAPEnvelope& soap);
WSRPUpdateResourcePropertiesResponse(void);
~WSRPUpdateResourcePropertiesResponse(void);
};
// ============================================================
class WSRPDeleteResourcePropertiesRequest: public WSRP {
public:
WSRPDeleteResourcePropertiesRequest(SOAPEnvelope& soap);
WSRPDeleteResourcePropertiesRequest(const std::string& name);
WSRPDeleteResourcePropertiesRequest(void);
~WSRPDeleteResourcePropertiesRequest(void);
std::string Name(void);
void Name(const std::string& name);
};
class WSRPDeleteResourcePropertiesResponse: public WSRP {
public:
WSRPDeleteResourcePropertiesResponse(SOAPEnvelope& soap);
WSRPDeleteResourcePropertiesResponse(void);
~WSRPDeleteResourcePropertiesResponse(void);
};
// ============================================================
class WSRPQueryResourcePropertiesRequest: public WSRP {
public:
WSRPQueryResourcePropertiesRequest(SOAPEnvelope& soap);
WSRPQueryResourcePropertiesRequest(const std::string& dialect);
WSRPQueryResourcePropertiesRequest(void);
~WSRPQueryResourcePropertiesRequest(void);
std::string Dialect(void);
void Dialect(const std::string& dialect);
XMLNode Query(void);
};
class WSRPQueryResourcePropertiesResponse: public WSRP {
public:
WSRPQueryResourcePropertiesResponse(SOAPEnvelope& soap);
WSRPQueryResourcePropertiesResponse(void);
~WSRPQueryResourcePropertiesResponse(void);
XMLNode Properties(void);
};
// UnknownQueryExpressionDialectFaultType
// InvalidQueryExpressionFault
// QueryEvaluationErrorFault
//
// ============================================================
WSRF& CreateWSRP(SOAPEnvelope& soap);
} // namespace Arc
#endif /* _ARC_WSRP_H__ */
|