const std::string persistenceDir = AppConfigUtils::getRequiredString(
"persistence_dir");
- const SmartPtrCAmqpBrokerDoc amqpBroker = CPersistenceUtils::loadAmqpBroker(
+ const SmartPtrCPersistenceProtocolDoc persistenceProtocol = CPersistenceUtils::loadPersistenceProtocol(
persistenceDir);
UriUtils::SUriRecord uri;
- UriUtils::parseUriString(amqpBroker->getUri(), uri);
+ UriUtils::parseUriString(persistenceProtocol->getUri(), uri);
const std::string vhost = UriUtils::findOptParameter(uri, "vhost",
- AppConfigUtils::getOptionalString("vhost"));
- const std::string connectionTimeout = UriUtils::findOptParameter(uri,
- "connection_timeout", AppConfigUtils::getOptionalString("connection_timeout"));
- const std::string connectionRetries = UriUtils::findOptParameter(uri,
- "connection_retries", AppConfigUtils::getOptionalString("connection_retries"));
- const std::string connectionSecondsToWait = UriUtils::findOptParameter(uri,
- "connection_seconds_to_wait",
- AppConfigUtils::getOptionalString("connection_seconds_to_wait"));
- const std::string channelCacheSize = UriUtils::findOptParameter(uri,
- "channel_cache_size", AppConfigUtils::getOptionalString("channel_cache_size"));
+ AppConfigUtils::getRequiredString("communication_amqp", "vhost"));
+ const std::string connectionTimeout = UriUtils::findOptParameter(uri, "connection_timeout",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "connection_timeout")));
+ const std::string connectionRetries = UriUtils::findOptParameter(uri, "connection_retries",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "connection_retries")));
+ const std::string connectionSecondsToWait = UriUtils::findOptParameter(uri, "connection_seconds_to_wait",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "connection_seconds_to_wait")));
+ const std::string channelCacheSize = UriUtils::findOptParameter(uri, "channel_cache_size",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "channel_cache_size")));
CAF_CM_VALIDATE_STRING(uri.protocol);
CAF_CM_VALIDATE_STRING(uri.host);
CPersistenceUtils::loadPersistence(persistenceDir);
CAF_CM_VALIDATE_SMARTPTR(persistence);
- const SmartPtrCAmqpBrokerDoc amqpBroker =
- CPersistenceUtils::loadAmqpBroker(persistence->getPersistenceProtocol());
+ const SmartPtrCPersistenceProtocolDoc amqpBroker =
+ CPersistenceUtils::loadPersistenceProtocol(persistence->getPersistenceProtocolCollection());
CAF_CM_VALIDATE_SMARTPTR(amqpBroker);
const SmartPtrCCertPathCollectionDoc tlsCertPathCollection = amqpBroker->getTlsCertPathCollection();
UriUtils::SUriRecord uri;
UriUtils::parseUriString(amqpBroker->getUri(), uri);
- const std::string vhost = UriUtils::findOptParameter(
- uri, "vhost", AppConfigUtils::getOptionalString("vhost"));
- const std::string connectionTimeout = UriUtils::findOptParameter(
- uri, "connection_timeout", AppConfigUtils::getOptionalString("connection_timeout"));
- const std::string connectionRetries = UriUtils::findOptParameter(
- uri, "connection_retries", AppConfigUtils::getOptionalString("connection_retries"));
- const std::string connectionSecondsToWait = UriUtils::findOptParameter(
- uri, "connection_seconds_to_wait", AppConfigUtils::getOptionalString("connection_seconds_to_wait"));
- const std::string channelCacheSize = UriUtils::findOptParameter(
- uri, "channel_cache_size", AppConfigUtils::getOptionalString("channel_cache_size"));
+ const std::string vhost = UriUtils::findOptParameter(uri, "vhost",
+ AppConfigUtils::getRequiredString("communication_amqp", "vhost"));
+ const std::string connectionTimeout = UriUtils::findOptParameter(uri, "connection_timeout",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "connection_timeout")));
+ const std::string connectionRetries = UriUtils::findOptParameter(uri, "connection_retries",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "connection_retries")));
+ const std::string connectionSecondsToWait = UriUtils::findOptParameter(uri, "connection_seconds_to_wait",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "connection_seconds_to_wait")));
+ const std::string channelCacheSize = UriUtils::findOptParameter(uri, "channel_cache_size",
+ CStringConv::toString<uint32>(
+ AppConfigUtils::getRequiredUint32("communication_amqp", "channel_cache_size")));
const std::deque<std::string> tlsCertPathCollectionInner = tlsCertPathCollection->getCertPath();
CAF_CM_VALIDATE_STL(tlsCertPathCollectionInner);
#include "../../../amqpCore/src/amqpCore/amqpIntegrationCoreLink.h"
#include "commIntegrationDefines.h"
-#include <CafContracts.h>
#include <DocXml.h>
#include <DocUtils.h>
#include "CMessagePartRecord.h"
-///////////////////////////////////////////////////////////////////////////////////////////
-//
-// Author: michael.donahue
-//
-// Created: 6/25/2008
-//
-// Copyright (c) 2011 Vmware, Inc. All rights reserved.
-// -- VMware Confidential
-//
-///////////////////////////////////////////////////////////////////////////////////////////
-
-#ifndef CafCppUnitSupport_h_
-#define CafCppUnitSupport_h_
-
-#include "../test/CafCppUnitSupport/CafCppUnitSupportLink.h"
-
-#endif // #ifndef CafCppUnitSupport_h_
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef Proxy_CafContracts_h_
-#define Proxy_CafContracts_h_
-
-#include "../../src/Globals/CommonGlobalsLink.h"
-
-namespace Caf {
- extern COMMONGLOBALS_LINKAGE const char* _sConfigTmpDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigInputDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigOutputDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigSchemaCacheDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigProviderRegDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigInstallDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigInvokersDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigProvidersDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigCommonPackagesDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigWorkingDir;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigPrivateKeyFile;
- extern COMMONGLOBALS_LINKAGE const char* _sConfigCertFile;
-
- extern COMMONGLOBALS_LINKAGE const char* _sProviderHostArea;
- extern COMMONGLOBALS_LINKAGE const char* _sManagementAgentArea;
-
- extern COMMONGLOBALS_LINKAGE const char* _sSchemaSummaryFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sProviderResponseFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sStdoutFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sStderrFilename;
-
- extern COMMONGLOBALS_LINKAGE const char* _sPayloadRequestFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sResponseFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sErrorResponseFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sProviderRequestFilename;
- extern COMMONGLOBALS_LINKAGE const char* _sInfraErrFilename;
-
- // FxProviderFx related string constants
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderDriver;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderCdifFormatter;
-
- // MA related string constants
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdCollectSchemaExecutor;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderCollectSchemaExecutor;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderExecutor;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdSinglePmeRequestSplitterInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdSinglePmeRequestSplitter;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdDiagToMgmtRequestTransformerInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdDiagToMgmtRequestTransformer;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdInstallToMgmtRequestTransformerInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdInstallToMgmtRequestTransformer;
-
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdAttachmentRequestTransformerInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdAttachmentRequestTransformer;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdVersionTransformerInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdVersionTransformer;
-
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdPersistenceNamespaceDb;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdConfigEnv;
-
- // Framework related string constants
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdErrorToResponseTransformerInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdErrorToResponseTransformer;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdPayloadHeaderEnricherInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdPayloadHeaderEnricher;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdEnvelopeToPayloadTransformerInstance;
- extern COMMONGLOBALS_LINKAGE const char* _sObjIdEnvelopeToPayloadTransformer;
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CAddInCollectionDoc_h_
-#define CAddInCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type AddInCollection
-class CAddInCollectionDoc {
-public:
- CAddInCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CAddInCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<std::string> addInCollection = std::deque<std::string>()) {
- if (! _isInitialized) {
- _addInCollection = addInCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the AddIn
- std::deque<std::string> getAddInCollection() const {
- return _addInCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<std::string> _addInCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAddInCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAddInCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CAddInsDoc_h_
-#define CAddInsDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type AddIns
-class CAddInsDoc {
-public:
- CAddInsDoc() :
- _isInitialized(false) {}
- virtual ~CAddInsDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCAddInCollectionDoc> addInCollection = std::deque<SmartPtrCAddInCollectionDoc>()) {
- if (! _isInitialized) {
- _addInCollection = addInCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the AddInCollection
- std::deque<SmartPtrCAddInCollectionDoc> getAddInCollection() const {
- return _addInCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCAddInCollectionDoc> _addInCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAddInsDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAddInsDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CAttachmentCollectionDoc_h_
-#define CAttachmentCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type AttachmentCollection
-class CAttachmentCollectionDoc {
-public:
- CAttachmentCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CAttachmentCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCAttachmentDoc> attachment = std::deque<SmartPtrCAttachmentDoc>(),
- const std::deque<SmartPtrCInlineAttachmentDoc> inlineAttachment = std::deque<SmartPtrCInlineAttachmentDoc>()) {
- if (! _isInitialized) {
- _attachment = attachment;
- _inlineAttachment = inlineAttachment;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Attachment
- std::deque<SmartPtrCAttachmentDoc> getAttachment() const {
- return _attachment;
- }
-
- /// Accessor for the InlineAttachment
- std::deque<SmartPtrCInlineAttachmentDoc> getInlineAttachment() const {
- return _inlineAttachment;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCAttachmentDoc> _attachment;
- std::deque<SmartPtrCInlineAttachmentDoc> _inlineAttachment;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAttachmentCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAttachmentCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CAttachmentDoc_h_
-#define CAttachmentDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Attachment
-class CAttachmentDoc {
-public:
- CAttachmentDoc() :
- _isInitialized(false),
- _isReference(false),
- _cmsPolicy(CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED) {}
- virtual ~CAttachmentDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::string type,
- const std::string uri,
- const bool isReference,
- const CMS_POLICY cmsPolicy = CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _uri = uri;
- _isReference = isReference;
- _cmsPolicy = cmsPolicy;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Type
- std::string getType() const {
- return _type;
- }
-
- /// Accessor for the Uri
- std::string getUri() const {
- return _uri;
- }
-
- /// Accessor for the IsReference
- bool getIsReference() const {
- return _isReference;
- }
-
- /// Accessor for the CMS Policy
- CMS_POLICY getCmsPolicy() const {
- return _cmsPolicy;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::string _type;
- std::string _uri;
- bool _isReference;
- CMS_POLICY _cmsPolicy;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAttachmentDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAttachmentDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CAttachmentNameCollectionDoc_h_
-#define CAttachmentNameCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type AttachmentNameCollection
-class CAttachmentNameCollectionDoc {
-public:
- CAttachmentNameCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CAttachmentNameCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<std::string> name = std::deque<std::string>()) {
- if (! _isInitialized) {
- _name = name;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::deque<std::string> getName() const {
- return _name;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<std::string> _name;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAttachmentNameCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAttachmentNameCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CAuthnAuthzCollectionDoc_h_
-#define CAuthnAuthzCollectionDoc_h_
-
-namespace Caf {
-
-/// Set of logging levels for different components
-class CAuthnAuthzCollectionDoc {
-public:
- CAuthnAuthzCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CAuthnAuthzCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCAuthnAuthzDoc> authnAuthz = std::deque<SmartPtrCAuthnAuthzDoc>()) {
- if (! _isInitialized) {
- _authnAuthz = authnAuthz;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Used to change the logging level for a specific component
- std::deque<SmartPtrCAuthnAuthzDoc> getAuthnAuthz() const {
- return _authnAuthz;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCAuthnAuthzDoc> _authnAuthz;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAuthnAuthzCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAuthnAuthzCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: May 24, 2015
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CAuthnAuthzDoc_h_
-#define CAuthnAuthzDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type AuthnAuthz
-class CAuthnAuthzDoc {
-public:
- CAuthnAuthzDoc() :
- _isInitialized(false),
- _sequenceNumber(0) {}
- virtual ~CAuthnAuthzDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string type,
- const std::string value,
- const std::string name = std::string(),
- const int32 sequenceNumber = 0) {
- if (! _isInitialized) {
- _type = type;
- _value = value;
- _name = name;
- _sequenceNumber = sequenceNumber;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Type
- std::string getType() const {
- return _type;
- }
-
- /// Accessor for the Value
- std::string getValue() const {
- return _value;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the SequenceNumber
- int32 getSequenceNumber() const {
- return _sequenceNumber;
- }
-
-private:
- bool _isInitialized;
-
- std::string _type;
- std::string _value;
- std::string _name;
- int32 _sequenceNumber;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAuthnAuthzDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAuthnAuthzDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassFiltersDoc_h_
-#define CClassFiltersDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ClassFilters
-class CClassFiltersDoc {
-public:
- CClassFiltersDoc() :
- _isInitialized(false) {}
- virtual ~CClassFiltersDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string dialect = std::string(),
- const std::deque<std::string> classFilter = std::deque<std::string>()) {
- if (! _isInitialized) {
- _dialect = dialect;
- _classFilter = classFilter;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Dialect
- std::string getDialect() const {
- return _dialect;
- }
-
- /// Accessor for the ClassFilter
- std::deque<std::string> getClassFilter() const {
- return _classFilter;
- }
-
-private:
- bool _isInitialized;
-
- std::string _dialect;
- std::deque<std::string> _classFilter;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassFiltersDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassFiltersDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassSpecifierDoc_h_
-#define CClassSpecifierDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ClassSpecifier
-class CClassSpecifierDoc {
-public:
- CClassSpecifierDoc() :
- _isInitialized(false) {}
- virtual ~CClassSpecifierDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCFullyQualifiedClassGroupDoc fullyQualifiedClass = SmartPtrCFullyQualifiedClassGroupDoc(),
- const SmartPtrCClassFiltersDoc classFilters = SmartPtrCClassFiltersDoc()) {
- if (! _isInitialized) {
- _fullyQualifiedClass = fullyQualifiedClass;
- _classFilters = classFilters;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the FullyQualifiedClass
- SmartPtrCFullyQualifiedClassGroupDoc getFullyQualifiedClass() const {
- return _fullyQualifiedClass;
- }
-
- /// Accessor for the ClassFilters
- SmartPtrCClassFiltersDoc getClassFilters() const {
- return _classFilters;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCFullyQualifiedClassGroupDoc _fullyQualifiedClass;
- SmartPtrCClassFiltersDoc _classFilters;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassSpecifierDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassSpecifierDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CFullyQualifiedClassGroupDoc_h_
-#define CFullyQualifiedClassGroupDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type FullyQualifiedClassGroup
-class CFullyQualifiedClassGroupDoc {
-public:
- CFullyQualifiedClassGroupDoc() :
- _isInitialized(false) {}
- virtual ~CFullyQualifiedClassGroupDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string classNamespace,
- const std::string className,
- const std::string classVersion) {
- if (! _isInitialized) {
- _classNamespace = classNamespace;
- _className = className;
- _classVersion = classVersion;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClassNamespace
- std::string getClassNamespace() const {
- return _classNamespace;
- }
-
- /// Accessor for the ClassName
- std::string getClassName() const {
- return _className;
- }
-
- /// Accessor for the ClassVersion
- std::string getClassVersion() const {
- return _classVersion;
- }
-
-private:
- bool _isInitialized;
-
- std::string _classNamespace;
- std::string _className;
- std::string _classVersion;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CFullyQualifiedClassGroupDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CFullyQualifiedClassGroupDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInlineAttachmentCollectionDoc_h_
-#define CInlineAttachmentCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InlineAttachmentCollection
-class CInlineAttachmentCollectionDoc {
-public:
- CInlineAttachmentCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CInlineAttachmentCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCInlineAttachmentDoc> attachment = std::deque<SmartPtrCInlineAttachmentDoc>()) {
- if (! _isInitialized) {
- _attachment = attachment;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the InlineAttachment
- std::deque<SmartPtrCInlineAttachmentDoc> getInlineAttachment() const {
- return _attachment;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCInlineAttachmentDoc> _attachment;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInlineAttachmentCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInlineAttachmentCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInlineAttachmentDoc_h_
-#define CInlineAttachmentDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InlineAttachment
-class CInlineAttachmentDoc {
-public:
- CInlineAttachmentDoc() :
- _isInitialized(false) {}
- virtual ~CInlineAttachmentDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::string type,
- const std::string value) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Type
- std::string getType() const {
- return _type;
- }
-
- /// Accessor for the Value
- std::string getValue() const {
- return _value;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::string _type;
- std::string _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInlineAttachmentDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInlineAttachmentDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CLoggingLevelCollectionDoc_h_
-#define CLoggingLevelCollectionDoc_h_
-
-namespace Caf {
-
-/// Set of logging levels for different components
-class CLoggingLevelCollectionDoc {
-public:
- CLoggingLevelCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CLoggingLevelCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCLoggingLevelElemDoc> loggingLevel = std::deque<SmartPtrCLoggingLevelElemDoc>()) {
- if (! _isInitialized) {
- _loggingLevel = loggingLevel;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Used to change the logging level for a specific component
- std::deque<SmartPtrCLoggingLevelElemDoc> getLoggingLevel() const {
- return _loggingLevel;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCLoggingLevelElemDoc> _loggingLevel;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CLoggingLevelCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CLoggingLevelCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CLoggingLevelElemDoc_h_
-#define CLoggingLevelElemDoc_h_
-
-namespace Caf {
-
-/// Logging level for a component
-class CLoggingLevelElemDoc {
-public:
- CLoggingLevelElemDoc() :
- _component(LOGGINGCOMPONENT_NONE),
- _level(LOGGINGLEVEL_NONE),
- _isInitialized(false) {}
- virtual ~CLoggingLevelElemDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const LOGGINGCOMPONENT_TYPE component = LOGGINGCOMPONENT_NONE,
- const LOGGINGLEVEL_TYPE level = LOGGINGLEVEL_NONE) {
- if (! _isInitialized) {
- _component = component;
- _level = level;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// The logging level applies to this component
- LOGGINGCOMPONENT_TYPE getComponent() const {
- return _component;
- }
-
- /// Set the logging level to this value
- LOGGINGLEVEL_TYPE getLevel() const {
- return _level;
- }
-
-private:
- LOGGINGCOMPONENT_TYPE _component;
- LOGGINGLEVEL_TYPE _level;
-
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CLoggingLevelElemDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CLoggingLevelElemDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef COperationDoc_h_
-#define COperationDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Operation
-class COperationDoc {
-public:
- COperationDoc() :
- _isInitialized(false) {}
- virtual ~COperationDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const SmartPtrCParameterCollectionDoc parameterCollection = SmartPtrCParameterCollectionDoc()) {
- if (! _isInitialized) {
- _name = name;
- _parameterCollection = parameterCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the ParameterCollection
- SmartPtrCParameterCollectionDoc getParameterCollection() const {
- return _parameterCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- SmartPtrCParameterCollectionDoc _parameterCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(COperationDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(COperationDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CParameterCollectionDoc_h_
-#define CParameterCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ParameterCollection
-class CParameterCollectionDoc {
-public:
- CParameterCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CParameterCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCRequestParameterDoc> parameter = std::deque<SmartPtrCRequestParameterDoc>(),
- const std::deque<SmartPtrCRequestInstanceParameterDoc> instanceParameter = std::deque<SmartPtrCRequestInstanceParameterDoc>()) {
- if (! _isInitialized) {
- _parameter = parameter;
- _instanceParameter = instanceParameter;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Parameter
- std::deque<SmartPtrCRequestParameterDoc> getParameter() const {
- return _parameter;
- }
-
- /// Accessor for the InstanceParameter
- std::deque<SmartPtrCRequestInstanceParameterDoc> getInstanceParameter() const {
- return _instanceParameter;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCRequestParameterDoc> _parameter;
- std::deque<SmartPtrCRequestInstanceParameterDoc> _instanceParameter;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CParameterCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CParameterCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CPropertyCollectionDoc_h_
-#define CPropertyCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type PropertyCollection
-class CPropertyCollectionDoc {
-public:
- CPropertyCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CPropertyCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCPropertyDoc> property = std::deque<SmartPtrCPropertyDoc>()) {
- if (! _isInitialized) {
- _property = property;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Property
- std::deque<SmartPtrCPropertyDoc> getProperty() const {
- return _property;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCPropertyDoc> _property;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPropertyCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPropertyCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CPropertyDoc_h_
-#define CPropertyDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Property
-class CPropertyDoc {
-public:
- CPropertyDoc() :
- _type(PROPERTY_NONE),
- _isInitialized(false) {}
- virtual ~CPropertyDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const PROPERTY_TYPE type,
- const std::deque<std::string> value = std::deque<std::string>()) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Type
- PROPERTY_TYPE getType() const {
- return _type;
- }
-
- /// Accessor for the Value
- std::deque<std::string> getValue() const {
- return _value;
- }
-
-private:
- PROPERTY_TYPE _type;
-
- bool _isInitialized;
- std::string _name;
- std::deque<std::string> _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPropertyDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPropertyDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProtocolCollectionDoc_h_
-#define CProtocolCollectionDoc_h_
-
-namespace Caf {
-
-/// Set of protocol
-class CProtocolCollectionDoc {
-public:
- CProtocolCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CProtocolCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCProtocolDoc> protocol = std::deque<SmartPtrCProtocolDoc>()) {
- if (! _isInitialized) {
- _protocol = protocol;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Used to change the logging level for a specific component
- std::deque<SmartPtrCProtocolDoc> getProtocol() const {
- return _protocol;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCProtocolDoc> _protocol;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProtocolCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProtocolCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProtocolDoc_h_
-#define CProtocolDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of Protocol
-class CProtocolDoc {
-public:
- CProtocolDoc() :
- _sequenceNumber(0),
- _isInitialized(false) {}
- virtual ~CProtocolDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string uri,
- const std::string name = std::string(),
- const int32 sequenceNumber = 0) {
- if (! _isInitialized) {
- _name = name;
- _uri = uri;
- _sequenceNumber = sequenceNumber;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Uri
- std::string getUri() const {
- return _uri;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Value
- int32 getSequenceNumber() const {
- return _sequenceNumber;
- }
-
-private:
- int32 _sequenceNumber;
- bool _isInitialized;
-
- std::string _uri;
- std::string _name;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProtocolDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProtocolDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRequestConfigDoc_h_
-#define CRequestConfigDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type RequestConfig
-class CRequestConfigDoc {
-public:
- CRequestConfigDoc() :
- _isInitialized(false) {}
- virtual ~CRequestConfigDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string responseFormatType,
- const SmartPtrCAddInsDoc requestProcessorAddIns = SmartPtrCAddInsDoc(),
- const SmartPtrCAddInsDoc responseProcessorAddIns = SmartPtrCAddInsDoc(),
- const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection = SmartPtrCLoggingLevelCollectionDoc()) {
- if (! _isInitialized) {
- _responseFormatType = responseFormatType;
- _requestProcessorAddIns = requestProcessorAddIns;
- _responseProcessorAddIns = responseProcessorAddIns;
- _loggingLevelCollection = loggingLevelCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ResponseFormatType
- std::string getResponseFormatType() const {
- return _responseFormatType;
- }
-
- /// Accessor for the RequestProcessorAddIns
- SmartPtrCAddInsDoc getRequestProcessorAddIns() const {
- return _requestProcessorAddIns;
- }
-
- /// Accessor for the ResponseProcessorAddIns
- SmartPtrCAddInsDoc getResponseProcessorAddIns() const {
- return _responseProcessorAddIns;
- }
-
- /// Accessor for the LoggingLevelCollection
- SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const {
- return _loggingLevelCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _responseFormatType;
- SmartPtrCAddInsDoc _requestProcessorAddIns;
- SmartPtrCAddInsDoc _responseProcessorAddIns;
- SmartPtrCLoggingLevelCollectionDoc _loggingLevelCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRequestConfigDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRequestConfigDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRequestHeaderDoc_h_
-#define CRequestHeaderDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type RequestHeader
-class CRequestHeaderDoc {
-public:
- CRequestHeaderDoc() :
- _isInitialized(false),
- _sessionId(CAFCOMMON_GUID_NULL) {}
- virtual ~CRequestHeaderDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCRequestConfigDoc requestConfig,
- const SmartPtrCAuthnAuthzCollectionDoc authnAuthzCollection = SmartPtrCAuthnAuthzCollectionDoc(),
- const SmartPtrCProtocolCollectionDoc protocolCollection = SmartPtrCProtocolCollectionDoc(),
- const SmartPtrCPropertyCollectionDoc echoPropertyBag = SmartPtrCPropertyCollectionDoc(),
- const std::string version = "1.0",
- const std::string createdDateTime = CDateTimeUtils::getCurrentDateTime(),
- const UUID sessionId = CAFCOMMON_GUID_NULL) {
- if (! _isInitialized) {
- _requestConfig = requestConfig;
- _authnAuthzCollection = authnAuthzCollection;
- _protocolCollection = protocolCollection;
- _echoPropertyBag = echoPropertyBag;
- _version = version;
- _createdDateTime = createdDateTime;
- _sessionId = sessionId;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the RequestConfig
- SmartPtrCRequestConfigDoc getRequestConfig() const {
- return _requestConfig;
- }
-
- /// Accessor for the Authentication / Authorization Collection
- SmartPtrCAuthnAuthzCollectionDoc getAuthnAuthzCollection() const {
- return _authnAuthzCollection;
- }
-
- /// Accessor for the Protocol Collection
- SmartPtrCProtocolCollectionDoc getProtocolCollection() const {
- return _protocolCollection;
- }
-
- /// Accessor for the EchoPropertyBag
- SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const {
- return _echoPropertyBag;
- }
-
- /// Accessor for the version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the date/time when the request was created
- std::string getCreatedDateTime() const {
- return _createdDateTime;
- }
-
- /// Accessor for the session ID
- UUID getSessionId() const {
- return _sessionId;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCRequestConfigDoc _requestConfig;
- SmartPtrCAuthnAuthzCollectionDoc _authnAuthzCollection;
- SmartPtrCProtocolCollectionDoc _protocolCollection;
- SmartPtrCPropertyCollectionDoc _echoPropertyBag;
- std::string _version;
- std::string _createdDateTime;
- UUID _sessionId;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRequestHeaderDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRequestHeaderDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRequestInstanceParameterDoc_h_
-#define CRequestInstanceParameterDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type RequestInstanceParameter
-class CRequestInstanceParameterDoc {
-public:
- CRequestInstanceParameterDoc() :
- _isInitialized(false) {}
- virtual ~CRequestInstanceParameterDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::string classNamespace,
- const std::string className,
- const std::string classVersion,
- const std::deque<std::string> value) {
- if (! _isInitialized) {
- _name = name;
- _classNamespace = classNamespace;
- _className = className;
- _classVersion = classVersion;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the ClassNamespace
- std::string getClassNamespace() const {
- return _classNamespace;
- }
-
- /// Accessor for the ClassName
- std::string getClassName() const {
- return _className;
- }
-
- /// Accessor for the ClassVersion
- std::string getClassVersion() const {
- return _classVersion;
- }
-
- /// Accessor for the Value
- std::deque<std::string> getValue() const {
- return _value;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::string _classNamespace;
- std::string _className;
- std::string _classVersion;
- std::deque<std::string> _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRequestInstanceParameterDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRequestInstanceParameterDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRequestParameterDoc_h_
-#define CRequestParameterDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type RequestParameter
-class CRequestParameterDoc {
-public:
- CRequestParameterDoc() :
- _type(PARAMETER_NONE),
- _isInitialized(false) {}
- virtual ~CRequestParameterDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const PARAMETER_TYPE type,
- const std::deque<std::string> value) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Type
- PARAMETER_TYPE getType() const {
- return _type;
- }
-
- /// Accessor for the Value
- std::deque<std::string> getValue() const {
- return _value;
- }
-
-private:
- PARAMETER_TYPE _type;
-
- bool _isInitialized;
- std::string _name;
- std::deque<std::string> _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRequestParameterDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRequestParameterDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CStatisticsDoc_h_
-#define CStatisticsDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Statistics
-class CStatisticsDoc {
-public:
- CStatisticsDoc() :
- _providerJobNum(0),
- _providerJobTotal(0),
- _providerJobDurationSecs(0),
- _pmeNum(0),
- _pmeTotal(0),
- _pmeDurationSecs(0),
- _isInitialized(false) {}
- virtual ~CStatisticsDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCPropertyCollectionDoc propertyCollection,
- const int32 providerJobNum,
- const int32 providerJobTotal,
- const int32 providerJobDurationSecs,
- const int32 pmeNum,
- const int32 pmeTotal,
- const int32 pmeDurationSecs) {
- if (! _isInitialized) {
- _propertyCollection = propertyCollection;
- _providerJobNum = providerJobNum;
- _providerJobTotal = providerJobTotal;
- _providerJobDurationSecs = providerJobDurationSecs;
- _pmeNum = pmeNum;
- _pmeTotal = pmeTotal;
- _pmeDurationSecs = pmeDurationSecs;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the PropertyCollection
- SmartPtrCPropertyCollectionDoc getPropertyCollection() const {
- return _propertyCollection;
- }
-
- /// Accessor for the ProviderJobNum
- int32 getProviderJobNum() const {
- return _providerJobNum;
- }
-
- /// Accessor for the ProviderJobTotal
- int32 getProviderJobTotal() const {
- return _providerJobTotal;
- }
-
- /// Accessor for the ProviderJobDurationSecs
- int32 getProviderJobDurationSecs() const {
- return _providerJobDurationSecs;
- }
-
- /// Accessor for the PmeNum
- int32 getPmeNum() const {
- return _pmeNum;
- }
-
- /// Accessor for the PmeTotal
- int32 getPmeTotal() const {
- return _pmeTotal;
- }
-
- /// Accessor for the PmeDurationSecs
- int32 getPmeDurationSecs() const {
- return _pmeDurationSecs;
- }
-
-private:
- SmartPtrCPropertyCollectionDoc _propertyCollection;
- int32 _providerJobNum;
- int32 _providerJobTotal;
- int32 _providerJobDurationSecs;
- int32 _pmeNum;
- int32 _pmeTotal;
- int32 _pmeDurationSecs;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CStatisticsDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CStatisticsDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef CAFCORETYPESDOCINC_H_
-#define CAFCORETYPESDOCINC_H_
-
-namespace Caf {
- typedef enum {
- PROPERTY_NONE,
- PROPERTY_STRING,
- PROPERTY_SINT32,
- PROPERTY_UINT32,
- PROPERTY_SINT64,
- PROPERTY_UINT64,
- PROPERTY_DECIMAL,
- PROPERTY_DOUBLE,
- PROPERTY_BOOLEAN,
- PROPERTY_DATETIME
- } PROPERTY_TYPE;
-
- typedef enum {
- PARAMETER_NONE,
- PARAMETER_STRING,
- PARAMETER_SINT32,
- PARAMETER_UINT32,
- PARAMETER_SINT64,
- PARAMETER_UINT64,
- PARAMETER_DECIMAL,
- PARAMETER_DOUBLE,
- PARAMETER_BOOLEAN,
- PARAMETER_DATETIME
- } PARAMETER_TYPE;
-
- typedef enum {
- LOGGINGLEVEL_NONE,
- LOGGINGLEVEL_DEBUG,
- LOGGINGLEVEL_INFO,
- LOGGINGLEVEL_WARN,
- LOGGINGLEVEL_ERROR,
- LOGGINGLEVEL_CRITICAL
- } LOGGINGLEVEL_TYPE;
-
- typedef enum {
- LOGGINGCOMPONENT_NONE,
- LOGGINGCOMPONENT_COMMUNICATIONS,
- LOGGINGCOMPONENT_MANAGEMENTAGENT,
- LOGGINGCOMPONENT_UINT32,
- LOGGINGCOMPONENT_PROVIDERFRAMEWORK,
- LOGGINGCOMPONENT_PROVIDER
- } LOGGINGCOMPONENT_TYPE;
-
- typedef enum {
- CMS_POLICY_NONE,
- CMS_POLICY_CAF_ENCRYPTED,
- CMS_POLICY_CAF_SIGNED,
- CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED,
- CMS_POLICY_APP_SIGNED,
- CMS_POLICY_APP_ENCRYPTED,
- CMS_POLICY_APP_ENCRYPTED_AND_SIGNED
- } CMS_POLICY;
-}
-
-#include "CFullyQualifiedClassGroupDoc.h"
-#include "CAttachmentNameCollectionDoc.h"
-
-#include "CLoggingLevelElemDoc.h"
-#include "CLoggingLevelCollectionDoc.h"
-
-#include "CRequestInstanceParameterDoc.h"
-#include "CRequestParameterDoc.h"
-
-#include "CInlineAttachmentDoc.h"
-#include "CInlineAttachmentCollectionDoc.h"
-
-#include "CAttachmentDoc.h"
-#include "CAttachmentCollectionDoc.h"
-
-#include "CParameterCollectionDoc.h"
-#include "COperationDoc.h"
-
-#include "CPropertyDoc.h"
-#include "CPropertyCollectionDoc.h"
-
-#include "CAddInCollectionDoc.h"
-#include "CAddInsDoc.h"
-
-#include "CAuthnAuthzDoc.h"
-#include "CAuthnAuthzCollectionDoc.h"
-
-#include "CProtocolDoc.h"
-#include "CProtocolCollectionDoc.h"
-
-#include "CRequestConfigDoc.h"
-#include "CRequestHeaderDoc.h"
-
-#include "CClassFiltersDoc.h"
-#include "CClassSpecifierDoc.h"
-#include "CStatisticsDoc.h"
-
-#endif /* CAFCORETYPESDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CFullPackageElemDoc_h_
-#define CFullPackageElemDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type FullPackageElem
-class CFullPackageElemDoc {
-public:
- CFullPackageElemDoc() :
- _index(0),
- _isInitialized(false) {}
- virtual ~CFullPackageElemDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const int32 index,
- const std::string packageNamespace,
- const std::string packageName,
- const std::string packageVersion,
- const SmartPtrCPackageDefnDoc installPackage,
- const SmartPtrCPackageDefnDoc uninstallPackage) {
- if (! _isInitialized) {
- _index = index;
- _packageNamespace = packageNamespace;
- _packageName = packageName;
- _packageVersion = packageVersion;
- _installPackage = installPackage;
- _uninstallPackage = uninstallPackage;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Index
- int32 getIndex() const {
- return _index;
- }
-
- /// Accessor for the PackageNamespace
- std::string getPackageNamespace() const {
- return _packageNamespace;
- }
-
- /// Accessor for the PackageName
- std::string getPackageName() const {
- return _packageName;
- }
-
- /// Accessor for the PackageVersion
- std::string getPackageVersion() const {
- return _packageVersion;
- }
-
- /// Accessor for the InstallPackage
- SmartPtrCPackageDefnDoc getInstallPackage() const {
- return _installPackage;
- }
-
- /// Accessor for the UninstallPackage
- SmartPtrCPackageDefnDoc getUninstallPackage() const {
- return _uninstallPackage;
- }
-
-private:
- int32 _index;
- std::string _packageNamespace;
- std::string _packageName;
- std::string _packageVersion;
- SmartPtrCPackageDefnDoc _installPackage;
- SmartPtrCPackageDefnDoc _uninstallPackage;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CFullPackageElemDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CFullPackageElemDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CGetInventoryJobDoc_h_
-#define CGetInventoryJobDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type GetInventoryJob
-class CGetInventoryJobDoc {
-public:
- CGetInventoryJobDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CGetInventoryJobDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId) {
- if (! _isInitialized) {
- _jobId = jobId;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
-private:
- UUID _jobId;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CGetInventoryJobDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CGetInventoryJobDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstallBatchDoc_h_
-#define CInstallBatchDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstallBatch
-class CInstallBatchDoc {
-public:
- CInstallBatchDoc() :
- _isInitialized(false) {}
- virtual ~CInstallBatchDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCGetInventoryJobDoc getInventory,
- const SmartPtrCInstallProviderJobDoc installProvider,
- const SmartPtrCUninstallProviderJobDoc uninstallProvider) {
- if (! _isInitialized) {
- _getInventory = getInventory;
- _installProvider = installProvider;
- _uninstallProvider = uninstallProvider;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the GetInventory
- SmartPtrCGetInventoryJobDoc getGetInventory() const {
- return _getInventory;
- }
-
- /// Accessor for the InstallProvider
- SmartPtrCInstallProviderJobDoc getInstallProvider() const {
- return _installProvider;
- }
-
- /// Accessor for the UninstallProvider
- SmartPtrCUninstallProviderJobDoc getUninstallProvider() const {
- return _uninstallProvider;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCGetInventoryJobDoc _getInventory;
- SmartPtrCInstallProviderJobDoc _installProvider;
- SmartPtrCUninstallProviderJobDoc _uninstallProvider;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstallBatchDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstallBatchDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstallPackageSpecDoc_h_
-#define CInstallPackageSpecDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstallPackageSpec
-class CInstallPackageSpecDoc {
-public:
- CInstallPackageSpecDoc() :
- _isInitialized(false) {}
- virtual ~CInstallPackageSpecDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string packageNamespace,
- const std::string packageName,
- const std::string packageVersion,
- const std::string startupAttachmentName,
- const std::string packageAttachmentName,
- const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection,
- const std::string arguments) {
- if (! _isInitialized) {
- _packageNamespace = packageNamespace;
- _packageName = packageName;
- _packageVersion = packageVersion;
- _startupAttachmentName = startupAttachmentName;
- _packageAttachmentName = packageAttachmentName;
- _attachmentNameCollection = attachmentNameCollection;
- _attachmentCollection = attachmentCollection;
- _arguments = arguments;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the PackageNamespace
- std::string getPackageNamespace() const {
- return _packageNamespace;
- }
-
- /// Accessor for the PackageName
- std::string getPackageName() const {
- return _packageName;
- }
-
- /// Accessor for the PackageVersion
- std::string getPackageVersion() const {
- return _packageVersion;
- }
-
- /// Accessor for the StartupAttachmentName
- std::string getStartupAttachmentName() const {
- return _startupAttachmentName;
- }
-
- /// Accessor for the PackageAttachmentName
- std::string getPackageAttachmentName() const {
- return _packageAttachmentName;
- }
-
- /// Accessor for the AttachmentNameCollection
- SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const {
- return _attachmentNameCollection;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
- /// Accessor for the Arguments
- std::string getArguments() const {
- return _arguments;
- }
-
-private:
- bool _isInitialized;
-
- std::string _packageNamespace;
- std::string _packageName;
- std::string _packageVersion;
- std::string _startupAttachmentName;
- std::string _packageAttachmentName;
- SmartPtrCAttachmentNameCollectionDoc _attachmentNameCollection;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- std::string _arguments;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstallPackageSpecDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstallPackageSpecDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstallProviderJobDoc_h_
-#define CInstallProviderJobDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstallProviderJob
-class CInstallProviderJobDoc {
-public:
- CInstallProviderJobDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _jobId(CAFCOMMON_GUID_NULL),
- _packageOSType(PACKAGE_OS_NONE),
- _isInitialized(false) {}
- virtual ~CInstallProviderJobDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID jobId,
- const std::string providerNamespace,
- const std::string providerName,
- const std::string providerVersion,
- const PACKAGE_OS_TYPE packageOSType,
- const std::deque<SmartPtrCFullPackageElemDoc> packageCollection) {
- if (! _isInitialized) {
- _clientId = clientId;
- _jobId = jobId;
- _providerNamespace = providerNamespace;
- _providerName = providerName;
- _providerVersion = providerVersion;
- _packageOSType = packageOSType;
- _packageCollection = packageCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the ProviderNamespace
- std::string getProviderNamespace() const {
- return _providerNamespace;
- }
-
- /// Accessor for the ProviderName
- std::string getProviderName() const {
- return _providerName;
- }
-
- /// Accessor for the ProviderVersion
- std::string getProviderVersion() const {
- return _providerVersion;
- }
-
- /// Accessor for the PackageOSType
- PACKAGE_OS_TYPE getPackageOSType() const {
- return _packageOSType;
- }
-
- /// Accessor for the PackageVal
- std::deque<SmartPtrCFullPackageElemDoc> getPackageCollection() const {
- return _packageCollection;
- }
-
-private:
- UUID _clientId;
- UUID _jobId;
- std::string _providerNamespace;
- std::string _providerName;
- std::string _providerVersion;
- PACKAGE_OS_TYPE _packageOSType;
- std::deque<SmartPtrCFullPackageElemDoc> _packageCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstallProviderJobDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstallProviderJobDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstallProviderSpecDoc_h_
-#define CInstallProviderSpecDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstallProviderSpec
-class CInstallProviderSpecDoc {
-public:
- CInstallProviderSpecDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CInstallProviderSpecDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const std::string providerNamespace,
- const std::string providerName,
- const std::string providerVersion,
- const std::deque<SmartPtrCMinPackageElemDoc> packageCollection) {
- if (! _isInitialized) {
- _clientId = clientId;
- _providerNamespace = providerNamespace;
- _providerName = providerName;
- _providerVersion = providerVersion;
- _packageCollection = packageCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the ProviderNamespace
- std::string getProviderNamespace() const {
- return _providerNamespace;
- }
-
- /// Accessor for the ProviderName
- std::string getProviderName() const {
- return _providerName;
- }
-
- /// Accessor for the ProviderVersion
- std::string getProviderVersion() const {
- return _providerVersion;
- }
-
- /// Accessor for the PackageVal
- std::deque<SmartPtrCMinPackageElemDoc> getPackageCollection() const {
- return _packageCollection;
- }
-
-private:
- UUID _clientId;
- std::string _providerNamespace;
- std::string _providerName;
- std::string _providerVersion;
- std::deque<SmartPtrCMinPackageElemDoc> _packageCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstallProviderSpecDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstallProviderSpecDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstallRequestDoc_h_
-#define CInstallRequestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstallRequest
-class CInstallRequestDoc {
-public:
- CInstallRequestDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CInstallRequestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCRequestHeaderDoc requestHeader,
- const SmartPtrCInstallBatchDoc batch,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _requestHeader = requestHeader;
- _batch = batch;
- _attachmentCollection = attachmentCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the RequestHeader
- SmartPtrCRequestHeaderDoc getRequestHeader() const {
- return _requestHeader;
- }
-
- /// Accessor for the Batch
- SmartPtrCInstallBatchDoc getBatch() const {
- return _batch;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCRequestHeaderDoc _requestHeader;
- SmartPtrCInstallBatchDoc _batch;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstallRequestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstallRequestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMinPackageElemDoc_h_
-#define CMinPackageElemDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MinPackageElem
-class CMinPackageElemDoc {
-public:
- CMinPackageElemDoc() :
- _index(0),
- _isInitialized(false) {}
- virtual ~CMinPackageElemDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const int32 index,
- const std::string packageNamespace,
- const std::string packageName,
- const std::string packageVersion) {
- if (! _isInitialized) {
- _index = index;
- _packageNamespace = packageNamespace;
- _packageName = packageName;
- _packageVersion = packageVersion;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Index
- int32 getIndex() const {
- return _index;
- }
-
- /// Accessor for the PackageNamespace
- std::string getPackageNamespace() const {
- return _packageNamespace;
- }
-
- /// Accessor for the PackageName
- std::string getPackageName() const {
- return _packageName;
- }
-
- /// Accessor for the PackageVersion
- std::string getPackageVersion() const {
- return _packageVersion;
- }
-
-private:
- int32 _index;
- std::string _packageNamespace;
- std::string _packageName;
- std::string _packageVersion;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMinPackageElemDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMinPackageElemDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CPackageDefnDoc_h_
-#define CPackageDefnDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type PackageDefn
-class CPackageDefnDoc {
-public:
- CPackageDefnDoc() :
- _isInitialized(false) {}
- virtual ~CPackageDefnDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string startupAttachmentName,
- const std::string packageAttachmentName,
- const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection,
- const std::string arguments) {
- if (! _isInitialized) {
- _startupAttachmentName = startupAttachmentName;
- _packageAttachmentName = packageAttachmentName;
- _attachmentNameCollection = attachmentNameCollection;
- _arguments = arguments;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the StartupAttachmentName
- std::string getStartupAttachmentName() const {
- return _startupAttachmentName;
- }
-
- /// Accessor for the PackageAttachmentName
- std::string getPackageAttachmentName() const {
- return _packageAttachmentName;
- }
-
- /// Accessor for the AttachmentNameCollection
- SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const {
- return _attachmentNameCollection;
- }
-
- /// Accessor for the Arguments
- std::string getArguments() const {
- return _arguments;
- }
-
-private:
- bool _isInitialized;
-
- std::string _startupAttachmentName;
- std::string _packageAttachmentName;
- SmartPtrCAttachmentNameCollectionDoc _attachmentNameCollection;
- std::string _arguments;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPackageDefnDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPackageDefnDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CUninstallProviderJobDoc_h_
-#define CUninstallProviderJobDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type UninstallProviderJob
-class CUninstallProviderJobDoc {
-public:
- CUninstallProviderJobDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _jobId(CAFCOMMON_GUID_NULL),
- _packageOSType(PACKAGE_OS_NONE),
- _isInitialized(false) {}
- virtual ~CUninstallProviderJobDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID jobId,
- const std::string providerNamespace,
- const std::string providerName,
- const std::string providerVersion,
- const PACKAGE_OS_TYPE packageOSType) {
- if (! _isInitialized) {
- _clientId = clientId;
- _jobId = jobId;
- _providerNamespace = providerNamespace;
- _providerName = providerName;
- _providerVersion = providerVersion;
- _packageOSType = packageOSType;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the ProviderNamespace
- std::string getProviderNamespace() const {
- return _providerNamespace;
- }
-
- /// Accessor for the ProviderName
- std::string getProviderName() const {
- return _providerName;
- }
-
- /// Accessor for the ProviderVersion
- std::string getProviderVersion() const {
- return _providerVersion;
- }
-
- /// Accessor for the PackageOSType
- PACKAGE_OS_TYPE getPackageOSType() const {
- return _packageOSType;
- }
-
-private:
- UUID _clientId;
- UUID _jobId;
- std::string _providerNamespace;
- std::string _providerName;
- std::string _providerVersion;
- PACKAGE_OS_TYPE _packageOSType;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CUninstallProviderJobDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CUninstallProviderJobDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef CAFINSTALLREQUESTDOCINC_H_
-#define CAFINSTALLREQUESTDOCINC_H_
-
-namespace Caf {
- typedef enum {
- PACKAGE_OS_NONE,
- PACKAGE_OS_ALL,
- PACKAGE_OS_NIX,
- PACKAGE_OS_WIN
- } PACKAGE_OS_TYPE;
-}
-
-#include "CPackageDefnDoc.h"
-#include "CMinPackageElemDoc.h"
-#include "CFullPackageElemDoc.h"
-
-#include "CInstallPackageSpecDoc.h"
-#include "CInstallProviderSpecDoc.h"
-
-#include "CGetInventoryJobDoc.h"
-#include "CUninstallProviderJobDoc.h"
-#include "CInstallProviderJobDoc.h"
-
-#include "CInstallBatchDoc.h"
-#include "CInstallRequestDoc.h"
-
-#endif /* CAFINSTALLREQUESTINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagRequestDoc_h_
-#define CDiagRequestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagRequest
-class CDiagRequestDoc {
-public:
- CDiagRequestDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CDiagRequestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCRequestHeaderDoc requestHeader,
- const SmartPtrCDiagBatchDoc batch) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _requestHeader = requestHeader;
- _batch = batch;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the RequestHeader
- SmartPtrCRequestHeaderDoc getRequestHeader() const {
- return _requestHeader;
- }
-
- /// Accessor for the Batch
- SmartPtrCDiagBatchDoc getBatch() const {
- return _batch;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCRequestHeaderDoc _requestHeader;
- SmartPtrCDiagBatchDoc _batch;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagRequestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagRequestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef DIAGREQUESTDOCINC_H_
-#define DIAGREQUESTDOCINC_H_
-
-#include "CDiagRequestDoc.h"
-
-#endif /* DIAGREQUESTDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagBatchDoc_h_
-#define CDiagBatchDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagBatch
-class CDiagBatchDoc {
-public:
- CDiagBatchDoc() :
- _isInitialized(false) {}
- virtual ~CDiagBatchDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCDiagCollectInstancesDoc collectInstances,
- const SmartPtrCDiagSetValueCollectionDoc setValueCollection,
- const SmartPtrCDiagDeleteValueCollectionDoc deleteValueCollection) {
- if (! _isInitialized) {
- _collectInstances = collectInstances;
- _setValueCollection = setValueCollection;
- _deleteValueCollection = deleteValueCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the CollectInstances
- SmartPtrCDiagCollectInstancesDoc getCollectInstances() const {
- return _collectInstances;
- }
-
- /// Accessor for the SetValueCollection
- SmartPtrCDiagSetValueCollectionDoc getSetValueCollection() const {
- return _setValueCollection;
- }
-
- /// Accessor for the DeleteValueCollection
- SmartPtrCDiagDeleteValueCollectionDoc getDeleteValueCollection() const {
- return _deleteValueCollection;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCDiagCollectInstancesDoc _collectInstances;
- SmartPtrCDiagSetValueCollectionDoc _setValueCollection;
- SmartPtrCDiagDeleteValueCollectionDoc _deleteValueCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagBatchDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagBatchDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagCollectInstancesDoc_h_
-#define CDiagCollectInstancesDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagCollectInstances
-class CDiagCollectInstancesDoc {
-public:
- CDiagCollectInstancesDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CDiagCollectInstancesDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId) {
- if (! _isInitialized) {
- _jobId = jobId;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
-private:
- UUID _jobId;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagCollectInstancesDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagCollectInstancesDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagDeleteValueCollectionDoc_h_
-#define CDiagDeleteValueCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagDeleteValueCollection
-class CDiagDeleteValueCollectionDoc {
-public:
- CDiagDeleteValueCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CDiagDeleteValueCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCDiagDeleteValueDoc> deleteValueCollection) {
- if (! _isInitialized) {
- _deleteValueCollection = deleteValueCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the DeleteValue
- std::deque<SmartPtrCDiagDeleteValueDoc> getDeleteValueCollection() const {
- return _deleteValueCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCDiagDeleteValueDoc> _deleteValueCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagDeleteValueCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagDeleteValueCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagDeleteValueDoc_h_
-#define CDiagDeleteValueDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagDeleteValue
-class CDiagDeleteValueDoc {
-public:
- CDiagDeleteValueDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CDiagDeleteValueDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId,
- const std::string fileAlias,
- const std::string valueName) {
- if (! _isInitialized) {
- _jobId = jobId;
- _fileAlias = fileAlias;
- _valueName = valueName;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the FileAlias
- std::string getFileAlias() const {
- return _fileAlias;
- }
-
- /// Accessor for the ValueName
- std::string getValueName() const {
- return _valueName;
- }
-
-private:
- UUID _jobId;
- std::string _fileAlias;
- std::string _valueName;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagDeleteValueDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagDeleteValueDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagSetValueCollectionDoc_h_
-#define CDiagSetValueCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagSetValueCollection
-class CDiagSetValueCollectionDoc {
-public:
- CDiagSetValueCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CDiagSetValueCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCDiagSetValueDoc> setValueCollection) {
- if (! _isInitialized) {
- _setValueCollection = setValueCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the SetValue
- std::deque<SmartPtrCDiagSetValueDoc> getSetValueCollection() const {
- return _setValueCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCDiagSetValueDoc> _setValueCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagSetValueCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagSetValueCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDiagSetValueDoc_h_
-#define CDiagSetValueDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DiagSetValue
-class CDiagSetValueDoc {
-public:
- CDiagSetValueDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CDiagSetValueDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId,
- const std::string fileAlias,
- const SmartPtrCPropertyDoc value) {
- if (! _isInitialized) {
- _jobId = jobId;
- _fileAlias = fileAlias;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the FileAlias
- std::string getFileAlias() const {
- return _fileAlias;
- }
-
- /// Accessor for the Value
- SmartPtrCPropertyDoc getValue() const {
- return _value;
- }
-
-private:
- UUID _jobId;
- std::string _fileAlias;
- SmartPtrCPropertyDoc _value;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDiagSetValueDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDiagSetValueDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef DIAGTYPESDOCINC_H_
-#define DIAGTYPESDOCINC_H_
-
-namespace Caf {
-}
-
-#include "CDiagDeleteValueDoc.h"
-#include "CDiagDeleteValueCollectionDoc.h"
-
-#include "CDiagSetValueDoc.h"
-#include "CDiagSetValueCollectionDoc.h"
-
-#include "CDiagCollectInstancesDoc.h"
-
-#include "CDiagBatchDoc.h"
-
-#endif /* DIAGTYPESDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtRequestDoc_h_
-#define CMgmtRequestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtRequest
-class CMgmtRequestDoc {
-public:
- CMgmtRequestDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CMgmtRequestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCRequestHeaderDoc requestHeader,
- const SmartPtrCMgmtBatchDoc batch,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _requestHeader = requestHeader;
- _batch = batch;
- _attachmentCollection = attachmentCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the RequestHeader
- SmartPtrCRequestHeaderDoc getRequestHeader() const {
- return _requestHeader;
- }
-
- /// Accessor for the Batch
- SmartPtrCMgmtBatchDoc getBatch() const {
- return _batch;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCRequestHeaderDoc _requestHeader;
- SmartPtrCMgmtBatchDoc _batch;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtRequestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtRequestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef MTMTREQUESTDOCINC_H_
-#define MTMTREQUESTDOCINC_H_
-
-namespace Caf {
-}
-
-#include "CMgmtRequestDoc.h"
-
-#endif /* MTMTREQUESTDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtBatchDoc_h_
-#define CMgmtBatchDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtBatch
-class CMgmtBatchDoc {
-public:
- CMgmtBatchDoc() :
- _isInitialized(false) {}
- virtual ~CMgmtBatchDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCMgmtCollectSchemaDoc collectSchema,
- const SmartPtrCMgmtCollectInstancesCollectionDoc collectInstancesCollection,
- const SmartPtrCMgmtInvokeOperationCollectionDoc invokeOperationCollection) {
- if (! _isInitialized) {
- _collectSchema = collectSchema;
- _collectInstancesCollection = collectInstancesCollection;
- _invokeOperationCollection = invokeOperationCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the CollectSchema
- SmartPtrCMgmtCollectSchemaDoc getCollectSchema() const {
- return _collectSchema;
- }
-
- /// Accessor for the CollectInstancesCollection
- SmartPtrCMgmtCollectInstancesCollectionDoc getCollectInstancesCollection() const {
- return _collectInstancesCollection;
- }
-
- /// Accessor for the InvokeOperationCollection
- SmartPtrCMgmtInvokeOperationCollectionDoc getInvokeOperationCollection() const {
- return _invokeOperationCollection;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCMgmtCollectSchemaDoc _collectSchema;
- SmartPtrCMgmtCollectInstancesCollectionDoc _collectInstancesCollection;
- SmartPtrCMgmtInvokeOperationCollectionDoc _invokeOperationCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtBatchDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtBatchDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtCollectInstancesCollectionDoc_h_
-#define CMgmtCollectInstancesCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtCollectInstancesCollection
-class CMgmtCollectInstancesCollectionDoc {
-public:
- CMgmtCollectInstancesCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CMgmtCollectInstancesCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCMgmtCollectInstancesDoc> collectInstancesCollection) {
- if (! _isInitialized) {
- _collectInstancesCollection = collectInstancesCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the CollectInstances
- std::deque<SmartPtrCMgmtCollectInstancesDoc> getCollectInstancesCollection() const {
- return _collectInstancesCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCMgmtCollectInstancesDoc> _collectInstancesCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtCollectInstancesCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtCollectInstancesCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtCollectInstancesDoc_h_
-#define CMgmtCollectInstancesDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtCollectInstances
-class CMgmtCollectInstancesDoc {
-public:
- CMgmtCollectInstancesDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CMgmtCollectInstancesDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId,
- const SmartPtrCClassSpecifierDoc classSpecifier,
- const SmartPtrCParameterCollectionDoc parameterCollection) {
- if (! _isInitialized) {
- _jobId = jobId;
- _classSpecifier = classSpecifier;
- _parameterCollection = parameterCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the ClassSpecifier
- SmartPtrCClassSpecifierDoc getClassSpecifier() const {
- return _classSpecifier;
- }
-
- /// Accessor for the ParameterCollection
- SmartPtrCParameterCollectionDoc getParameterCollection() const {
- return _parameterCollection;
- }
-
-private:
- UUID _jobId;
- SmartPtrCClassSpecifierDoc _classSpecifier;
- SmartPtrCParameterCollectionDoc _parameterCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtCollectInstancesDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtCollectInstancesDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtCollectSchemaDoc_h_
-#define CMgmtCollectSchemaDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtCollectSchema
-class CMgmtCollectSchemaDoc {
-public:
- CMgmtCollectSchemaDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CMgmtCollectSchemaDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId) {
- if (! _isInitialized) {
- _jobId = jobId;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
-private:
- UUID _jobId;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtCollectSchemaDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtCollectSchemaDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtInvokeOperationCollectionDoc_h_
-#define CMgmtInvokeOperationCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtInvokeOperationCollection
-class CMgmtInvokeOperationCollectionDoc {
-public:
- CMgmtInvokeOperationCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CMgmtInvokeOperationCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCMgmtInvokeOperationDoc> invokeOperationCollection) {
- if (! _isInitialized) {
- _invokeOperationCollection = invokeOperationCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the InvokeOperation
- std::deque<SmartPtrCMgmtInvokeOperationDoc> getInvokeOperationCollection() const {
- return _invokeOperationCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCMgmtInvokeOperationDoc> _invokeOperationCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtInvokeOperationCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtInvokeOperationCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMgmtInvokeOperationDoc_h_
-#define CMgmtInvokeOperationDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MgmtInvokeOperation
-class CMgmtInvokeOperationDoc {
-public:
- CMgmtInvokeOperationDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CMgmtInvokeOperationDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID jobId,
- const SmartPtrCClassSpecifierDoc classSpecifier,
- const SmartPtrCOperationDoc operation) {
- if (! _isInitialized) {
- _jobId = jobId;
- _classSpecifier = classSpecifier;
- _operation = operation;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the ClassSpecifier
- SmartPtrCClassSpecifierDoc getClassSpecifier() const {
- return _classSpecifier;
- }
-
- /// Accessor for the Operation
- SmartPtrCOperationDoc getOperation() const {
- return _operation;
- }
-
-private:
- UUID _jobId;
- SmartPtrCClassSpecifierDoc _classSpecifier;
- SmartPtrCOperationDoc _operation;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMgmtInvokeOperationDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMgmtInvokeOperationDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef MGMTTYPESDOCINC_H_
-#define MGMTTYPESDOCINC_H_
-
-namespace Caf {
-}
-
-#include "CMgmtCollectSchemaDoc.h"
-
-#include "CMgmtCollectInstancesDoc.h"
-#include "CMgmtCollectInstancesCollectionDoc.h"
-
-#include "CMgmtInvokeOperationDoc.h"
-#include "CMgmtInvokeOperationCollectionDoc.h"
-
-#include "CMgmtBatchDoc.h"
-
-#endif /* MGMTTYPESDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMultiPmeMgmtBatchCollectionDoc_h_
-#define CMultiPmeMgmtBatchCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MultiPmeMgmtBatchCollection
-class CMultiPmeMgmtBatchCollectionDoc {
-public:
- CMultiPmeMgmtBatchCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CMultiPmeMgmtBatchCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCMultiPmeMgmtBatchDoc> multiPmeBatch) {
- if (! _isInitialized) {
- _multiPmeBatch = multiPmeBatch;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the MultiPmeBatch
- std::deque<SmartPtrCMultiPmeMgmtBatchDoc> getMultiPmeBatch() const {
- return _multiPmeBatch;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCMultiPmeMgmtBatchDoc> _multiPmeBatch;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMultiPmeMgmtBatchCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMultiPmeMgmtBatchCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMultiPmeMgmtBatchDoc_h_
-#define CMultiPmeMgmtBatchDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MultiPmeMgmtBatch
-class CMultiPmeMgmtBatchDoc {
-public:
- CMultiPmeMgmtBatchDoc() :
- _isInitialized(false) {}
- virtual ~CMultiPmeMgmtBatchDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCPmeIdCollectionDoc pmeIdCollection,
- const SmartPtrCMgmtBatchDoc batch) {
- if (! _isInitialized) {
- _pmeIdCollection = pmeIdCollection;
- _batch = batch;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the PmeIdCollection
- SmartPtrCPmeIdCollectionDoc getPmeIdCollection() const {
- return _pmeIdCollection;
- }
-
- /// Accessor for the Batch
- SmartPtrCMgmtBatchDoc getBatch() const {
- return _batch;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCPmeIdCollectionDoc _pmeIdCollection;
- SmartPtrCMgmtBatchDoc _batch;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMultiPmeMgmtBatchDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMultiPmeMgmtBatchDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMultiPmeMgmtRequestDoc_h_
-#define CMultiPmeMgmtRequestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type MultiPmeMgmtRequest
-class CMultiPmeMgmtRequestDoc {
-public:
- CMultiPmeMgmtRequestDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CMultiPmeMgmtRequestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const SmartPtrCRequestHeaderDoc requestHeader,
- const SmartPtrCMultiPmeMgmtBatchCollectionDoc multiPmeBatchCollection) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _requestHeader = requestHeader;
- _multiPmeBatchCollection = multiPmeBatchCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the RequestHeader
- SmartPtrCRequestHeaderDoc getRequestHeader() const {
- return _requestHeader;
- }
-
- /// Accessor for the MultiPmeBatchCollection
- SmartPtrCMultiPmeMgmtBatchCollectionDoc getMultiPmeBatchCollection() const {
- return _multiPmeBatchCollection;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- SmartPtrCRequestHeaderDoc _requestHeader;
- SmartPtrCMultiPmeMgmtBatchCollectionDoc _multiPmeBatchCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMultiPmeMgmtRequestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMultiPmeMgmtRequestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CPmeIdCollectionDoc_h_
-#define CPmeIdCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type PmeIdCollection
-class CPmeIdCollectionDoc {
-public:
- CPmeIdCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CPmeIdCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<std::string> pmeIdCollection) {
- if (! _isInitialized) {
- _pmeIdCollection = pmeIdCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the PmeId
- std::deque<std::string> getPmeIdCollection() const {
- return _pmeIdCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<std::string> _pmeIdCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPmeIdCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPmeIdCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef MULTIPMEMGMTREQUESTDOCINC_H_
-#define MULTIPMEMGMTREQUESTDOCINC_H_
-
-#include "CPmeIdCollectionDoc.h"
-#include "CMultiPmeMgmtBatchDoc.h"
-#include "CMultiPmeMgmtBatchCollectionDoc.h"
-#include "CMultiPmeMgmtRequestDoc.h"
-
-#endif /* MULTIPMEMGMTREQUESTDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: July 3, 2015
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CPayloadEnvelopeDoc_h_
-#define CPayloadEnvelopeDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type PayloadEnvelope
-class CPayloadEnvelopeDoc {
-public:
- CPayloadEnvelopeDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CPayloadEnvelopeDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID& clientId,
- const UUID& requestId,
- const std::string& pmeId,
- const std::string& payloadType,
- const std::string& payloadVersion,
- const SmartPtrCAttachmentCollectionDoc& attachmentCollection,
- const SmartPtrCProtocolCollectionDoc& protocolCollection = SmartPtrCProtocolCollectionDoc(),
- const SmartPtrCPropertyCollectionDoc& headerCollection = SmartPtrCPropertyCollectionDoc(),
- const std::string version = "1.0") {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _payloadType = payloadType;
- _payloadVersion = payloadVersion;
- _attachmentCollection = attachmentCollection;
- _protocolCollection = protocolCollection;
- _headerCollection = headerCollection;
- _version = version;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the PayloadType
- std::string getPayloadType() const {
- return _payloadType;
- }
-
- /// Accessor for the PayloadVersion
- std::string getPayloadVersion() const {
- return _payloadVersion;
- }
-
- /// Accessor for the Protocol Collection
- SmartPtrCProtocolCollectionDoc getProtocolCollection() const {
- return _protocolCollection;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
- /// Accessor for the Headers
- SmartPtrCPropertyCollectionDoc getHeaderCollection() const {
- return _headerCollection;
- }
-
- /// Accessor for the version
- std::string getVersion() const {
- return _version;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- std::string _payloadType;
- std::string _payloadVersion;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- SmartPtrCProtocolCollectionDoc _protocolCollection;
- SmartPtrCPropertyCollectionDoc _headerCollection;
- std::string _version;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPayloadEnvelopeDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPayloadEnvelopeDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef PayloadEnvelopeDocInc_H_
-#define PayloadEnvelopeDocInc_H_
-
-#include "CPayloadEnvelopeDoc.h"
-
-#endif /* PayloadEnvelopeDocInc_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CAmqpBrokerCollectionDoc_h_
-#define CAmqpBrokerCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type AmqpBrokerCollection
-class CAmqpBrokerCollectionDoc {
-public:
- CAmqpBrokerCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CAmqpBrokerCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCAmqpBrokerDoc> amqpBroker = std::deque<SmartPtrCAmqpBrokerDoc>()) {
- if (! _isInitialized) {
- _amqpBroker = amqpBroker;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the AmqpBroker
- std::deque<SmartPtrCAmqpBrokerDoc> getAmqpBroker() const {
- return _amqpBroker;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCAmqpBrokerDoc> _amqpBroker;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAmqpBrokerCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAmqpBrokerCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CAmqpBrokerDoc_h_
-#define CAmqpBrokerDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CAmqpBrokerDoc
-class CAmqpBrokerDoc {
-public:
- CAmqpBrokerDoc() :
- _isInitialized(false) {}
- virtual ~CAmqpBrokerDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string& amqpBrokerId = std::string(),
- const std::string& uri = std::string(),
- const std::string& tlsCert = std::string(),
- const std::string& tlsProtocol = std::string(),
- const Cdeqstr& tlsCipherCollection = Cdeqstr(),
- const SmartPtrCCertCollectionDoc& tlsCertCollection = SmartPtrCCertCollectionDoc(),
- const std::string& tlsCertPath = std::string(),
- const SmartPtrCCertPathCollectionDoc& tlsCertPathCollection = SmartPtrCCertPathCollectionDoc()) {
- if (! _isInitialized) {
- _amqpBrokerId = amqpBrokerId;
- _uri = uri;
- _tlsCert = tlsCert;
- _tlsProtocol = tlsProtocol;
- _tlsCipherCollection = tlsCipherCollection;
- _tlsCertCollection = tlsCertCollection;
-
- _tlsCertPath = tlsCertPath;
- _tlsCertPathCollection = tlsCertPathCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the AmqpBrokerId
- std::string getAmqpBrokerId() const {
- return _amqpBrokerId;
- }
-
- /// Accessor for the Uri
- std::string getUri() const {
- return _uri;
- }
-
- /// Accessor for the TlsCert
- std::string getTlsCert() const {
- return _tlsCert;
- }
-
- /// Accessor for the TlsProtocol
- std::string getTlsProtocol() const {
- return _tlsProtocol;
- }
-
- /// Accessor for the tlsCipherCollection
- Cdeqstr getTlsCipherCollection() const {
- return _tlsCipherCollection;
- }
-
- /// Accessor for the TlsCertCollection
- SmartPtrCCertCollectionDoc getTlsCertCollection() const {
- return _tlsCertCollection;
- }
-
- /// Accessor for the TlsCertPath
- std::string getTlsCertPath() const {
- return _tlsCertPath;
- }
-
- /// Accessor for the TlsCertPathCollection
- SmartPtrCCertPathCollectionDoc getTlsCertPathCollection() const {
- return _tlsCertPathCollection;
- }
-
-private:
- std::string _amqpBrokerId;
- std::string _uri;
- std::string _tlsCert;
- std::string _tlsProtocol;
- Cdeqstr _tlsCipherCollection;
- SmartPtrCCertCollectionDoc _tlsCertCollection;
-
- std::string _tlsCertPath;
- SmartPtrCCertPathCollectionDoc _tlsCertPathCollection;
-
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CAmqpBrokerDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CAmqpBrokerDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CCertCollectionDoc_h_
-#define CCertCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CertCollection
-class CCertCollectionDoc {
-public:
- CCertCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CCertCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<std::string> certCollection = std::deque<std::string>()) {
- if (! _isInitialized) {
- _certCollection = certCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Cert
- std::deque<std::string> getCert() const {
- return _certCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<std::string> _certCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CCertCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CCertCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CCertPathCollectionDoc_h_
-#define CCertPathCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CertPathCollection
-class CCertPathCollectionDoc {
-public:
- CCertPathCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CCertPathCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<std::string> certPathCollection = std::deque<std::string>()) {
- if (! _isInitialized) {
- _certPathCollection = certPathCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Cert
- std::deque<std::string> getCertPath() const {
- return _certPathCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<std::string> _certPathCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CCertPathCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CCertPathCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CLocalSecurityDoc_h_
-#define CLocalSecurityDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CLocalSecurityDoc
-class CLocalSecurityDoc {
-public:
- CLocalSecurityDoc() :
- _isInitialized(false) {}
- virtual ~CLocalSecurityDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string& localId = std::string(),
- const std::string& privateKey = std::string(),
- const std::string& cert = std::string(),
- const std::string& privateKeyPath = std::string(),
- const std::string& certPath = std::string()) {
- if (! _isInitialized) {
- _localId = localId;
- _privateKey = privateKey;
- _cert = cert;
-
- _privateKeyPath = privateKeyPath;
- _certPath = certPath;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the LocalId
- std::string getLocalId() const {
- return _localId;
- }
-
- /// Accessor for the PrivateKey
- std::string getPrivateKey() const {
- return _privateKey;
- }
-
- /// Accessor for the Cert
- std::string getCert() const {
- return _cert;
- }
-
- /// Accessor for the PrivateKeyPath
- std::string getPrivateKeyPath() const {
- return _privateKeyPath;
- }
-
- /// Accessor for the CertPath
- std::string getCertPath() const {
- return _certPath;
- }
-
-private:
- std::string _localId;
- std::string _privateKey;
- std::string _cert;
-
- std::string _privateKeyPath;
- std::string _certPath;
-
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CLocalSecurityDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CLocalSecurityDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CPersistenceDoc_h_
-#define CPersistenceDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type PersistenceEnvelope
-class CPersistenceDoc {
-public:
- CPersistenceDoc() :
- _isInitialized(false) {}
- virtual ~CPersistenceDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCLocalSecurityDoc& localSecurity = SmartPtrCLocalSecurityDoc(),
- const SmartPtrCRemoteSecurityCollectionDoc& remoteSecurityCollection = SmartPtrCRemoteSecurityCollectionDoc(),
- const SmartPtrCPersistenceProtocolDoc& persistenceProtocol = SmartPtrCPersistenceProtocolDoc(),
- const std::string version = "1.0") {
- if (! _isInitialized) {
- _localSecurity = localSecurity;
- _remoteSecurityCollection = remoteSecurityCollection;
- _persistenceProtocol = persistenceProtocol;
- _version = version;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the LocalSecurity
- SmartPtrCLocalSecurityDoc getLocalSecurity() const {
- return _localSecurity;
- }
-
- /// Accessor for the Protocol Collection
- SmartPtrCRemoteSecurityCollectionDoc getRemoteSecurityCollection() const {
- return _remoteSecurityCollection;
- }
-
- /// Accessor for the PersistenceProtocol
- SmartPtrCPersistenceProtocolDoc getPersistenceProtocol() const {
- return _persistenceProtocol;
- }
-
- /// Accessor for the version
- std::string getVersion() const {
- return _version;
- }
-
-private:
- SmartPtrCLocalSecurityDoc _localSecurity;
- SmartPtrCRemoteSecurityCollectionDoc _remoteSecurityCollection;
- SmartPtrCPersistenceProtocolDoc _persistenceProtocol;
- std::string _version;
-
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPersistenceDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPersistenceDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CPersistenceProtocolDoc_h_
-#define CPersistenceProtocolDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CPersistenceProtocolDoc
-class CPersistenceProtocolDoc {
-public:
- CPersistenceProtocolDoc() :
- _isInitialized(false) {}
- virtual ~CPersistenceProtocolDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCAmqpBrokerCollectionDoc& amqpBrokerCollection = SmartPtrCAmqpBrokerCollectionDoc()) {
- if (! _isInitialized) {
- _amqpBrokerCollection = amqpBrokerCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the AmqpBrokerCollection
- SmartPtrCAmqpBrokerCollectionDoc getAmqpBrokerCollection() const {
- return _amqpBrokerCollection;
- }
-
-private:
- SmartPtrCAmqpBrokerCollectionDoc _amqpBrokerCollection;
-
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPersistenceProtocolDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPersistenceProtocolDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRemoteSecurityCollectionDoc_h_
-#define CRemoteSecurityCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type RemoteSecurityCollection
-class CRemoteSecurityCollectionDoc {
-public:
- CRemoteSecurityCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CRemoteSecurityCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCRemoteSecurityDoc> remoteSecurity = std::deque<SmartPtrCRemoteSecurityDoc>()) {
- if (! _isInitialized) {
- _remoteSecurity = remoteSecurity;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the RemoteSecurity
- std::deque<SmartPtrCRemoteSecurityDoc> getRemoteSecurity() const {
- return _remoteSecurity;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCRemoteSecurityDoc> _remoteSecurity;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRemoteSecurityCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRemoteSecurityCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef CRemoteSecurityDoc_h_
-#define CRemoteSecurityDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CRemoteSecurityDoc
-class CRemoteSecurityDoc {
-public:
- CRemoteSecurityDoc() :
- _isInitialized(false) {}
- virtual ~CRemoteSecurityDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string& remoteId = std::string(),
- const std::string& protocolName = std::string(),
- const std::string& cmsCert = std::string(),
- const std::string& cmsCipherName = std::string(),
- const SmartPtrCCertCollectionDoc& cmsCertCollection = SmartPtrCCertCollectionDoc(),
- const std::string& cmsCertPath = std::string(),
- const SmartPtrCCertPathCollectionDoc& cmsCertPathCollection = SmartPtrCCertPathCollectionDoc()) {
- if (! _isInitialized) {
- _remoteId = remoteId;
- _protocolName = protocolName;
- _cmsCert = cmsCert;
- _cmsCipherName = cmsCipherName;
- _cmsCertCollection = cmsCertCollection;
-
- _cmsCertPath = cmsCertPath;
- _cmsCertPathCollection = cmsCertPathCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the RemoteId
- std::string getRemoteId() const {
- return _remoteId;
- }
-
- /// Accessor for the ProtocolName
- std::string getProtocolName() const {
- return _protocolName;
- }
-
- /// Accessor for the cmsCert
- std::string getCmsCert() const {
- return _cmsCert;
- }
-
- /// Accessor for the CmsCipher
- std::string getCmsCipherName() const {
- return _cmsCipherName;
- }
-
- /// Accessor for the CertCollection
- SmartPtrCCertCollectionDoc getCmsCertCollection() const {
- return _cmsCertCollection;
- }
-
- /// Accessor for the cmsCertPath
- std::string getCmsCertPath() const {
- return _cmsCertPath;
- }
-
- /// Accessor for the CertPathCollection
- SmartPtrCCertPathCollectionDoc getCmsCertPathCollection() const {
- return _cmsCertPathCollection;
- }
-
-private:
- std::string _remoteId;
- std::string _protocolName;
- std::string _cmsCert;
- std::string _cmsCipherName;
- SmartPtrCCertCollectionDoc _cmsCertCollection;
-
- std::string _cmsCertPath;
- SmartPtrCCertPathCollectionDoc _cmsCertPathCollection;
-
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRemoteSecurityDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRemoteSecurityDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef PersistenceDocInc_H_
-#define PersistenceDocInc_H_
-
-#include "CCertCollectionDoc.h"
-#include "CCertPathCollectionDoc.h"
-#include "CAmqpBrokerDoc.h"
-#include "CAmqpBrokerCollectionDoc.h"
-#include "CRemoteSecurityDoc.h"
-#include "CRemoteSecurityCollectionDoc.h"
-#include "CLocalSecurityDoc.h"
-#include "CPersistenceProtocolDoc.h"
-#include "CPersistenceDoc.h"
-
-#endif /* PersistenceDocInc_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassCollectionDoc_h_
-#define CClassCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ClassCollection
-class CClassCollectionDoc {
-public:
- CClassCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CClassCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCFullyQualifiedClassGroupDoc> fullyQualifiedClass) {
- if (! _isInitialized) {
- _fullyQualifiedClass = fullyQualifiedClass;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the FullyQualifiedClass
- std::deque<SmartPtrCFullyQualifiedClassGroupDoc> getFullyQualifiedClass() const {
- return _fullyQualifiedClass;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCFullyQualifiedClassGroupDoc> _fullyQualifiedClass;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderRegDoc_h_
-#define CProviderRegDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderReg
-class CProviderRegDoc {
-public:
- CProviderRegDoc() :
- _staleSec(0),
- _isSchemaVisible(false),
- _isInitialized(false) {}
- virtual ~CProviderRegDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string providerNamespace,
- const std::string providerName,
- const std::string providerVersion,
- const int32 staleSec,
- const bool isSchemaVisible,
- const std::string invokerRelPath) {
- if (! _isInitialized) {
- _providerNamespace = providerNamespace;
- _providerName = providerName;
- _providerVersion = providerVersion;
- _staleSec = staleSec;
- _isSchemaVisible = isSchemaVisible;
- _invokerRelPath = invokerRelPath;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ProviderNamespace
- std::string getProviderNamespace() const {
- return _providerNamespace;
- }
-
- /// Accessor for the ProviderName
- std::string getProviderName() const {
- return _providerName;
- }
-
- /// Accessor for the ProviderVersion
- std::string getProviderVersion() const {
- return _providerVersion;
- }
-
- /// Accessor for the StaleSec
- int32 getStaleSec() const {
- return _staleSec;
- }
-
- /// Accessor for the IsSchemaVisible
- bool getIsSchemaVisible() const {
- return _isSchemaVisible;
- }
-
- /// Accessor for the InvokerRelPath
- std::string getInvokerRelPath() const {
- return _invokerRelPath;
- }
-
-private:
- std::string _providerNamespace;
- std::string _providerName;
- std::string _providerVersion;
- int32 _staleSec;
- bool _isSchemaVisible;
- std::string _invokerRelPath;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderRegDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderRegDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CSchemaSummaryDoc_h_
-#define CSchemaSummaryDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type SchemaSummary
-class CSchemaSummaryDoc {
-public:
- CSchemaSummaryDoc() :
- _isInitialized(false) {}
- virtual ~CSchemaSummaryDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string providerNamespace,
- const std::string providerName,
- const std::string providerVersion,
- const SmartPtrCClassCollectionDoc classCollection,
- const std::string invokerPath) {
- if (! _isInitialized) {
- _providerNamespace = providerNamespace;
- _providerName = providerName;
- _providerVersion = providerVersion;
- _classCollection = classCollection;
- _invokerPath = invokerPath;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ProviderNamespace
- std::string getProviderNamespace() const {
- return _providerNamespace;
- }
-
- /// Accessor for the ProviderName
- std::string getProviderName() const {
- return _providerName;
- }
-
- /// Accessor for the ProviderVersion
- std::string getProviderVersion() const {
- return _providerVersion;
- }
-
- /// Accessor for the ClassCollection
- SmartPtrCClassCollectionDoc getClassCollection() const {
- return _classCollection;
- }
-
- /// Accessor for the InvokerPath
- std::string getInvokerPath() const {
- return _invokerPath;
- }
-
-private:
- bool _isInitialized;
-
- std::string _providerNamespace;
- std::string _providerName;
- std::string _providerVersion;
- SmartPtrCClassCollectionDoc _classCollection;
- std::string _invokerPath;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CSchemaSummaryDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CSchemaSummaryDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef PROVIDERINFRADOCINC_H_
-#define PROVIDERINFRADOCINC_H_
-
-#include "CClassCollectionDoc.h"
-#include "CProviderRegDoc.h"
-#include "CSchemaSummaryDoc.h"
-
-#endif /* PROVIDERINFRADOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderBatchDoc_h_
-#define CProviderBatchDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderBatch
-class CProviderBatchDoc {
-public:
- CProviderBatchDoc() :
- _isInitialized(false) {}
- virtual ~CProviderBatchDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string outputDir,
- const SmartPtrCProviderCollectInstancesCollectionDoc collectInstancesCollection,
- const SmartPtrCProviderInvokeOperationCollectionDoc invokeOperationCollection) {
- if (! _isInitialized) {
- _outputDir = outputDir;
- _collectInstancesCollection = collectInstancesCollection;
- _invokeOperationCollection = invokeOperationCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the OutputDir
- std::string getOutputDir() const {
- return _outputDir;
- }
-
- /// Accessor for the CollectInstancesCollection
- SmartPtrCProviderCollectInstancesCollectionDoc getCollectInstancesCollection() const {
- return _collectInstancesCollection;
- }
-
- /// Accessor for the InvokeOperationCollection
- SmartPtrCProviderInvokeOperationCollectionDoc getInvokeOperationCollection() const {
- return _invokeOperationCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _outputDir;
- SmartPtrCProviderCollectInstancesCollectionDoc _collectInstancesCollection;
- SmartPtrCProviderInvokeOperationCollectionDoc _invokeOperationCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderBatchDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderBatchDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderCollectInstancesCollectionDoc_h_
-#define CProviderCollectInstancesCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderCollectInstancesCollection
-class CProviderCollectInstancesCollectionDoc {
-public:
- CProviderCollectInstancesCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CProviderCollectInstancesCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCProviderCollectInstancesDoc> collectInstances) {
- if (! _isInitialized) {
- _collectInstances = collectInstances;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the CollectInstances
- std::deque<SmartPtrCProviderCollectInstancesDoc> getCollectInstances() const {
- return _collectInstances;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCProviderCollectInstancesDoc> _collectInstances;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderCollectInstancesCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderCollectInstancesCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderCollectInstancesDoc_h_
-#define CProviderCollectInstancesDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderCollectInstances
-class CProviderCollectInstancesDoc {
-public:
- CProviderCollectInstancesDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CProviderCollectInstancesDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string classNamespace,
- const std::string className,
- const std::string classVersion,
- const UUID jobId,
- const std::string outputDir,
- const SmartPtrCParameterCollectionDoc parameterCollection) {
- if (! _isInitialized) {
- _classNamespace = classNamespace;
- _className = className;
- _classVersion = classVersion;
- _jobId = jobId;
- _outputDir = outputDir;
- _parameterCollection = parameterCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClassNamespace
- std::string getClassNamespace() const {
- return _classNamespace;
- }
-
- /// Accessor for the ClassName
- std::string getClassName() const {
- return _className;
- }
-
- /// Accessor for the ClassVersion
- std::string getClassVersion() const {
- return _classVersion;
- }
-
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the OutputDir
- std::string getOutputDir() const {
- return _outputDir;
- }
-
- /// Accessor for the ParameterCollection
- SmartPtrCParameterCollectionDoc getParameterCollection() const {
- return _parameterCollection;
- }
-
-private:
- std::string _classNamespace;
- std::string _className;
- std::string _classVersion;
- UUID _jobId;
- std::string _outputDir;
- SmartPtrCParameterCollectionDoc _parameterCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderCollectInstancesDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderCollectInstancesDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderCollectSchemaRequestDoc_h_
-#define CProviderCollectSchemaRequestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderCollectSchemaRequest
-class CProviderCollectSchemaRequestDoc {
-public:
- CProviderCollectSchemaRequestDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CProviderCollectSchemaRequestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const UUID jobId,
- const std::string outputDir,
- const SmartPtrCProviderRequestHeaderDoc requestHeader) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _jobId = jobId;
- _outputDir = outputDir;
- _requestHeader = requestHeader;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the OutputDir
- std::string getOutputDir() const {
- return _outputDir;
- }
-
- /// Accessor for the RequestHeader
- SmartPtrCProviderRequestHeaderDoc getRequestHeader() const {
- return _requestHeader;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- UUID _jobId;
- std::string _outputDir;
- SmartPtrCProviderRequestHeaderDoc _requestHeader;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderCollectSchemaRequestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderCollectSchemaRequestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderInvokeOperationCollectionDoc_h_
-#define CProviderInvokeOperationCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderInvokeOperationCollection
-class CProviderInvokeOperationCollectionDoc {
-public:
- CProviderInvokeOperationCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CProviderInvokeOperationCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCProviderInvokeOperationDoc> invokeOperation) {
- if (! _isInitialized) {
- _invokeOperation = invokeOperation;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the InvokeOperation
- std::deque<SmartPtrCProviderInvokeOperationDoc> getInvokeOperation() const {
- return _invokeOperation;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCProviderInvokeOperationDoc> _invokeOperation;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderInvokeOperationCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderInvokeOperationCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderInvokeOperationDoc_h_
-#define CProviderInvokeOperationDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderInvokeOperation
-class CProviderInvokeOperationDoc {
-public:
- CProviderInvokeOperationDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CProviderInvokeOperationDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string classNamespace,
- const std::string className,
- const std::string classVersion,
- const UUID jobId,
- const std::string outputDir,
- const SmartPtrCOperationDoc operation) {
- if (! _isInitialized) {
- _classNamespace = classNamespace;
- _className = className;
- _classVersion = classVersion;
- _jobId = jobId;
- _outputDir = outputDir;
- _operation = operation;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClassNamespace
- std::string getClassNamespace() const {
- return _classNamespace;
- }
-
- /// Accessor for the ClassName
- std::string getClassName() const {
- return _className;
- }
-
- /// Accessor for the ClassVersion
- std::string getClassVersion() const {
- return _classVersion;
- }
-
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the OutputDir
- std::string getOutputDir() const {
- return _outputDir;
- }
-
- /// Accessor for the Operation
- SmartPtrCOperationDoc getOperation() const {
- return _operation;
- }
-
-private:
- std::string _classNamespace;
- std::string _className;
- std::string _classVersion;
- UUID _jobId;
- std::string _outputDir;
- SmartPtrCOperationDoc _operation;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderInvokeOperationDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderInvokeOperationDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderRequestConfigDoc_h_
-#define CProviderRequestConfigDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderRequestConfig
-class CProviderRequestConfigDoc {
-public:
- CProviderRequestConfigDoc() :
- _isInitialized(false) {}
- virtual ~CProviderRequestConfigDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string responseFormatType,
- const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection) {
- if (! _isInitialized) {
- _responseFormatType = responseFormatType;
- _loggingLevelCollection = loggingLevelCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ResponseFormatType
- std::string getResponseFormatType() const {
- return _responseFormatType;
- }
-
- /// Accessor for the LoggingLevelCollection
- SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const {
- return _loggingLevelCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _responseFormatType;
- SmartPtrCLoggingLevelCollectionDoc _loggingLevelCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderRequestConfigDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderRequestConfigDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderRequestDoc_h_
-#define CProviderRequestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderRequest
-class CProviderRequestDoc {
-public:
- CProviderRequestDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CProviderRequestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCProviderRequestHeaderDoc requestHeader,
- const SmartPtrCProviderBatchDoc batch,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _requestHeader = requestHeader;
- _batch = batch;
- _attachmentCollection = attachmentCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the RequestHeader
- SmartPtrCProviderRequestHeaderDoc getRequestHeader() const {
- return _requestHeader;
- }
-
- /// Accessor for the Batch
- SmartPtrCProviderBatchDoc getBatch() const {
- return _batch;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCProviderRequestHeaderDoc _requestHeader;
- SmartPtrCProviderBatchDoc _batch;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderRequestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderRequestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderRequestHeaderDoc_h_
-#define CProviderRequestHeaderDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderRequestHeader
-class CProviderRequestHeaderDoc {
-public:
- CProviderRequestHeaderDoc() :
- _isInitialized(false) {}
- virtual ~CProviderRequestHeaderDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCProviderRequestConfigDoc requestConfig,
- const SmartPtrCPropertyCollectionDoc echoPropertyBag) {
- if (! _isInitialized) {
- _requestConfig = requestConfig;
- _echoPropertyBag = echoPropertyBag;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the RequestConfig
- SmartPtrCProviderRequestConfigDoc getRequestConfig() const {
- return _requestConfig;
- }
-
- /// Accessor for the EchoPropertyBag
- SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const {
- return _echoPropertyBag;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCProviderRequestConfigDoc _requestConfig;
- SmartPtrCPropertyCollectionDoc _echoPropertyBag;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderRequestHeaderDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderRequestHeaderDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef PROVIDERREQUESTDOCINC_H_
-#define PROVIDERREQUESTDOCINC_H_
-
-#include "CProviderCollectInstancesDoc.h"
-#include "CProviderCollectInstancesCollectionDoc.h"
-
-#include "CProviderInvokeOperationDoc.h"
-#include "CProviderInvokeOperationCollectionDoc.h"
-
-#include "CProviderRequestConfigDoc.h"
-#include "CProviderRequestHeaderDoc.h"
-
-#include "CProviderBatchDoc.h"
-
-#include "CProviderRequestDoc.h"
-#include "CProviderCollectSchemaRequestDoc.h"
-
-#endif /* PROVIDERREQUESTDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CCdifDoc_h_
-#define CCdifDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Cdif
-class CCdifDoc {
-public:
- CCdifDoc() :
- _isInitialized(false) {}
- virtual ~CCdifDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const SmartPtrCRequestIdentifierDoc requestIdentifier,
- const SmartPtrCDefinitionObjectCollectionDoc definitionObjectCollection,
- const SmartPtrCSchemaDoc schema) {
- if (! _isInitialized) {
- _requestIdentifier = requestIdentifier;
- _definitionObjectCollection = definitionObjectCollection;
- _schema = schema;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the RequestIdentifier
- SmartPtrCRequestIdentifierDoc getRequestIdentifier() const {
- return _requestIdentifier;
- }
-
- /// Accessor for the DefinitionObjectCollection
- SmartPtrCDefinitionObjectCollectionDoc getDefinitionObjectCollection() const {
- return _definitionObjectCollection;
- }
-
- /// Accessor for the Schema
- SmartPtrCSchemaDoc getSchema() const {
- return _schema;
- }
-
-private:
- bool _isInitialized;
-
- SmartPtrCRequestIdentifierDoc _requestIdentifier;
- SmartPtrCDefinitionObjectCollectionDoc _definitionObjectCollection;
- SmartPtrCSchemaDoc _schema;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CCdifDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CCdifDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDefinitionObjectCollectionDoc_h_
-#define CDefinitionObjectCollectionDoc_h_
-
-namespace Caf {
-
-/// Set of elements containing data returned as a result of a provider collection or action
-class CDefinitionObjectCollectionDoc {
-public:
- CDefinitionObjectCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CDefinitionObjectCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<std::string> value) {
- if (! _isInitialized) {
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Value
- std::deque<std::string> getValue() const {
- return _value;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<std::string> _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDefinitionObjectCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDefinitionObjectCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRequestIdentifierDoc_h_
-#define CRequestIdentifierDoc_h_
-
-namespace Caf {
-
-/// Fields that allow client to determine which request resulted in this response document
-class CRequestIdentifierDoc {
-public:
- CRequestIdentifierDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _jobId(CAFCOMMON_GUID_NULL),
- _sessionId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CRequestIdentifierDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const UUID jobId,
- const SmartPtrCActionClassDoc actionClass,
- const UUID sessionId) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _jobId = jobId;
- _actionClass = actionClass;
- _sessionId = sessionId;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Identifier of the specific job within the request
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the ActionClass
- SmartPtrCActionClassDoc getActionClass() const {
- return _actionClass;
- }
-
- /// Client-configurable identifier that is opaque (not used) by the Common Agent Framework
- UUID getSessionId() const {
- return _sessionId;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- UUID _jobId;
- SmartPtrCActionClassDoc _actionClass;
- UUID _sessionId;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRequestIdentifierDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRequestIdentifierDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CSchemaDoc_h_
-#define CSchemaDoc_h_
-
-namespace Caf {
-
-/// Set of elements describing the objects that can be generated by the provider
-class CSchemaDoc {
-public:
- CSchemaDoc() :
- _isInitialized(false) {}
- virtual ~CSchemaDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCDataClassDoc> dataClassCollection,
- const std::deque<SmartPtrCActionClassDoc> actionClassCollection,
- const std::deque<SmartPtrCLogicalRelationshipDoc> logicalRelationshipCollection = std::deque<SmartPtrCLogicalRelationshipDoc>(),
- const std::deque<SmartPtrCPhysicalRelationshipDoc> physicalRelationshipCollection = std::deque<SmartPtrCPhysicalRelationshipDoc>()) {
- if (! _isInitialized) {
- _dataClassCollection = dataClassCollection;
- _actionClassCollection = actionClassCollection;
- _logicalRelationshipCollection = logicalRelationshipCollection;
- _physicalRelationshipCollection = physicalRelationshipCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the DataClassCollection
- std::deque<SmartPtrCDataClassDoc> getDataClassCollection() const {
- return _dataClassCollection;
- }
-
- /// Accessor for the ActionClassCollection
- std::deque<SmartPtrCActionClassDoc> getActionClassCollection() const {
- return _actionClassCollection;
- }
-
- /// Accessor for the LogicalRelationshipCollection
- std::deque<SmartPtrCLogicalRelationshipDoc> getLogicalRelationshipCollection() const {
- return _logicalRelationshipCollection;
- }
-
- /// Accessor for the PhysicalRelationshipCollection
- std::deque<SmartPtrCPhysicalRelationshipDoc> getPhysicalRelationshipCollection() const {
- return _physicalRelationshipCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCDataClassDoc> _dataClassCollection;
- std::deque<SmartPtrCActionClassDoc> _actionClassCollection;
- std::deque<SmartPtrCLogicalRelationshipDoc> _logicalRelationshipCollection;
- std::deque<SmartPtrCPhysicalRelationshipDoc> _physicalRelationshipCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CSchemaDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CSchemaDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef PROVIDERRESULTSDOCINC_H_
-#define PROVIDERRESULTSDOCINC_H_
-
-#include "CDefinitionObjectCollectionDoc.h"
-#include "CRequestIdentifierDoc.h"
-#include "CSchemaDoc.h"
-#include "CCdifDoc.h"
-
-#endif /* PROVIDERRESULTSDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CErrorResponseDoc_h_
-#define CErrorResponseDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ErrorResponse
-class CErrorResponseDoc {
-public:
- CErrorResponseDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CErrorResponseDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCResponseHeaderDoc responseHeader,
- const std::string errorMessage) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _responseHeader = responseHeader;
- _errorMessage = errorMessage;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the Response Header
- SmartPtrCResponseHeaderDoc getResponseHeader() const {
- return _responseHeader;
- }
-
- /// Accessor for the ErrorMessage
- std::string getErrorMessage() const {
- return _errorMessage;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCResponseHeaderDoc _responseHeader;
- std::string _errorMessage;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CErrorResponseDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CErrorResponseDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CEventKeyCollectionDoc_h_
-#define CEventKeyCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type EventKeyCollection
-class CEventKeyCollectionDoc {
-public:
- CEventKeyCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CEventKeyCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCEventKeyDoc> eventKey) {
- if (! _isInitialized) {
- _eventKey = eventKey;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the EventKey
- std::deque<SmartPtrCEventKeyDoc> getEventKey() const {
- return _eventKey;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCEventKeyDoc> _eventKey;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CEventKeyCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CEventKeyCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CEventKeyDoc_h_
-#define CEventKeyDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type EventKey
-class CEventKeyDoc {
-public:
- CEventKeyDoc() :
- _isInitialized(false) {}
- virtual ~CEventKeyDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::string value) {
- if (! _isInitialized) {
- _name = name;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Value
- std::string getValue() const {
- return _value;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::string _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CEventKeyDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CEventKeyDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CEventManifestDoc_h_
-#define CEventManifestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type EventManifest
-class CEventManifestDoc {
-public:
- CEventManifestDoc() :
- _isInitialized(false) {}
- virtual ~CEventManifestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string classNamespace,
- const std::string className,
- const std::string classVersion,
- const std::string operationName,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection) {
- if (! _isInitialized) {
- _classNamespace = classNamespace;
- _className = className;
- _classVersion = classVersion;
- _operationName = operationName;
- _attachmentCollection = attachmentCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClassNamespace
- std::string getClassNamespace() const {
- return _classNamespace;
- }
-
- /// Accessor for the ClassName
- std::string getClassName() const {
- return _className;
- }
-
- /// Accessor for the ClassVersion
- std::string getClassVersion() const {
- return _classVersion;
- }
-
- /// Accessor for the OperationName
- std::string getOperationName() const {
- return _operationName;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _classNamespace;
- std::string _className;
- std::string _classVersion;
- std::string _operationName;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CEventManifestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CEventManifestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CManifestCollectionDoc_h_
-#define CManifestCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ManifestCollection
-class CManifestCollectionDoc {
-public:
- CManifestCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CManifestCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCManifestDoc> manifest) {
- if (! _isInitialized) {
- _manifest = manifest;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Manifest
- std::deque<SmartPtrCManifestDoc> getManifest() const {
- return _manifest;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCManifestDoc> _manifest;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CManifestCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CManifestCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CManifestDoc_h_
-#define CManifestDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Manifest
-class CManifestDoc {
-public:
- CManifestDoc() :
- _jobId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CManifestDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string classNamespace,
- const std::string className,
- const std::string classVersion,
- const UUID jobId,
- const std::string operationName,
- const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection) {
- if (! _isInitialized) {
- _classNamespace = classNamespace;
- _className = className;
- _classVersion = classVersion;
- _jobId = jobId;
- _operationName = operationName;
- _attachmentNameCollection = attachmentNameCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClassNamespace
- std::string getClassNamespace() const {
- return _classNamespace;
- }
-
- /// Accessor for the ClassName
- std::string getClassName() const {
- return _className;
- }
-
- /// Accessor for the ClassVersion
- std::string getClassVersion() const {
- return _classVersion;
- }
-
- /// Accessor for the JobId
- UUID getJobId() const {
- return _jobId;
- }
-
- /// Accessor for the OperationName
- std::string getOperationName() const {
- return _operationName;
- }
-
- /// Accessor for the AttachmentNameCollection
- SmartPtrCAttachmentNameCollectionDoc getAttachmentNameCollection() const {
- return _attachmentNameCollection;
- }
-
-private:
- std::string _classNamespace;
- std::string _className;
- std::string _classVersion;
- UUID _jobId;
- std::string _operationName;
- SmartPtrCAttachmentNameCollectionDoc _attachmentNameCollection;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CManifestDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CManifestDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderEventResponseDoc_h_
-#define CProviderEventResponseDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderEventResponse
-class CProviderEventResponseDoc {
-public:
- CProviderEventResponseDoc() :
- _isInitialized(false) {}
- virtual ~CProviderEventResponseDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string pmeId,
- const SmartPtrCResponseHeaderDoc responseHeader,
- const SmartPtrCEventManifestDoc manifest,
- const SmartPtrCEventKeyCollectionDoc eventKeyCollection,
- const SmartPtrCStatisticsDoc statistics) {
- if (! _isInitialized) {
- _pmeId = pmeId;
- _responseHeader = responseHeader;
- _manifest = manifest;
- _eventKeyCollection = eventKeyCollection;
- _statistics = statistics;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the ResponseHeader
- SmartPtrCResponseHeaderDoc getResponseHeader() const {
- return _responseHeader;
- }
-
- /// Accessor for the Manifest
- SmartPtrCEventManifestDoc getManifest() const {
- return _manifest;
- }
-
- /// Accessor for the EventKeyCollection
- SmartPtrCEventKeyCollectionDoc getEventKeyCollection() const {
- return _eventKeyCollection;
- }
-
- /// Accessor for the Statistics
- SmartPtrCStatisticsDoc getStatistics() const {
- return _statistics;
- }
-
-private:
- bool _isInitialized;
-
- std::string _pmeId;
- SmartPtrCResponseHeaderDoc _responseHeader;
- SmartPtrCEventManifestDoc _manifest;
- SmartPtrCEventKeyCollectionDoc _eventKeyCollection;
- SmartPtrCStatisticsDoc _statistics;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderEventResponseDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderEventResponseDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CProviderResponseDoc_h_
-#define CProviderResponseDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ProviderResponse
-class CProviderResponseDoc {
-public:
- CProviderResponseDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CProviderResponseDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCResponseHeaderDoc responseHeader,
- const SmartPtrCManifestDoc manifest,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection,
- const SmartPtrCStatisticsDoc statistics) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _responseHeader = responseHeader;
- _manifest = manifest;
- _attachmentCollection = attachmentCollection;
- _statistics = statistics;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the ResponseHeader
- SmartPtrCResponseHeaderDoc getResponseHeader() const {
- return _responseHeader;
- }
-
- /// Accessor for the Manifest
- SmartPtrCManifestDoc getManifest() const {
- return _manifest;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
- /// Accessor for the Statistics
- SmartPtrCStatisticsDoc getStatistics() const {
- return _statistics;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCResponseHeaderDoc _responseHeader;
- SmartPtrCManifestDoc _manifest;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- SmartPtrCStatisticsDoc _statistics;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CProviderResponseDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CProviderResponseDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CResponseDoc_h_
-#define CResponseDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type Response
-class CResponseDoc {
-public:
- CResponseDoc() :
- _clientId(CAFCOMMON_GUID_NULL),
- _requestId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CResponseDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const UUID clientId,
- const UUID requestId,
- const std::string pmeId,
- const SmartPtrCResponseHeaderDoc responseHeader,
- const SmartPtrCManifestCollectionDoc manifestCollection,
- const SmartPtrCAttachmentCollectionDoc attachmentCollection,
- const SmartPtrCStatisticsDoc statistics) {
- if (! _isInitialized) {
- _clientId = clientId;
- _requestId = requestId;
- _pmeId = pmeId;
- _responseHeader = responseHeader;
- _manifestCollection = manifestCollection;
- _attachmentCollection = attachmentCollection;
- _statistics = statistics;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ClientId
- UUID getClientId() const {
- return _clientId;
- }
-
- /// Accessor for the RequestId
- UUID getRequestId() const {
- return _requestId;
- }
-
- /// Accessor for the PmeId
- std::string getPmeId() const {
- return _pmeId;
- }
-
- /// Accessor for the ManifestCollection
- SmartPtrCResponseHeaderDoc getResponseHeader() const {
- return _responseHeader;
- }
-
- /// Accessor for the ManifestCollection
- SmartPtrCManifestCollectionDoc getManifestCollection() const {
- return _manifestCollection;
- }
-
- /// Accessor for the AttachmentCollection
- SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const {
- return _attachmentCollection;
- }
-
- /// Accessor for the Statistics
- SmartPtrCStatisticsDoc getStatistics() const {
- return _statistics;
- }
-
-private:
- UUID _clientId;
- UUID _requestId;
- std::string _pmeId;
- SmartPtrCResponseHeaderDoc _responseHeader;
- SmartPtrCManifestCollectionDoc _manifestCollection;
- SmartPtrCAttachmentCollectionDoc _attachmentCollection;
- SmartPtrCStatisticsDoc _statistics;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CResponseDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CResponseDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CResponseHeaderDoc_h_
-#define CResponseHeaderDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ResponseHeader
-class CResponseHeaderDoc {
-public:
- CResponseHeaderDoc() :
- _sequenceNumber(0),
- _isFinalResponse(true),
- _sessionId(CAFCOMMON_GUID_NULL),
- _isInitialized(false) {}
- virtual ~CResponseHeaderDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string version = "1.0",
- const std::string createdDateTime = CDateTimeUtils::getCurrentDateTime(),
- const uint32 sequenceNumber = 0,
- const bool isFinalResponse = true,
- const UUID sessionId = CAFCOMMON_GUID_NULL) {
- if (! _isInitialized) {
- _version = version;
- _createdDateTime = createdDateTime;
- _sequenceNumber = sequenceNumber;
- _isFinalResponse = isFinalResponse;
- _sessionId = sessionId;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the date/time when the request was created
- std::string getCreatedDateTime() const {
- return _createdDateTime;
- }
-
- /// Accessor for the sequenceNumber
- uint32 getSequenceNumber() const {
- return _sequenceNumber;
- }
-
- /// Accessor for the version
- bool getIsFinalResponse() const {
- return _isFinalResponse;
- }
-
- /// Accessor for the session ID
- UUID getSessionId() const {
- return _sessionId;
- }
-
-private:
- std::string _version;
- std::string _createdDateTime;
- uint32 _sequenceNumber;
- bool _isFinalResponse;
- UUID _sessionId;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CResponseHeaderDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CResponseHeaderDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef RESPONSEDOCINC_H_
-#define RESPONSEDOCINC_H_
-
-#include "CEventKeyDoc.h"
-#include "CEventKeyCollectionDoc.h"
-
-#include "CManifestDoc.h"
-#include "CManifestCollectionDoc.h"
-
-#include "CResponseHeaderDoc.h"
-#include "CErrorResponseDoc.h"
-#include "CEventManifestDoc.h"
-#include "CProviderEventResponseDoc.h"
-#include "CProviderResponseDoc.h"
-#include "CResponseDoc.h"
-
-#endif /* RESPONSEDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CActionClassDoc_h_
-#define CActionClassDoc_h_
-
-namespace Caf {
-
-/// Definition of an action class that may be generated by the provider
-class CActionClassDoc {
-public:
- CActionClassDoc() :
- _isInitialized(false) {}
- virtual ~CActionClassDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const SmartPtrCCollectMethodDoc collectMethod,
- const std::deque<SmartPtrCMethodDoc> methodCollection,
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _collectMethod = collectMethod;
- _methodCollection = methodCollection;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the CollectMethod
- SmartPtrCCollectMethodDoc getCollectMethod() const {
- return _collectMethod;
- }
-
- /// Accessor for the Method
- std::deque<SmartPtrCMethodDoc> getMethodCollection() const {
- return _methodCollection;
- }
-
- /// A hint as to what this class should be called when displaying it to a human
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// A phrase to describe the class for mouse-over text, etc
- std::string getDescription() const {
- return _description;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- SmartPtrCCollectMethodDoc _collectMethod;
- std::deque<SmartPtrCMethodDoc> _methodCollection;
- std::string _displayName;
- std::string _description;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CActionClassDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CActionClassDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CActionClassInstanceCollectionDoc_h_
-#define CActionClassInstanceCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ActionClassInstanceCollection
-class CActionClassInstanceCollectionDoc {
-public:
- CActionClassInstanceCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CActionClassInstanceCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCActionClassInstanceDoc> actionClassInstanceCollection) {
- if (! _isInitialized) {
- _actionClassInstanceCollection = actionClassInstanceCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the ActionClassInstance
- std::deque<SmartPtrCActionClassInstanceDoc> getActionClassInstanceCollection() const {
- return _actionClassInstanceCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCActionClassInstanceDoc> _actionClassInstanceCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CActionClassInstanceCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CActionClassInstanceCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CActionClassInstanceDoc_h_
-#define CActionClassInstanceDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type ActionClassInstance
-class CActionClassInstanceDoc {
-public:
- CActionClassInstanceDoc() :
- _isInitialized(false) {}
- virtual ~CActionClassInstanceDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const SmartPtrCInstanceOperationCollectionDoc instanceOperationCollection) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _instanceOperationCollection = instanceOperationCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the InstanceOperationCollection
- SmartPtrCInstanceOperationCollectionDoc getInstanceOperationCollection() const {
- return _instanceOperationCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- SmartPtrCInstanceOperationCollectionDoc _instanceOperationCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CActionClassInstanceDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CActionClassInstanceDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassCardinalityDoc_h_
-#define CClassCardinalityDoc_h_
-
-namespace Caf {
-
-/// Class description of one end of a relationship
-class CClassCardinalityDoc {
-public:
- CClassCardinalityDoc() :
- _isInitialized(false) {}
- virtual ~CClassCardinalityDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const std::string cardinality) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _cardinality = cardinality;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Cardinality of one end relationship, i.e. has one, has many, etc
- std::string getCardinality() const {
- return _cardinality;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- std::string _cardinality;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassCardinalityDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassCardinalityDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassFieldDoc_h_
-#define CClassFieldDoc_h_
-
-namespace Caf {
-
-/// Description of a class and the field used to identify one end of a relationship
-class CClassFieldDoc {
-public:
- CClassFieldDoc() :
- _isInitialized(false) {}
- virtual ~CClassFieldDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const std::string field) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _field = field;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Description of a class field used to identify one end of a relationship
- std::string getField() const {
- return _field;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- std::string _field;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassFieldDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassFieldDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassIdentifierDoc_h_
-#define CClassIdentifierDoc_h_
-
-namespace Caf {
-
-/// Tuple of values to uniquely identify a class
-class CClassIdentifierDoc {
-public:
- CClassIdentifierDoc() :
- _isInitialized(false) {}
- virtual ~CClassIdentifierDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassIdentifierDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassIdentifierDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassInstancePropertyDoc_h_
-#define CClassInstancePropertyDoc_h_
-
-namespace Caf {
-
-/// Definition of an attribute (field) of a class
-class CClassInstancePropertyDoc {
-public:
- CClassInstancePropertyDoc() :
- _required(false),
- _transientVal(false),
- _list(false),
- _isInitialized(false) {}
- virtual ~CClassInstancePropertyDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::deque<SmartPtrCClassIdentifierDoc> type,
- const bool required = false,
- const bool transientVal = false,
- const bool list = false,
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _required = required;
- _transientVal = transientVal;
- _list = list;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Property name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Type
- std::deque<SmartPtrCClassIdentifierDoc> getType() const {
- return _type;
- }
-
- /// Whether this is a required property, i.e. this property must always be non-empty
- bool getRequired() const {
- return _required;
- }
-
- /// Accessor for the TransientVal
- bool getTransientVal() const {
- return _transientVal;
- }
-
- /// Indicates whether to expect a list of properties in the provider response
- bool getList() const {
- return _list;
- }
-
- /// A hint as to what this property should be called when displaying it to a human
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// A phrase to describe the property for mouse-over text, etc
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _name;
- std::deque<SmartPtrCClassIdentifierDoc> _type;
- bool _required;
- bool _transientVal;
- bool _list;
- std::string _displayName;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassInstancePropertyDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassInstancePropertyDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CClassPropertyDoc_h_
-#define CClassPropertyDoc_h_
-
-namespace Caf {
-
-/// Definition of an attribute (field) of a class
-class CClassPropertyDoc {
-public:
- CClassPropertyDoc() :
- _type(PROPERTY_NONE),
- _required(false),
- _key(false),
- _list(false),
- _caseSensitive(false),
- _transientVal(false),
- _validator(VALIDATOR_NONE),
- _isInitialized(false) {}
- virtual ~CClassPropertyDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const PROPERTY_TYPE type,
- const std::deque<std::string> value,
- const bool required = false,
- const bool key = false,
- const bool list = false,
- const bool caseSensitive = false,
- const bool transientVal = false,
- const std::string defaultVal = std::string(),
- const VALIDATOR_TYPE validator = VALIDATOR_NONE,
- const std::string upperRange = std::string(),
- const std::string lowerRange = std::string(),
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _value = value;
- _required = required;
- _key = key;
- _list = list;
- _caseSensitive = caseSensitive;
- _transientVal = transientVal;
- _defaultVal = defaultVal;
- _validator = validator;
- _upperRange = upperRange;
- _lowerRange = lowerRange;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Property name
- std::string getName() const {
- return _name;
- }
-
- /// Describes the data type of the property
- PROPERTY_TYPE getType() const {
- return _type;
- }
-
- /// The contents of a validator used on this property
- std::deque<std::string> getValue() const {
- return _value;
- }
-
- /// Whether this is a required property, i.e. this property must always be non-empty
- bool getRequired() const {
- return _required;
- }
-
- /// Indicates this property may be used as a key identifying field
- bool getKey() const {
- return _key;
- }
-
- /// Indicates whether to expect a list of properties in the provider response
- bool getList() const {
- return _list;
- }
-
- /// Indicates whether a string field should be treated in a case-sensitive manner
- bool getCaseSensitive() const {
- return _caseSensitive;
- }
-
- /// Accessor for the TransientVal
- bool getTransientVal() const {
- return _transientVal;
- }
-
- /// Accessor for the DefaultVal
- std::string getDefaultVal() const {
- return _defaultVal;
- }
-
- /// The type of validator described in the 'value' sub-elements
- VALIDATOR_TYPE getValidator() const {
- return _validator;
- }
-
- /// If a 'range' validator is in use, this describes the upper limit of allowable values for the property. QUESTIONABLE: how do we determine inclusive or exclusive range
- std::string getUpperRange() const {
- return _upperRange;
- }
-
- /// If a 'range' validator is in use, this describes the lower limit of allowable values for the property. QUESTIONABLE: how do we determine inclusive or exclusive range
- std::string getLowerRange() const {
- return _lowerRange;
- }
-
- /// A hint as to what this property should be called when displaying it to a human
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// A phrase to describe the property for mouse-over text, etc
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _name;
- PROPERTY_TYPE _type;
- std::deque<std::string> _value;
- bool _required;
- bool _key;
- bool _list;
- bool _caseSensitive;
- bool _transientVal;
- std::string _defaultVal;
- VALIDATOR_TYPE _validator;
- std::string _upperRange;
- std::string _lowerRange;
- std::string _displayName;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CClassPropertyDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CClassPropertyDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CCmdlMetadataDoc_h_
-#define CCmdlMetadataDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CmdlMetadata
-class CCmdlMetadataDoc {
-public:
- CCmdlMetadataDoc() :
- _isInitialized(false) {}
- virtual ~CCmdlMetadataDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::string value) {
- if (! _isInitialized) {
- _name = name;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Value
- std::string getValue() const {
- return _value;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::string _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CCmdlMetadataDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CCmdlMetadataDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CCmdlUnionDoc_h_
-#define CCmdlUnionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type CmdlUnion
-class CCmdlUnionDoc {
-public:
- CCmdlUnionDoc() :
- _isInitialized(false) {}
- virtual ~CCmdlUnionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CCmdlUnionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CCmdlUnionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CCollectMethodDoc_h_
-#define CCollectMethodDoc_h_
-
-namespace Caf {
-
-/// Definition of a collection method on a class
-class CCollectMethodDoc {
-public:
- CCollectMethodDoc() :
- _isInitialized(false) {}
- virtual ~CCollectMethodDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::deque<SmartPtrCMethodParameterDoc> parameterCollection = std::deque<SmartPtrCMethodParameterDoc>(),
- const std::deque<SmartPtrCInstanceParameterDoc> instanceParameterCollection = std::deque<SmartPtrCInstanceParameterDoc>(),
- const std::deque<SmartPtrCClassIdentifierDoc> returnValCollection = std::deque<SmartPtrCClassIdentifierDoc>(),
- const std::deque<SmartPtrCClassIdentifierDoc> eventValCollection = std::deque<SmartPtrCClassIdentifierDoc>(),
- const std::deque<SmartPtrCClassIdentifierDoc> errorCollection = std::deque<SmartPtrCClassIdentifierDoc>()) {
- if (! _isInitialized) {
- _name = name;
- _parameterCollection = parameterCollection;
- _instanceParameterCollection = instanceParameterCollection;
- _returnValCollection = returnValCollection;
- _eventValCollection = eventValCollection;
- _errorCollection = errorCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// name of the collection method
- std::string getName() const {
- return _name;
- }
-
- /// Definition of a parameter that passes simple types to the collection method
- std::deque<SmartPtrCMethodParameterDoc> getParameterCollection() const {
- return _parameterCollection;
- }
-
- /// Definition of a parameter passing data class instances to the collection method
- std::deque<SmartPtrCInstanceParameterDoc> getInstanceParameterCollection() const {
- return _instanceParameterCollection;
- }
-
- /// Accessor for the ReturnVal
- std::deque<SmartPtrCClassIdentifierDoc> getReturnValCollection() const {
- return _returnValCollection;
- }
-
- /// Accessor for the EventVal
- std::deque<SmartPtrCClassIdentifierDoc> getEventValCollection() const {
- return _eventValCollection;
- }
-
- /// A class that may be returned to indicate an error occurred during the processing of the collection method
- std::deque<SmartPtrCClassIdentifierDoc> getErrorCollection() const {
- return _errorCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::deque<SmartPtrCMethodParameterDoc> _parameterCollection;
- std::deque<SmartPtrCInstanceParameterDoc> _instanceParameterCollection;
- std::deque<SmartPtrCClassIdentifierDoc> _returnValCollection;
- std::deque<SmartPtrCClassIdentifierDoc> _eventValCollection;
- std::deque<SmartPtrCClassIdentifierDoc> _errorCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CCollectMethodDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CCollectMethodDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDataClassDoc_h_
-#define CDataClassDoc_h_
-
-namespace Caf {
-
-/// Definition of a data class that may be generated by the provider
-class CDataClassDoc {
-public:
- CDataClassDoc() :
- _unique(false),
- _transientVal(false),
- _isInitialized(false) {}
- virtual ~CDataClassDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const std::deque<SmartPtrCClassPropertyDoc> propertyCollection = std::deque<SmartPtrCClassPropertyDoc>(),
- const std::deque<SmartPtrCClassInstancePropertyDoc> instancePropertyCollection = std::deque<SmartPtrCClassInstancePropertyDoc>(),
- const bool unique = false,
- const bool transientVal = false,
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _propertyCollection = propertyCollection;
- _instancePropertyCollection = instancePropertyCollection;
- _unique = unique;
- _transientVal = transientVal;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the Property
- std::deque<SmartPtrCClassPropertyDoc> getPropertyCollection() const {
- return _propertyCollection;
- }
-
- /// Accessor for the InstanceProperty
- std::deque<SmartPtrCClassInstancePropertyDoc> getInstancePropertyCollection() const {
- return _instancePropertyCollection;
- }
-
- /// Indicates whether the key properties of this class are enough to guarantee uniqueness from other classes of the same type
- bool getUnique() const {
- return _unique;
- }
-
- /// Accessor for the TransientVal
- bool getTransientVal() const {
- return _transientVal;
- }
-
- /// A hint as to what this class should be called when displaying it to a human
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// A phrase to describe the class for mouse-over text, etc
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- std::deque<SmartPtrCClassPropertyDoc> _propertyCollection;
- std::deque<SmartPtrCClassInstancePropertyDoc> _instancePropertyCollection;
- bool _unique;
- bool _transientVal;
- std::string _displayName;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDataClassDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDataClassDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDataClassInstanceCollectionDoc_h_
-#define CDataClassInstanceCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DataClassInstanceCollection
-class CDataClassInstanceCollectionDoc {
-public:
- CDataClassInstanceCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CDataClassInstanceCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCDataClassInstanceDoc> dataClassInstanceCollection = std::deque<SmartPtrCDataClassInstanceDoc>()) {
- if (! _isInitialized) {
- _dataClassInstanceCollection = dataClassInstanceCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the DataClassInstance
- std::deque<SmartPtrCDataClassInstanceDoc> getDataClassInstanceCollection() const {
- return _dataClassInstanceCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCDataClassInstanceDoc> _dataClassInstanceCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDataClassInstanceCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDataClassInstanceCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDataClassInstanceDoc_h_
-#define CDataClassInstanceDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DataClassInstance
-class CDataClassInstanceDoc {
-public:
- CDataClassInstanceDoc() :
- _isInitialized(false) {}
- virtual ~CDataClassInstanceDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const std::deque<SmartPtrCCmdlMetadataDoc> cmdlMetadataCollection,
- const std::deque<SmartPtrCDataClassPropertyDoc> propertyCollection,
- const std::deque<SmartPtrCDataClassSubInstanceDoc> instancePropertyCollection,
- const SmartPtrCCmdlUnionDoc cmdlUnion) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _cmdlMetadataCollection = cmdlMetadataCollection;
- _propertyCollection = propertyCollection;
- _instancePropertyCollection = instancePropertyCollection;
- _cmdlUnion = cmdlUnion;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the CmdlMetadata
- std::deque<SmartPtrCCmdlMetadataDoc> getCmdlMetadataCollection() const {
- return _cmdlMetadataCollection;
- }
-
- /// Accessor for the Property
- std::deque<SmartPtrCDataClassPropertyDoc> getPropertyCollection() const {
- return _propertyCollection;
- }
-
- /// Accessor for the InstanceProperty
- std::deque<SmartPtrCDataClassSubInstanceDoc> getInstancePropertyCollection() const {
- return _instancePropertyCollection;
- }
-
- /// Accessor for the CmdlUnion
- SmartPtrCCmdlUnionDoc getCmdlUnion() const {
- return _cmdlUnion;
- }
-
-private:
- bool _isInitialized;
-
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- std::deque<SmartPtrCCmdlMetadataDoc> _cmdlMetadataCollection;
- std::deque<SmartPtrCDataClassPropertyDoc> _propertyCollection;
- std::deque<SmartPtrCDataClassSubInstanceDoc> _instancePropertyCollection;
- SmartPtrCCmdlUnionDoc _cmdlUnion;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDataClassInstanceDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDataClassInstanceDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDataClassPropertyDoc_h_
-#define CDataClassPropertyDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DataClassProperty
-class CDataClassPropertyDoc {
-public:
- CDataClassPropertyDoc() :
- _isInitialized(false) {}
- virtual ~CDataClassPropertyDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::deque<SmartPtrCCmdlMetadataDoc> cmdlMetadata,
- const std::string value) {
- if (! _isInitialized) {
- _name = name;
- _cmdlMetadata = cmdlMetadata;
- _value = value;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the CmdlMetadata
- std::deque<SmartPtrCCmdlMetadataDoc> getCmdlMetadata() const {
- return _cmdlMetadata;
- }
-
- /// Accessor for the Value
- std::string getValue() const {
- return _value;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::deque<SmartPtrCCmdlMetadataDoc> _cmdlMetadata;
- std::string _value;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDataClassPropertyDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDataClassPropertyDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CDataClassSubInstanceDoc_h_
-#define CDataClassSubInstanceDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type DataClassSubInstance
-class CDataClassSubInstanceDoc {
-public:
- CDataClassSubInstanceDoc() :
- _isInitialized(false) {}
- virtual ~CDataClassSubInstanceDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::deque<SmartPtrCCmdlMetadataDoc> cmdlMetadataCollection,
- const std::deque<SmartPtrCDataClassPropertyDoc> propertyCollection,
- const std::deque<SmartPtrCDataClassSubInstanceDoc> instancePropertyCollection,
- const SmartPtrCCmdlUnionDoc cmdlUnion) {
- if (! _isInitialized) {
- _name = name;
- _cmdlMetadataCollection = cmdlMetadataCollection;
- _propertyCollection = propertyCollection;
- _instancePropertyCollection = instancePropertyCollection;
- _cmdlUnion = cmdlUnion;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the CmdlMetadata
- std::deque<SmartPtrCCmdlMetadataDoc> getCmdlMetadataCollection() const {
- return _cmdlMetadataCollection;
- }
-
- /// Accessor for the Property
- std::deque<SmartPtrCDataClassPropertyDoc> getPropertyCollection() const {
- return _propertyCollection;
- }
-
- /// Accessor for the InstanceProperty
- std::deque<SmartPtrCDataClassSubInstanceDoc> getInstancePropertyCollection() const {
- return _instancePropertyCollection;
- }
-
- /// Accessor for the CmdlUnion
- SmartPtrCCmdlUnionDoc getCmdlUnion() const {
- return _cmdlUnion;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::deque<SmartPtrCCmdlMetadataDoc> _cmdlMetadataCollection;
- std::deque<SmartPtrCDataClassPropertyDoc> _propertyCollection;
- std::deque<SmartPtrCDataClassSubInstanceDoc> _instancePropertyCollection;
- SmartPtrCCmdlUnionDoc _cmdlUnion;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CDataClassSubInstanceDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CDataClassSubInstanceDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstanceOperationCollectionDoc_h_
-#define CInstanceOperationCollectionDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstanceOperationCollection
-class CInstanceOperationCollectionDoc {
-public:
- CInstanceOperationCollectionDoc() :
- _isInitialized(false) {}
- virtual ~CInstanceOperationCollectionDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::deque<SmartPtrCInstanceOperationDoc> instanceOperationCollection) {
- if (! _isInitialized) {
- _instanceOperationCollection = instanceOperationCollection;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the InstanceOperation
- std::deque<SmartPtrCInstanceOperationDoc> getInstanceOperationCollection() const {
- return _instanceOperationCollection;
- }
-
-private:
- bool _isInitialized;
-
- std::deque<SmartPtrCInstanceOperationDoc> _instanceOperationCollection;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstanceOperationCollectionDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstanceOperationCollectionDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstanceOperationDoc_h_
-#define CInstanceOperationDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type InstanceOperation
-class CInstanceOperationDoc {
-public:
- CInstanceOperationDoc() :
- _isInitialized(false) {}
- virtual ~CInstanceOperationDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string operationName,
- const std::string moniker) {
- if (! _isInitialized) {
- _operationName = operationName;
- _moniker = moniker;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the OperationName
- std::string getOperationName() const {
- return _operationName;
- }
-
- /// Accessor for the Moniker
- std::string getMoniker() const {
- return _moniker;
- }
-
-private:
- bool _isInitialized;
-
- std::string _operationName;
- std::string _moniker;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstanceOperationDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstanceOperationDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CInstanceParameterDoc_h_
-#define CInstanceParameterDoc_h_
-
-namespace Caf {
-
-/// A parameter containing a data class instance used by a method to control the outcome
-class CInstanceParameterDoc {
-public:
- CInstanceParameterDoc() :
- _isOptional(false),
- _isList(false),
- _isInitialized(false) {}
- virtual ~CInstanceParameterDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::string instanceNamespace,
- const std::string instanceName,
- const std::string instanceVersion,
- const bool isOptional = false,
- const bool isList = false,
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _name = name;
- _instanceNamespace = instanceNamespace;
- _instanceName = instanceName;
- _instanceVersion = instanceVersion;
- _isOptional = isOptional;
- _isList = isList;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Name of parameter
- std::string getName() const {
- return _name;
- }
-
- /// Namespace of instance object type
- std::string getInstanceNamespace() const {
- return _instanceNamespace;
- }
-
- /// Name of instance object type
- std::string getInstanceName() const {
- return _instanceName;
- }
-
- /// Version of instance object type
- std::string getInstanceVersion() const {
- return _instanceVersion;
- }
-
- /// Indicates this parameter need not be passed
- bool getIsOptional() const {
- return _isOptional;
- }
-
- /// Indicates whether to expect a list of values as opposed to a single value (the default if this attribute is not present)
- bool getIsList() const {
- return _isList;
- }
-
- /// Human-readable version of the parameter name
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// Short description of what the parameter is for
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _name;
- std::string _instanceNamespace;
- std::string _instanceName;
- std::string _instanceVersion;
- bool _isOptional;
- bool _isList;
- std::string _displayName;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CInstanceParameterDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CInstanceParameterDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CJoinTypeDoc_h_
-#define CJoinTypeDoc_h_
-
-namespace Caf {
-
-/// A simple container for objects of type JoinType
-class CJoinTypeDoc {
-public:
- CJoinTypeDoc() :
- _operand(OPERATOR_NONE),
- _isInitialized(false) {}
- virtual ~CJoinTypeDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const OPERATOR_TYPE operand,
- const SmartPtrCClassFieldDoc dataClassLeft,
- const SmartPtrCClassFieldDoc dataClassRight,
- const std::string description) {
- if (! _isInitialized) {
- _operand = operand;
- _dataClassLeft = dataClassLeft;
- _dataClassRight = dataClassRight;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Defines the operand used to join the class fields. Restricted to '=' for now
- OPERATOR_TYPE getOperand() const {
- return _operand;
- }
-
- /// Identifies the fields on classes that uniquely identify relationship
- SmartPtrCClassFieldDoc getDataClassLeft() const {
- return _dataClassLeft;
- }
-
- /// Identifies the fields on classes that uniquely identify relationship
- SmartPtrCClassFieldDoc getDataClassRight() const {
- return _dataClassRight;
- }
-
- /// A short human-readable description of the join
- std::string getDescription() const {
- return _description;
- }
-
-private:
- OPERATOR_TYPE _operand;
- SmartPtrCClassFieldDoc _dataClassLeft;
- SmartPtrCClassFieldDoc _dataClassRight;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CJoinTypeDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CJoinTypeDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CLogicalRelationshipDoc_h_
-#define CLogicalRelationshipDoc_h_
-
-namespace Caf {
-
-/// Definition of a relationship between classes that can be described by identifying the fields on the classes that uniquely identify the relationship
-class CLogicalRelationshipDoc {
-public:
- CLogicalRelationshipDoc() :
- _arity(ARITY_NONE),
- _isInitialized(false) {}
- virtual ~CLogicalRelationshipDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const ARITY_TYPE arity,
- const SmartPtrCClassCardinalityDoc dataClassLeft,
- const SmartPtrCClassCardinalityDoc dataClassRight,
- const std::deque<SmartPtrCJoinTypeDoc> joinCollection,
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _arity = arity;
- _dataClassLeft = dataClassLeft;
- _dataClassRight = dataClassRight;
- _joinCollection = joinCollection;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the Arity
- ARITY_TYPE getArity() const {
- return _arity;
- }
-
- /// Accessor for the DataClassLeft
- SmartPtrCClassCardinalityDoc getDataClassLeft() const {
- return _dataClassLeft;
- }
-
- /// Accessor for the DataClassRight
- SmartPtrCClassCardinalityDoc getDataClassRight() const {
- return _dataClassRight;
- }
-
- /// Defines a join condition of the relationship
- std::deque<SmartPtrCJoinTypeDoc> getJoinCollection() const {
- return _joinCollection;
- }
-
- /// Accessor for the Description
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- ARITY_TYPE _arity;
- SmartPtrCClassCardinalityDoc _dataClassLeft;
- SmartPtrCClassCardinalityDoc _dataClassRight;
- std::deque<SmartPtrCJoinTypeDoc> _joinCollection;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CLogicalRelationshipDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CLogicalRelationshipDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMethodDoc_h_
-#define CMethodDoc_h_
-
-namespace Caf {
-
-/// Definition of a method on a class
-class CMethodDoc {
-public:
- CMethodDoc() :
- _isInitialized(false) {}
- virtual ~CMethodDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const std::deque<SmartPtrCMethodParameterDoc> parameterCollection = std::deque<SmartPtrCMethodParameterDoc>(),
- const std::deque<SmartPtrCInstanceParameterDoc> instanceParameterCollection = std::deque<SmartPtrCInstanceParameterDoc>(),
- const std::deque<SmartPtrCClassIdentifierDoc> returnValCollection = std::deque<SmartPtrCClassIdentifierDoc>(),
- const std::deque<SmartPtrCClassIdentifierDoc> eventValCollection = std::deque<SmartPtrCClassIdentifierDoc>(),
- const std::deque<SmartPtrCClassIdentifierDoc> errorCollection = std::deque<SmartPtrCClassIdentifierDoc>(),
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _name = name;
- _parameterCollection = parameterCollection;
- _instanceParameterCollection = instanceParameterCollection;
- _returnValCollection = returnValCollection;
- _eventValCollection = eventValCollection;
- _errorCollection = errorCollection;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// name of the method
- std::string getName() const {
- return _name;
- }
-
- /// Definition of a parameter that passes simple types to the method
- std::deque<SmartPtrCMethodParameterDoc> getParameterCollection() const {
- return _parameterCollection;
- }
-
- /// Definition of a parameter that passes data class instances to the method
- std::deque<SmartPtrCInstanceParameterDoc> getInstanceParameterCollection() const {
- return _instanceParameterCollection;
- }
-
- /// Accessor for the ReturnVal
- std::deque<SmartPtrCClassIdentifierDoc> getReturnValCollection() const {
- return _returnValCollection;
- }
-
- /// Accessor for the EventVal
- std::deque<SmartPtrCClassIdentifierDoc> getEventValCollection() const {
- return _eventValCollection;
- }
-
- /// A class that may be returned to indicate an error occurred during the processing of the collection method
- std::deque<SmartPtrCClassIdentifierDoc> getErrorCollection() const {
- return _errorCollection;
- }
-
- /// Human-readable version of the method name
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// A short phrase describing the purpose of the method
- std::string getDescription() const {
- return _description;
- }
-
-private:
- bool _isInitialized;
-
- std::string _name;
- std::deque<SmartPtrCMethodParameterDoc> _parameterCollection;
- std::deque<SmartPtrCInstanceParameterDoc> _instanceParameterCollection;
- std::deque<SmartPtrCClassIdentifierDoc> _returnValCollection;
- std::deque<SmartPtrCClassIdentifierDoc> _eventValCollection;
- std::deque<SmartPtrCClassIdentifierDoc> _errorCollection;
- std::string _displayName;
- std::string _description;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMethodDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMethodDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CMethodParameterDoc_h_
-#define CMethodParameterDoc_h_
-
-namespace Caf {
-
-/// A parameter containing a simple type used by a method to control the outcome
-class CMethodParameterDoc {
-public:
- CMethodParameterDoc() :
- _type(PARAMETER_NONE),
- _isOptional(false),
- _isList(false),
- _isInitialized(false) {}
- virtual ~CMethodParameterDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string name,
- const PARAMETER_TYPE type,
- const bool isOptional = false,
- const bool isList = false,
- const std::string defaultVal = std::string(),
- const std::string displayName = std::string(),
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _name = name;
- _type = type;
- _isOptional = isOptional;
- _isList = isList;
- _defaultVal = defaultVal;
- _displayName = displayName;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Name of parameter
- std::string getName() const {
- return _name;
- }
-
- /// Describes the data type of the property
- PARAMETER_TYPE getType() const {
- return _type;
- }
-
- /// Indicates this parameter need not be passed
- bool getIsOptional() const {
- return _isOptional;
- }
-
- /// Indicates whether to expect a list of values as opposed to a single value (the default if this attribute is not present)
- bool getIsList() const {
- return _isList;
- }
-
- /// Accessor for the DefaultVal
- std::string getDefaultVal() const {
- return _defaultVal;
- }
-
- /// Human-readable version of the parameter name
- std::string getDisplayName() const {
- return _displayName;
- }
-
- /// Short description of what the parameter is for
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _name;
- PARAMETER_TYPE _type;
- bool _isOptional;
- bool _isList;
- std::string _defaultVal;
- std::string _displayName;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CMethodParameterDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CMethodParameterDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CPhysicalRelationshipDoc_h_
-#define CPhysicalRelationshipDoc_h_
-
-namespace Caf {
-
-/// Describes a relationship between dataclass where the key information from data class instances comprising the relationship are listed in an instance of this class
-class CPhysicalRelationshipDoc {
-public:
- CPhysicalRelationshipDoc() :
- _arity(ARITY_NONE),
- _isInitialized(false) {}
- virtual ~CPhysicalRelationshipDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const ARITY_TYPE arity,
- const SmartPtrCClassCardinalityDoc dataClassLeft,
- const SmartPtrCClassCardinalityDoc dataClassRight,
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _arity = arity;
- _dataClassLeft = dataClassLeft;
- _dataClassRight = dataClassRight;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Accessor for the Arity
- ARITY_TYPE getArity() const {
- return _arity;
- }
-
- /// Accessor for the DataClassLeft
- SmartPtrCClassCardinalityDoc getDataClassLeft() const {
- return _dataClassLeft;
- }
-
- /// Accessor for the DataClassRight
- SmartPtrCClassCardinalityDoc getDataClassRight() const {
- return _dataClassRight;
- }
-
- /// Accessor for the Description
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- ARITY_TYPE _arity;
- SmartPtrCClassCardinalityDoc _dataClassLeft;
- SmartPtrCClassCardinalityDoc _dataClassRight;
- std::string _description;
- bool _isInitialized;
-
-private:
- CAF_CM_DECLARE_NOCOPY(CPhysicalRelationshipDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CPhysicalRelationshipDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- * This code was generated by the script "build/dev/codeGen/genCppDoc". Please
- * speak to Brian W. before modifying it by hand.
- *
- */
-
-#ifndef CRelationshipDoc_h_
-#define CRelationshipDoc_h_
-
-namespace Caf {
-
-/// Definition of a relationship between data classes
-class CRelationshipDoc {
-public:
- CRelationshipDoc() :
- _arity(ARITY_NONE),
- _isInitialized(false) {}
- virtual ~CRelationshipDoc() {}
-
-public:
- /// Initializes the object with everything required by this
- /// container. Once initialized, this object cannot
- /// be changed (i.e. it is immutable).
- void initialize(
- const std::string namespaceVal,
- const std::string name,
- const std::string version,
- const ARITY_TYPE arity,
- const SmartPtrCClassCardinalityDoc dataClassLeft,
- const SmartPtrCClassCardinalityDoc dataClassRight,
- const std::string description = std::string()) {
- if (! _isInitialized) {
- _namespaceVal = namespaceVal;
- _name = name;
- _version = version;
- _arity = arity;
- _dataClassLeft = dataClassLeft;
- _dataClassRight = dataClassRight;
- _description = description;
-
- _isInitialized = true;
- }
- }
-
-public:
- /// Accessor for the NamespaceVal
- std::string getNamespaceVal() const {
- return _namespaceVal;
- }
-
- /// Accessor for the Name
- std::string getName() const {
- return _name;
- }
-
- /// Accessor for the Version
- std::string getVersion() const {
- return _version;
- }
-
- /// Number of parts (sides) to relationship. Restricted to a two-sided relationship for now
- ARITY_TYPE getArity() const {
- return _arity;
- }
-
- /// Identifies the two classes that make up the relationship
- SmartPtrCClassCardinalityDoc getDataClassLeft() const {
- return _dataClassLeft;
- }
-
- /// Identifies the two classes that make up the relationship
- SmartPtrCClassCardinalityDoc getDataClassRight() const {
- return _dataClassRight;
- }
-
- /// A short human-readable description of the relationship
- std::string getDescription() const {
- return _description;
- }
-
-private:
- std::string _namespaceVal;
- std::string _name;
- std::string _version;
- ARITY_TYPE _arity;
- SmartPtrCClassCardinalityDoc _dataClassLeft;
- SmartPtrCClassCardinalityDoc _dataClassRight;
- std::string _description;
- bool _isInitialized;
-
-
-private:
- CAF_CM_DECLARE_NOCOPY(CRelationshipDoc);
-};
-
-CAF_DECLARE_SMART_POINTER(CRelationshipDoc);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef SCHEMATYPESDOCINC_H_
-#define SCHEMATYPESDOCINC_H_
-
-namespace Caf {
-
- typedef enum {
- OPERATOR_NONE,
- OPERATOR_EQUAL
- } OPERATOR_TYPE;
-
- typedef enum {
- ARITY_NONE,
- ARITY_UNSIGNED_BYTE = 2
- } ARITY_TYPE;
-
- typedef enum {
- VALIDATOR_NONE,
- VALIDATOR_ENUM,
- VALIDATOR_RANGE,
- VALIDATOR_REGEX,
- VALIDATOR_CUSTOM
- } VALIDATOR_TYPE;
-
- // Forward declare
- CAF_DECLARE_CLASS_AND_SMART_POINTER(CDataClassSubInstanceDoc);
-}
-
-#include "CInstanceOperationDoc.h"
-#include "CInstanceOperationCollectionDoc.h"
-#include "CActionClassInstanceDoc.h"
-#include "CActionClassInstanceCollectionDoc.h"
-
-#include "CCmdlMetadataDoc.h"
-#include "CCmdlUnionDoc.h"
-#include "CDataClassPropertyDoc.h"
-#include "CDataClassSubInstanceDoc.h"
-#include "CDataClassInstanceDoc.h"
-#include "CDataClassInstanceCollectionDoc.h"
-
-#include "CMethodParameterDoc.h"
-#include "CInstanceParameterDoc.h"
-
-#include "CClassIdentifierDoc.h"
-
-#include "CMethodDoc.h"
-#include "CCollectMethodDoc.h"
-#include "CActionClassDoc.h"
-
-#include "CClassPropertyDoc.h"
-
-#include "CClassFieldDoc.h"
-#include "CJoinTypeDoc.h"
-
-#include "CClassCardinalityDoc.h"
-#include "CClassInstancePropertyDoc.h"
-#include "CDataClassDoc.h"
-#include "CLogicalRelationshipDoc.h"
-#include "CPhysicalRelationshipDoc.h"
-#include "CRelationshipDoc.h"
-
-#endif /* SCHEMATYPESDOCINC_H_ */
-/*
- * Author: bwilliams
- * Created: April 6, 2012
- *
- * Copyright (c) 2012 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef DocContracts_h_
-#define DocContracts_h_
-
-#include "Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h"
-#include "Doc/SchemaTypesDoc/SchemaTypesDocInc.h"
-#include "Doc/DiagTypesDoc/DiagTypesDocInc.h"
-#include "Doc/DiagRequestDoc/DiagRequestDocInc.h"
-#include "Doc/MgmtTypesDoc/MgmtTypesDocInc.h"
-#include "Doc/MgmtRequestDoc/MgmtRequestDocInc.h"
-#include "Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h"
-#include "Doc/PersistenceDoc/PersistenceDocInc.h"
-#include "Doc/ProviderInfraDoc/ProviderInfraDocInc.h"
-#include "Doc/ProviderRequestDoc/ProviderRequestDocInc.h"
-#include "Doc/ProviderResultsDoc/ProviderResultsDocInc.h"
-#include "Doc/ResponseDoc/ResponseDocInc.h"
-#include "Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h"
-#include "Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h"
-
-#endif
-/*
- * Author: bwilliams
- * Created: Jan 26, 2011
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _FxContracts_IBean_h_
-#define _FxContracts_IBean_h_
-
-namespace Caf {
-
-CAF_FORWARD_DECLARE_SMART_INTERFACE(IBean);
-
-/// TODO - describe interface
-struct __declspec(novtable)
-IBean : public ICafObject {
- CAF_DECL_UUID("860C6E41-76E4-404b-913F-C330EE864DCD")
-
- struct CArg {
- CArg(const SmartPtrIBean& ref) :
- _reference(ref),
- _type(REFERENCE) {}
- CArg(const std::string& val) :
- _value(val),
- _type(VALUE) {}
-
- typedef enum {
- REFERENCE,
- VALUE
- } ARG_TYPE;
-
- SmartPtrIBean _reference;
- std::string _value;
- ARG_TYPE _type;
-
- private:
- CArg();
- };
-
- typedef std::deque<CArg> Cargs;
- typedef Cmapstrstr Cprops;
-
- virtual void initializeBean(
- const IBean::Cargs& ctorArgs,
- const IBean::Cprops& properties) = 0;
-
- virtual void terminateBean() = 0;
-};
-
-}
-
-#endif
-/*
- * Created on: Jul 23, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _FxContracts_IVARIANT_H_
-#define _FxContracts_IVARIANT_H_
-
-namespace Caf {
-struct __declspec(novtable) IVariant : public ICafObject {
- CAF_DECL_UUID("05AC7CB8-BBD4-4B3B-AB80-29002DD73747")
-
- virtual GVariant *get() const = 0;
- virtual std::string toString() const = 0;
- virtual bool isString() const = 0;
- virtual bool isBool() const = 0;
- virtual bool isUint8() const = 0;
- virtual bool isInt16() const = 0;
- virtual bool isUint16() const = 0;
- virtual bool isInt32() const = 0;
- virtual bool isUint32() const = 0;
- virtual bool isInt64() const = 0;
- virtual bool isUint64() const = 0;
-};
-CAF_DECLARE_SMART_INTERFACE_POINTER(IVariant);
-}
-
-#endif
-/*
- * Author: mdonahue
- * Created: 1/20/2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef FxContracts_h_
-#define FxContracts_h_
-
-#include <map>
-#include <deque>
-
-// Interfaces
-#include "Fx/IBean.h"
-#include "Fx/IVariant.h"
-
-#endif
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_CPollerMetadata_h_
-#define _IntegrationContracts_CPollerMetadata_h_
-
-namespace Caf {
-
-class CPollerMetadata {
-public:
- CPollerMetadata() :
- _maxMessagesPerPoll(0),
- _fixedRate(0) {}
-
-public:
- uint32 getMaxMessagesPerPoll() const {
- return _maxMessagesPerPoll;
- }
- void putMaxMessagesPerPoll(const uint32& maxMessagesPerPoll) {
- _maxMessagesPerPoll = maxMessagesPerPoll;
- }
-
- uint32 getFixedRate() const {
- return _fixedRate;
- }
- void putFixedRate(const uint32& fixedRate) {
- _fixedRate = fixedRate;
- }
-
-private:
- uint32 _maxMessagesPerPoll;
- uint32 _fixedRate;
-
-private:
- CPollerMetadata (const CPollerMetadata&);
- CPollerMetadata & operator=(const CPollerMetadata&);
-};
-
-CAF_DECLARE_SMART_POINTER(CPollerMetadata);
-
-}
-
-#endif // #ifndef _IntegrationContracts_CPollerMetadata_h_
-/*
- * Created on: Jan 25, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ICHANNELINTERCEPTOR_H_
-#define _IntegrationContracts_ICHANNELINTERCEPTOR_H_
-
-namespace Caf {
-
-struct __declspec(novtable)
- IChannelInterceptor : public ICafObject
-{
- CAF_DECL_UUID("5002EA10-769B-44A0-AA6B-18ED91B57655")
-
- /**
- * Invoked before the message is sent to the channel.
- * The message may be modified if necessary.
- * If this method returns null then the
- * actual send invocation will not occur.
- */
- virtual SmartPtrIIntMessage& preSend(
- SmartPtrIIntMessage& message,
- SmartPtrIMessageChannel& channel) = 0;
-
- /**
- * Invoked immediately after the send invocation. The
- * boolean value argument represents the return value of
- * that invocation.
- */
- virtual void postSend(
- SmartPtrIIntMessage& message,
- SmartPtrIMessageChannel& channel,
- bool sent) = 0;
-
- /**
- * Invoked as soon as receive is called and before a message
- * is actually retrieved. If the return value is 'false' then
- * no message will be retrieved. This only applies to PollableChannels.
- */
- virtual bool preReceive(
- SmartPtrIMessageChannel& channel) = 0;
-
- /**
- * Invoked immediately after a message has been retrieved but
- * before it is returned to the caller. The message may be modified
- * if necessary. This only applies to PollableChannels.
- */
- virtual SmartPtrIIntMessage& postReceive(
- SmartPtrIIntMessage& message,
- SmartPtrIMessageChannel& channel) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelInterceptor);
-
-}
-
-#endif /* _IntegrationContracts_ICHANNELINTERCEPTOR_H_ */
-/*
- * Created on: Jan 25, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ICHANNELINTERCEPTORINSTANCE_H_
-#define _IntegrationContracts_ICHANNELINTERCEPTORINSTANCE_H_
-
-namespace Caf {
-
-struct __declspec(novtable)
- IChannelInterceptorInstance : public ICafObject
-{
- CAF_DECL_UUID("566C38A8-FF13-4E31-814E-A18130C009F6")
-
- virtual uint32 getOrder() const = 0;
-
- virtual bool isChannelIdMatched(const std::string& channelId) const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelInterceptorInstance);
-
-}
-#endif /* _IntegrationContracts_ICHANNELINTERCEPTORINSTANCE_H_ */
-/*
- * Created on: Jan 26, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ICHANNELINTERCEPTORSUPPORT_H_
-#define _IntegrationContracts_ICHANNELINTERCEPTORSUPPORT_H_
-
-namespace Caf {
-
-struct __declspec(novtable)
-IChannelInterceptorSupport : public ICafObject {
- CAF_DECL_UUID("C8F3CBAF-B1EB-4AD8-920C-EFE5EE25638A")
-
- typedef std::list<SmartPtrIChannelInterceptor> InterceptorCollection;
- virtual void setInterceptors(
- const InterceptorCollection& interceptors) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelInterceptorSupport);
-
-}
-
-#endif /* _IntegrationContracts_ICHANNELINTERCEPTORSUPPORT_H_ */
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IChannelResolver_h_
-#define _IntegrationContracts_IChannelResolver_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IChannelResolver : public ICafObject
-{
- CAF_DECL_UUID("32361862-a312-4cab-a978-45b7059ca102")
-
- virtual SmartPtrIMessageChannel resolveChannelName(
- const std::string& channelName) const = 0;
-
- virtual SmartPtrIIntegrationObject resolveChannelNameToObject(
- const std::string& channelName) const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelResolver);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IChannelResolver_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IDocument_h_
-#define _IntegrationContracts_IDocument_h_
-
-namespace Caf {
-
-CAF_FORWARD_DECLARE_SMART_INTERFACE(IDocument);
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IDocument : public ICafObject
-{
- CAF_DECL_UUID("aa95ea11-3ca0-4863-b267-88d38246ff67")
-
-public: // Read operations
- typedef std::map<std::string, std::string> CAttributeCollection;
- typedef std::multimap<std::string, SmartPtrIDocument> CChildCollection;
- typedef std::deque<SmartPtrIDocument> COrderedChildCollection;
- CAF_DECLARE_SMART_POINTER(CAttributeCollection);
- CAF_DECLARE_SMART_POINTER(CChildCollection);
- CAF_DECLARE_SMART_POINTER(COrderedChildCollection);
-
-public: // Read operations
- virtual std::string findRequiredAttribute(const std::string& name) const = 0;
- virtual std::string findOptionalAttribute(const std::string& name) const = 0;
- virtual SmartPtrIDocument findRequiredChild(const std::string& name) const = 0;
- virtual SmartPtrIDocument findOptionalChild(const std::string& name) const = 0;
- virtual SmartPtrCAttributeCollection getAllAttributes() const = 0;
- virtual SmartPtrCChildCollection getAllChildren() const = 0;
- virtual SmartPtrCOrderedChildCollection getAllChildrenInOrder() const = 0;
- virtual std::string getName() const = 0;
- virtual std::string getValue() const = 0;
- virtual std::string getPath() const = 0;
-
-public: // Save operations
- virtual void saveToFile(const std::string& filename) const = 0;
- virtual std::string saveToString() const = 0;
- virtual std::string saveToStringRaw() const = 0;
-};
-
-}
-
-#endif // #ifndef _IntegrationContracts_IDocument_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IErrorHandler_h_
-#define _IntegrationContracts_IErrorHandler_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IErrorHandler : public ICafObject
-{
- CAF_DECL_UUID("da0e8646-43fb-4d43-a31b-f736c3978d48")
-
-public: // Read operations
- virtual void handleError(
- const SmartPtrIThrowable& throwable,
- const SmartPtrIIntMessage& message) const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IErrorHandler);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IErrorHandler_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IErrorProcessor_h_
-#define _IntegrationContracts_IErrorProcessor_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IErrorProcessor : public ICafObject
-{
- CAF_DECL_UUID("7ed3c23c-609a-4e42-9463-ed98da222d0a")
-
- virtual SmartPtrIIntMessage processErrorMessage(
- const SmartPtrIIntMessage& message) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IErrorProcessor);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IErrorProcessor_h_
-
-/*
- * Created on: Jul 23, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IEXPRESSIONINVOKER_H_
-#define _IntegrationContracts_IEXPRESSIONINVOKER_H_
-
-namespace Caf {
-
-struct __declspec(novtable) IExpressionInvoker : public ICafObject
-{
- CAF_DECL_UUID("EF1DC19E-4DE0-416C-A7CB-D1695FF8D52A")
-
- virtual SmartPtrIVariant invokeExpression(
- const std::string& methodName,
- const Cdeqstr& methodParams,
- const SmartPtrIIntMessage& message) = 0;
-};
-CAF_DECLARE_SMART_INTERFACE_POINTER(IExpressionInvoker);
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IIntMessage_h_
-#define _IntegrationContracts_IIntMessage_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IIntMessage : public ICafObject {
- CAF_DECL_UUID("c9abc77a-ebd1-4203-911f-1b37d9b17d8e")
-
- //
- // Routines dealing with the message
- //
- virtual UUID getMessageId() const = 0;
-
- virtual std::string getMessageIdStr() const = 0;
-
- //
- // Routines dealing with the payload
- //
- typedef std::map<std::string, std::pair<SmartPtrIVariant, SmartPtrICafObject> > CHeaders;
- CAF_DECLARE_SMART_POINTER(CHeaders);
-
- virtual SmartPtrCDynamicByteArray getPayload() const = 0;
-
- virtual std::string getPayloadStr() const = 0;
-
- //
- // Routines dealing with the headers
- //
- virtual SmartPtrCHeaders getHeaders() const = 0;
-
- virtual SmartPtrIVariant findOptionalHeader(
- const std::string& key) const = 0;
-
- virtual SmartPtrIVariant findRequiredHeader(
- const std::string& key) const = 0;
-
- virtual std::string findOptionalHeaderAsString(
- const std::string& key) const = 0;
-
- virtual std::string findRequiredHeaderAsString(
- const std::string& key) const = 0;
-
- virtual SmartPtrICafObject findOptionalObjectHeader(
- const std::string& key) const = 0;
-
- virtual SmartPtrICafObject findRequiredObjectHeader(
- const std::string& key) const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IIntMessage);
-
-typedef std::deque<SmartPtrIIntMessage> CMessageCollection;
-CAF_DECLARE_SMART_POINTER(CMessageCollection);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IIntMessage_h_
-
-/*
- * Created on: Jun 13, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IINTEGRATIONAPPCONTEXT_H_
-#define _IntegrationContracts_IINTEGRATIONAPPCONTEXT_H_
-
-namespace Caf {
-
-struct __declspec(novtable) IIntegrationAppContext : public ICafObject {
- CAF_DECL_UUID("CC12C628-50C1-4E74-998D-3A9C961FA06F")
-
- virtual SmartPtrIIntegrationObject getIntegrationObject(
- const std::string& id) const = 0;
-
- virtual void getIntegrationObject(
- const IID& iid,
- void **ppv) const = 0;
-
- typedef std::deque<SmartPtrICafObject> CObjectCollection;
- CAF_DECLARE_SMART_POINTER(CObjectCollection);
-
- virtual SmartPtrCObjectCollection getIntegrationObjects(const IID& iid) const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationAppContext);
-
-}
-
-#endif
-/*
- * Created on: Jun 13, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IINTEGRATIONAPPCONTEXTAWARE_H_
-#define _IntegrationContracts_IINTEGRATIONAPPCONTEXTAWARE_H_
-
-namespace Caf {
-
-struct __declspec(novtable) IIntegrationAppContextAware : public ICafObject {
- CAF_DECL_UUID("9BC34EB5-AEFF-4384-86DE-421DE89AB6E8")
-
- virtual void setIntegrationAppContext(
- SmartPtrIIntegrationAppContext context) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationAppContextAware);
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IIntegrationComponent_h_
-#define _IntegrationContracts_IIntegrationComponent_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IIntegrationComponent : public ICafObject
-{
- CAF_DECL_UUID("087e1494-4abe-4bb6-ae49-48f4510e057f")
-
- virtual bool isResponsible(
- const SmartPtrIDocument& configSection) const = 0;
-
- virtual SmartPtrIIntegrationObject createObject(
- const SmartPtrIDocument& configSection) const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationComponent);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IIntegrationComponent_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IIntegrationComponentInstance_h_
-#define _IntegrationContracts_IIntegrationComponentInstance_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IIntegrationComponentInstance : public ICafObject
-{
- CAF_DECL_UUID("70053165-1e46-4893-8e27-0e6ee8675c44")
-
- virtual void wire(
- const SmartPtrIAppContext& appContext,
- const SmartPtrIChannelResolver& channelResolver) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationComponentInstance);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IIntegrationComponent_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IIntegrationObject_h_
-#define _IntegrationContracts_IIntegrationObject_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IIntegrationObject : public ICafObject
-{
- CAF_DECL_UUID("295fa2c8-01a7-4102-b13e-8fcac00b3e5f")
-
- virtual void initialize(
- const IBean::Cargs& ctorArgs,
- const IBean::Cprops& properties,
- const SmartPtrIDocument& configSection) = 0;
-
- virtual std::string getId() const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationObject);
-
-typedef std::map<std::string, SmartPtrIIntegrationObject> CIntegrationObjectCollection;
-CAF_DECLARE_SMART_POINTER(CIntegrationObjectCollection);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IIntegrationObject_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ILifecycle_h_
-#define _IntegrationContracts_ILifecycle_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- ILifecycle : public ICafObject
-{
- CAF_DECL_UUID("180845f8-c956-46b3-8a1b-ef5061cc927a")
-
- virtual void start(const uint32 timeoutMs) = 0;
- virtual void stop(const uint32 timeoutMs) = 0;
- virtual bool isRunning() const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(ILifecycle);
-
-}
-
-#endif // #ifndef _IntegrationContracts_ILifecycle_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageChannel_h_
-#define _IntegrationContracts_IMessageChannel_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageChannel : public ICafObject
-{
- CAF_DECL_UUID("d5192d01-9c26-4c1c-8966-66d7a108bcbf")
-
- virtual bool send(
- const SmartPtrIIntMessage& message) = 0;
-
- virtual bool send(
- const SmartPtrIIntMessage& message,
- const int32 timeout) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageChannel);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageChannel_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageDispatcher_h_
-#define _IntegrationContracts_IMessageDispatcher_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageDispatcher : public ICafObject
-{
- CAF_DECL_UUID("639d8ead-6406-4c41-9a36-74d065f5dd6b")
-
- virtual void addHandler(
- const SmartPtrIMessageHandler& messageHandler) = 0;
-
- virtual void removeHandler(
- const SmartPtrIMessageHandler& messageHandler) = 0;
-
- virtual bool dispatch(
- const SmartPtrIIntMessage& message) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageDispatcher);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageDispatcher_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageHandler_h_
-#define _IntegrationContracts_IMessageHandler_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageHandler : public ICafObject
-{
- CAF_DECL_UUID("39a78b6f-f326-4739-b8ad-9e90a827745a")
-
- virtual void handleMessage(
- const SmartPtrIIntMessage& message) = 0;
-
- virtual SmartPtrIIntMessage getSavedMessage() const = 0;
-
- virtual void clearSavedMessage() = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageHandler);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageHandler_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageProcessor_h_
-#define _IntegrationContracts_IMessageProcessor_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageProcessor : public ICafObject
-{
- CAF_DECL_UUID("68770787-c44e-457e-bf8d-20c64d37bfee")
-
- virtual SmartPtrIIntMessage processMessage(
- const SmartPtrIIntMessage& message) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageProcessor);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageProcessor_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageProducer_h_
-#define _IntegrationContracts_IMessageProducer_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageProducer : public ICafObject
-{
- CAF_DECL_UUID("14430bc5-8556-48f8-b37f-c2f24a50d8dd")
-
- virtual bool isMessageProducer() const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageProducer);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageProducer_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageRouter_h_
-#define _IntegrationContracts_IMessageRouter_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageRouter : public ICafObject
-{
- CAF_DECL_UUID("27ed0739-e527-469b-882f-196d532be0bd")
-
- virtual void routeMessage(const SmartPtrIIntMessage& message) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageRouter);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageRouter_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IMessageSplitter_h_
-#define _IntegrationContracts_IMessageSplitter_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IMessageSplitter : public ICafObject
-{
- CAF_DECL_UUID("89a25ba3-113d-4efc-af46-522feda304ac")
-
- typedef std::deque<SmartPtrIIntMessage> CMessageCollection;
- CAF_DECLARE_SMART_POINTER(CMessageCollection);
-
- virtual SmartPtrCMessageCollection splitMessage(
- const SmartPtrIIntMessage& message) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageSplitter);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IMessageSplitter_h_
-
-/*
- * Created on: Aug 6, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IPhased_h
-#define _IntegrationContracts_IPhased_h
-
-namespace Caf {
-
-struct __declspec(novtable) IPhased : public ICafObject {
- CAF_DECL_UUID("CAE354D0-E212-4030-8CB7-23C92D59C6A3")
-
- virtual int32 getPhase() const = 0;
-};
-CAF_DECLARE_SMART_INTERFACE_POINTER(IPhased);
-
-};
-
-#endif
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IPollableChannel_h_
-#define _IntegrationContracts_IPollableChannel_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IPollableChannel : public ICafObject
-{
- CAF_DECL_UUID("a7ce8841-f37d-489a-a299-e148c5ff6b11")
-
- virtual SmartPtrIIntMessage receive() = 0;
- virtual SmartPtrIIntMessage receive(const int32 timeout) = 0;
- virtual SmartPtrCPollerMetadata getPollerMetadata() const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IPollableChannel);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IPollableChannel_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_IRunnable_h_
-#define _IntegrationContracts_IRunnable_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- IRunnable : public ICafObject
-{
- CAF_DECL_UUID("a3ad671c-3d04-4eba-aaa4-8dcc9c43c959")
-
- virtual void run() = 0;
- virtual void cancel() = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IRunnable);
-
-}
-
-#endif // #ifndef _IntegrationContracts_IRunnable_h_
-
-/*
- * Created on: Aug 6, 2012
- * Author: mdonahue
- *
- * Copyright (c) 2012 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ISmartLifecycle_h
-#define _IntegrationContracts_ISmartLifecycle_h
-
-namespace Caf {
-
-struct __declspec(novtable) ISmartLifecycle : public ILifecycle {
- CAF_DECL_UUID("312B7430-659F-48A1-AAAE-AE44D349132C")
-
- virtual bool isAutoStartup() const = 0;
-};
-CAF_DECLARE_SMART_INTERFACE_POINTER(ISmartLifecycle);
-
-};
-
-#endif
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ISubscribableChannel_h_
-#define _IntegrationContracts_ISubscribableChannel_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- ISubscribableChannel : public ICafObject
-{
- CAF_DECL_UUID("14d7e980-1b98-4453-b27e-8c058fb705b9")
-
- virtual void subscribe(
- const SmartPtrIMessageHandler& messageHandler) = 0;
- virtual void unsubscribe(
- const SmartPtrIMessageHandler& messageHandler) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(ISubscribableChannel);
-
-}
-
-#endif // #ifndef _IntegrationContracts_ISubscribableChannel_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ITaskExecutor_h_
-#define _IntegrationContracts_ITaskExecutor_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- ITaskExecutor : public ICafObject
-{
- CAF_DECL_UUID("4ab38314-fd31-49fc-bfce-173abc53f1a8")
-
- typedef enum {
- ETaskStateNotStarted,
- ETaskStateStarted,
- ETaskStateStopping,
- ETaskStateFinished,
- ETaskStateFailed
- } ETaskState;
-
- virtual void execute(const uint32 timeoutMs) = 0;
- virtual void cancel(const uint32 timeoutMs) = 0;
- virtual ETaskState getState() const = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(ITaskExecutor);
-
-}
-
-#endif // #ifndef _IntegrationContracts_ITaskExecutor_h_
-
-/*
- * Author: bwilliams
- * Created: Oct. 25, 2011
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _FxContracts_IThrowable_h_
-#define _FxContracts_IThrowable_h_
-
-namespace Caf {
-
-CAF_FORWARD_DECLARE_SMART_INTERFACE(IThrowable);
-
-/// TODO - describe interface
-struct __declspec(novtable)
-IThrowable : public ICafObject {
- CAF_DECL_UUID("5bced55d-06b7-4c4b-b805-90b51311dc9b")
-
- virtual std::string getExceptionClassName() const = 0;
- virtual std::string getMsg() const = 0;
- virtual std::string getClassName() const = 0;
- virtual std::string getFuncName() const = 0;
- virtual HRESULT getError() const = 0;
- virtual std::string getFullMsg() const = 0;
-};
-
-}
-
-#endif
-
-
-/*
- * Author: bwilliams
- * Created: Oct 22, 2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _IntegrationContracts_ITransformer_h_
-#define _IntegrationContracts_ITransformer_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
- ITransformer : public ICafObject
-{
- CAF_DECL_UUID("1f2a6ecb-f842-4e09-82a8-89eaf64ec98b")
-
- virtual SmartPtrIIntMessage transformMessage(
- const SmartPtrIIntMessage& message) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(ITransformer);
-
-}
-
-#endif // #ifndef _IntegrationContracts_ITransformer_h_
-
-/*
- * Author: bwilliams
- * Created: Oct 20, 2011
- *
- * Copyright (c) 2011 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef IntegrationContracts_h_
-#define IntegrationContracts_h_
-
-#include <IntegrationContractsDefines.h>
-
-// Dependencies
-#include "Integration/Dependencies/CPollerMetadata.h"
-
-// Interfaces
-#include "Integration/IIntMessage.h"
-#include "Integration/IThrowable.h"
-#include "Integration/IErrorHandler.h"
-#include "Integration/IErrorProcessor.h"
-#include "Integration/IRunnable.h"
-#include "Integration/ITaskExecutor.h"
-#include "Integration/IDocument.h"
-#include "Integration/IIntegrationObject.h"
-#include "Integration/ILifecycle.h"
-#include "Integration/IMessageChannel.h"
-#include "Integration/IMessageHandler.h"
-#include "Integration/IMessageProcessor.h"
-#include "Integration/IMessageSplitter.h"
-#include "Integration/IMessageDispatcher.h"
-#include "Integration/IMessageProducer.h"
-#include "Integration/IMessageRouter.h"
-#include "Integration/ITransformer.h"
-#include "Integration/IPollableChannel.h"
-#include "Integration/ISubscribableChannel.h"
-#include "Integration/IChannelResolver.h"
-#include "Integration/IChannelInterceptor.h"
-#include "Integration/IChannelInterceptorInstance.h"
-#include "Integration/IChannelInterceptorSupport.h"
-#include "Integration/IIntegrationComponentInstance.h"
-#include "Integration/IIntegrationComponent.h"
-#include "Integration/IIntegrationAppContext.h"
-#include "Integration/IIntegrationAppContextAware.h"
-#include "Integration/IExpressionInvoker.h"
-#include "Integration/IPhased.h"
-#include "Integration/ISmartLifecycle.h"
-
-#endif // #ifndef IntegrationContracts_h_
-/*
- * Author: bwilliams
- * Created: 10/22/2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef IntegrationContractsDefines_h_
-#define IntegrationContractsDefines_h_
-
-#include <BaseDefines.h>
-
-#include <map>
-#include <string>
-#include <list>
-#include <deque>
-#include <vector>
-
-////////////////////////////////////////////////////////////////////////
-//
-// Class declaration helpers
-//
-////////////////////////////////////////////////////////////////////////
-#define INTEGRATION_CONTRACT_DECLARE_STD_ACCESSOR( _classname_ ) \
- public: \
- _classname_(){}\
- private: \
- _classname_ (const _classname_ &); \
- _classname_ & operator=(const _classname_ &); \
- public:
-
-#define INTEGRATION_CONTRACT_DECLARE_NOCOPY( _classname_ ) \
- private: \
- _classname_ (const _classname_ &); \
- _classname_ & operator=(const _classname_ &)
-
-////////////////////////////////////////////////////////////////////////
-//
-// Put these accessors in the header file to provide the implementation.
-//
-////////////////////////////////////////////////////////////////////////
-#define INTEGRATION_CONTRACT_ACCESSOR_IMPL_GET_PUT( _Type_, _Name_ ) \
- private: \
- _Type_ _##_Name_; \
- public: \
- _Type_ get##_Name_() const \
- { \
- return _##_Name_; \
- } \
- void put##_Name_(const _Type_& cr##_Name_) \
- { \
- _##_Name_ = cr##_Name_; \
- }
-
-////////////////////////////////////////////////////////////////////////
-//
-// Put these accessors in the interface file to provide the declaration.
-//
-////////////////////////////////////////////////////////////////////////
-#define INTEGRATION_CONTRACT_ACCESSOR_VIRT_GET( _Type_, _Name_ ) \
- virtual _Type_ get##_Name_() const = 0;
-
-#define INTEGRATION_CONTRACT_ACCESSOR_VIRT_PUT( _Type_, _Name_ ) \
- virtual void put##_Name_(const _Type_ & cr##_Name_) = 0;
-
-#define INTEGRATION_CONTRACT_ACCESSOR_VIRT_GET_PUT( _Type_, _Name_ ) \
- virtual _Type_ get##_Name_() const = 0; \
- virtual void put##_Name_(const _Type_ & cr##_Name_) = 0;
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 12, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _MaContracts_IConfigEnv_h_
-#define _MaContracts_IConfigEnv_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
-IConfigEnv : public ICafObject {
- CAF_DECL_UUID("dea6cea4-9385-458e-b549-d05640382da6")
-
- virtual void initialize() = 0;
-
- virtual SmartPtrCPersistenceDoc getUpdated(
- const int32 timeout) = 0;
-
- virtual void update(
- const SmartPtrCPersistenceDoc& persistence) = 0;
-
- virtual void remove(
- const SmartPtrCPersistenceDoc& persistence) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IConfigEnv);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 12, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _MaContracts_IPersistence_h_
-#define _MaContracts_IPersistence_h_
-
-namespace Caf {
-
-/// TODO - describe interface
-struct __declspec(novtable)
-IPersistence : public ICafObject {
- CAF_DECL_UUID("5b48f8ef-7023-4583-9d2d-b15ae566b0cc")
-
- virtual void initialize() = 0;
-
- virtual SmartPtrCPersistenceDoc getUpdated(
- const int32 timeout) = 0;
-
- virtual void update(
- const SmartPtrCPersistenceDoc& persistence) = 0;
-
- virtual void remove(
- const SmartPtrCPersistenceDoc& persistence) = 0;
-};
-
-CAF_DECLARE_SMART_INTERFACE_POINTER(IPersistence);
-
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: 1/20/2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef MaContracts_h_
-#define MaContracts_h_
-
-#include "CafContracts.h"
-#include "DocContracts.h"
-
-// Interfaces
-#include "Ma/IPersistence.h"
-#include "Ma/IConfigEnv.h"
-
-#endif
#define COMMON_SYS_INC_INTEGRATION_H_
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
-#include "../src/Integration/Core/IntegrationCoreLink.h"
-#include "../src/Integration/Caf/IntegrationCafLink.h"
+// Dependencies
+#include "Integration/Dependencies/CPollerMetadata.h"
+
+// Interfaces
+#include "Integration/IIntMessage.h"
+#include "Integration/IThrowable.h"
+#include "Integration/IErrorHandler.h"
+#include "Integration/IErrorProcessor.h"
+#include "Integration/IRunnable.h"
+#include "Integration/ITaskExecutor.h"
+#include "Integration/IDocument.h"
+#include "Integration/IIntegrationObject.h"
+#include "Integration/ILifecycle.h"
+#include "Integration/IMessageChannel.h"
+#include "Integration/IMessageHandler.h"
+#include "Integration/IMessageProcessor.h"
+#include "Integration/IMessageSplitter.h"
+#include "Integration/IMessageDispatcher.h"
+#include "Integration/IMessageProducer.h"
+#include "Integration/IMessageRouter.h"
+#include "Integration/ITransformer.h"
+#include "Integration/IPollableChannel.h"
+#include "Integration/ISubscribableChannel.h"
+#include "Integration/IChannelResolver.h"
+#include "Integration/IChannelInterceptor.h"
+#include "Integration/IChannelInterceptorInstance.h"
+#include "Integration/IChannelInterceptorSupport.h"
+#include "Integration/IIntegrationComponentInstance.h"
+#include "Integration/IIntegrationComponent.h"
+#include "Integration/IIntegrationAppContext.h"
+#include "Integration/IIntegrationAppContextAware.h"
+#include "Integration/IExpressionInvoker.h"
+#include "Integration/IPhased.h"
+#include "Integration/ISmartLifecycle.h"
-namespace Caf {
- // Integration Contracts
- extern INTEGRATIONCORE_LINKAGE const char* _sObjIdIntegrationObjectFactory;
- extern INTEGRATIONCORE_LINKAGE const char* _sObjIdErrorChannel;
- extern INTEGRATIONCORE_LINKAGE const char* _sObjIdNullChannel;
- extern INTEGRATIONCORE_LINKAGE const char* _sObjIdHeaderExpressionInvoker;
-}
+#include "../src/Integration/Caf/IntegrationCafLink.h"
+#include "../src/Integration/Core/IntegrationCoreLink.h"
#endif /* COMMON_SYS_INC_INTEGRATION_H_ */
GError *gError = NULL;
int32 fd = g_file_open_tmp(filename_template.c_str(), &allocatedFilename, &gError);
- if (fd > 0) {
+ if (fd >= 0) {
filename = allocatedFilename;
#ifdef WIN32
::_close(fd);
}
}
CAF_CM_EXIT;
+ CAF_CM_VALIDATE_STRING(filename);
return filename;
}
persistence->initialize(
loadLocalSecurity(persistenceDir),
loadRemoteSecurityCollection(persistenceDir),
- loadPersistenceProtocol(persistenceDir));
+ loadPersistenceProtocolCollection(persistenceDir),
+ loadTextFile(persistenceDir, "version.txt", "1.0"));
return persistence;
}
return remoteSecurityCollection;
}
-SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol(
+SmartPtrCPersistenceProtocolCollectionDoc CPersistenceUtils::loadPersistenceProtocolCollection(
const std::string& persistenceDir) {
- CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocol");
+ CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocolCollection");
CAF_CM_VALIDATE_STRING(persistenceDir);
const std::string protocolDir = FileSystemUtils::buildPath(persistenceDir, "protocol");
- std::deque<SmartPtrCAmqpBrokerDoc> amqpBrokerCollectionInner;
+ std::deque<SmartPtrCPersistenceProtocolDoc> persistenceProtocolCollectionInner;
if (FileSystemUtils::doesDirectoryExist(protocolDir)) {
FileSystemUtils::DirectoryItems protocolItems = FileSystemUtils::itemsInDirectory(
protocolDir, FileSystemUtils::REGEX_MATCH_ALL);
tlsCertPathCollection.CreateInstance();
tlsCertPathCollection->initialize(tlsCertPathCollectionInner);
- SmartPtrCAmqpBrokerDoc amqpBroker;
- amqpBroker.CreateInstance();
- amqpBroker->initialize(
- loadTextFile(protocolIdDir, "amqpBrokerId.txt"),
+ SmartPtrCPersistenceProtocolDoc persistenceProtocol;
+ persistenceProtocol.CreateInstance();
+ persistenceProtocol->initialize(
+ loadTextFile(protocolIdDir, "protocolName.txt"),
loadTextFile(protocolIdDir, "uri.txt"),
loadTextFile(protocolIdDir, "tlsCert.pem"),
loadTextFile(protocolIdDir, "tlsProtocol.txt"),
FileSystemUtils::buildPath(protocolIdDir, "tlsCert.pem"),
tlsCertPathCollection);
- amqpBrokerCollectionInner.push_back(amqpBroker);
+ persistenceProtocolCollectionInner.push_back(persistenceProtocol);
}
}
- SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollection;
- amqpBrokerCollection.CreateInstance();
- amqpBrokerCollection->initialize(amqpBrokerCollectionInner);
+ SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection;
+ persistenceProtocolCollection.CreateInstance();
+ persistenceProtocolCollection->initialize(persistenceProtocolCollectionInner);
- SmartPtrCPersistenceProtocolDoc persistenceProtocol;
- persistenceProtocol.CreateInstance();
- persistenceProtocol->initialize(amqpBrokerCollection);
-
- return persistenceProtocol;
+ return persistenceProtocolCollection;
}
-SmartPtrCAmqpBrokerDoc CPersistenceUtils::loadAmqpBroker(
+SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol(
const std::string& persistenceDir) {
- CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadAmqpBroker");
+ CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocol");
CAF_CM_VALIDATE_STRING(persistenceDir);
- const SmartPtrCPersistenceProtocolDoc persistenceProtocol =
- loadPersistenceProtocol(persistenceDir);
+ const SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection =
+ loadPersistenceProtocolCollection(persistenceDir);
- return loadAmqpBroker(persistenceProtocol);
+ return loadPersistenceProtocol(persistenceProtocolCollection);
}
-SmartPtrCAmqpBrokerDoc CPersistenceUtils::loadAmqpBroker(
- const SmartPtrCPersistenceProtocolDoc& persistenceProtocol) {
- CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadAmqpBroker");
- CAF_CM_VALIDATE_SMARTPTR(persistenceProtocol);
-
- const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollection =
- persistenceProtocol->getAmqpBrokerCollection();
- CAF_CM_VALIDATE_SMARTPTR(amqpBrokerCollection);
-
- std::deque<SmartPtrCAmqpBrokerDoc> amqpBrokerCollectionInner =
- amqpBrokerCollection->getAmqpBroker();
- CAF_CM_VALIDATE_BOOL(! amqpBrokerCollectionInner.empty());
- CAF_CM_VALIDATE_BOOL(amqpBrokerCollectionInner.size() <= 2);
+SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol(
+ const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection) {
+ CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocol");
+ CAF_CM_VALIDATE_SMARTPTR(persistenceProtocolCollection);
- SmartPtrCAmqpBrokerDoc amqpBroker = amqpBrokerCollectionInner.front();
- if (amqpBrokerCollectionInner.size() == 2) {
- if (amqpBroker->getAmqpBrokerId().compare("amqpBroker_default") == 0) {
- amqpBroker = amqpBrokerCollectionInner.at(1);
- }
- CAF_CM_VALIDATE_BOOL(amqpBroker->getAmqpBrokerId().compare("amqpBroker_default") != 0);
- }
+ std::deque<SmartPtrCPersistenceProtocolDoc> persistenceProtocolCollectionInner =
+ persistenceProtocolCollection->getPersistenceProtocol();
+ CAF_CM_VALIDATE_BOOL(! persistenceProtocolCollectionInner.empty());
+ CAF_CM_VALIDATE_BOOL(persistenceProtocolCollectionInner.size() == 1);
- return amqpBroker;
+ return persistenceProtocolCollectionInner.front();
}
void CPersistenceUtils::savePersistence(
const SmartPtrCLocalSecurityDoc localSecurity = persistence->getLocalSecurity();
const SmartPtrCRemoteSecurityCollectionDoc remoteSecurityCollection =
persistence->getRemoteSecurityCollection();
- const SmartPtrCPersistenceProtocolDoc persistenceProtocol =
- persistence->getPersistenceProtocol();
+ const SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection =
+ persistence->getPersistenceProtocolCollection();
if (FileSystemUtils::doesDirectoryExist(persistenceDir)) {
CAF_CM_LOG_DEBUG_VA1("Removing directory - %s", persistenceDir.c_str());
saveLocalSecurity(localSecurity, persistenceDir);
saveRemoteSecurityCollection(remoteSecurityCollection, persistenceDir);
- savePersistenceProtocol(persistenceProtocol, persistenceDir);
+ savePersistenceProtocolCollection(persistenceProtocolCollection, persistenceDir);
+ FileSystemUtils::saveTextFile(persistenceDir, "version.txt", persistence->getVersion());
}
void CPersistenceUtils::saveLocalSecurity(
}
}
-void CPersistenceUtils::savePersistenceProtocol(
- const SmartPtrCPersistenceProtocolDoc& persistenceProtocol,
+void CPersistenceUtils::savePersistenceProtocolCollection(
+ const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection,
const std::string& persistenceDir) {
- CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "savePersistenceProtocol");
+ CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "savePersistenceProtocolCollection");
CAF_CM_VALIDATE_STRING(persistenceDir);
- if (! persistenceProtocol.IsNull() && ! persistenceProtocol->getAmqpBrokerCollection().IsNull()) {
- const std::deque<SmartPtrCAmqpBrokerDoc> amqpBrokerCollectionInner =
- persistenceProtocol->getAmqpBrokerCollection()->getAmqpBroker();
- if (! amqpBrokerCollectionInner.empty()) {
+ if (! persistenceProtocolCollection.IsNull()) {
+ const std::deque<SmartPtrCPersistenceProtocolDoc> persistenceProtocolCollectionInner =
+ persistenceProtocolCollection->getPersistenceProtocol();
+ if (! persistenceProtocolCollectionInner.empty()) {
const std::string protocolDir = createDirectory(persistenceDir, "protocol");
- for (TConstIterator<std::deque<SmartPtrCAmqpBrokerDoc> >
- amqpBrokerIter(amqpBrokerCollectionInner);
- amqpBrokerIter;
- amqpBrokerIter++) {
- const SmartPtrCAmqpBrokerDoc amqpBroker = *amqpBrokerIter;
+ for (TConstIterator<std::deque<SmartPtrCPersistenceProtocolDoc> >
+ persistenceProtocolIter(persistenceProtocolCollectionInner);
+ persistenceProtocolIter;
+ persistenceProtocolIter++) {
+ const SmartPtrCPersistenceProtocolDoc persistenceProtocol = *persistenceProtocolIter;
- const std::string amqpBrokerId = amqpBroker->getAmqpBrokerId();
- CAF_CM_VALIDATE_STRING(amqpBrokerId);
+ const std::string protocolName = persistenceProtocol->getProtocolName();
+ CAF_CM_VALIDATE_STRING(protocolName);
- const std::string amqpQueueDir = createDirectory(protocolDir, amqpBrokerId);
+ const std::string amqpQueueDir = createDirectory(protocolDir, protocolName);
- if (! amqpBroker->getAmqpBrokerId().empty()) {
- FileSystemUtils::saveTextFile(
- amqpQueueDir, "amqpBrokerId.txt", amqpBroker->getAmqpBrokerId());
- }
+ FileSystemUtils::saveTextFile(
+ amqpQueueDir, "protocolName.txt", persistenceProtocol->getProtocolName());
- if (! amqpBroker->getUri().empty()) {
+ if (! persistenceProtocol->getUri().empty()) {
FileSystemUtils::saveTextFile(
- amqpQueueDir, "uri.txt", amqpBroker->getUri());
+ amqpQueueDir, "uri.txt", persistenceProtocol->getUri());
}
- if (! amqpBroker->getTlsCert().empty()) {
+ if (! persistenceProtocol->getTlsCert().empty()) {
FileSystemUtils::saveTextFile(
- amqpQueueDir, "tlsCert.pem", amqpBroker->getTlsCert());
+ amqpQueueDir, "tlsCert.pem", persistenceProtocol->getTlsCert());
}
- if (! amqpBroker->getTlsProtocol().empty()) {
+ if (! persistenceProtocol->getTlsProtocol().empty()) {
FileSystemUtils::saveTextFile(
- amqpQueueDir, "tlsProtocol.txt", amqpBroker->getTlsProtocol());
+ amqpQueueDir, "tlsProtocol.txt", persistenceProtocol->getTlsProtocol());
}
const std::deque<std::string> tlsCipherCollectionInner =
- amqpBroker->getTlsCipherCollection();
+ persistenceProtocol->getTlsCipherCollection();
if (! tlsCipherCollectionInner.empty()) {
const std::string cipherDir = createDirectory(amqpQueueDir, "tlsCipherCollection");
saveCollection(tlsCipherCollectionInner, cipherDir, "tlsCipher", ".txt");
}
- if (! amqpBroker->getTlsCertCollection().IsNull()) {
+ if (! persistenceProtocol->getTlsCertCollection().IsNull()) {
const std::deque<std::string> tlsCertCollectionInner =
- amqpBroker->getTlsCertCollection()->getCert();
+ persistenceProtocol->getTlsCertCollection()->getCert();
if (! tlsCertCollectionInner.empty()) {
const std::string certCollectionDir = createDirectory(amqpQueueDir, "tlsCertCollection");
std::string CPersistenceUtils::loadTextFile(
const std::string& dir,
- const std::string& file) {
+ const std::string& file,
+ const std::string& defaultVal) {
CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadTextFile");
CAF_CM_VALIDATE_STRING(dir);
CAF_CM_VALIDATE_STRING(file);
std::string rc;
if (FileSystemUtils::doesFileExist(path)) {
rc = FileSystemUtils::loadTextFile(path);
+ } else {
+ rc = defaultVal;
}
return rc;
static SmartPtrCRemoteSecurityCollectionDoc loadRemoteSecurityCollection(
const std::string& persistenceDir);
- static SmartPtrCPersistenceProtocolDoc loadPersistenceProtocol(
+ static SmartPtrCPersistenceProtocolCollectionDoc loadPersistenceProtocolCollection(
const std::string& persistenceDir);
- static SmartPtrCAmqpBrokerDoc loadAmqpBroker(
+ static SmartPtrCPersistenceProtocolDoc loadPersistenceProtocol(
const std::string& persistenceDir);
- static SmartPtrCAmqpBrokerDoc loadAmqpBroker(
- const SmartPtrCPersistenceProtocolDoc& persistenceProtocol);
+ static SmartPtrCPersistenceProtocolDoc loadPersistenceProtocol(
+ const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection);
public:
static void savePersistence(
const SmartPtrCRemoteSecurityCollectionDoc& remoteSecurityCollection,
const std::string& persistenceDir);
- static void savePersistenceProtocol(
- const SmartPtrCPersistenceProtocolDoc& persistenceProtocol,
+ static void savePersistenceProtocolCollection(
+ const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection,
const std::string& persistenceDir);
private:
static std::string loadTextFile(
const std::string& dir,
- const std::string& file);
+ const std::string& file,
+ const std::string& defaultVal = std::string());
private:
static std::string createDirectory(
return rc;
}
-std::string ProcessUtils::convertToString(
- const Cdeqstr& deqstr) {
+std::string ProcessUtils::convertToString(const Cdeqstr& deqstr) {
std::string rc;
for (TConstIterator<Cdeqstr> strIter(deqstr); strIter; strIter++) {
- const std::string str = *strIter;
+ std::string str = *strIter;
+#ifdef WIN32
+ if (rc.empty() && str.find(" ") != std::string::npos) {
+ str = "\"" + *strIter + "\"";
+ }
+#endif
rc += str + std::string(" ");
}
#include <errno.h>
#include <glib/gstdio.h>
-#include <FxContracts.h>
+#include <IBean.h>
+#include <IVariant.h>
+#include <CommonGlobals.h>
-#include "../Globals/CommonGlobalsLink.h"
#include "../Logging/LoggingLink.h"
#include "../Exception/ExceptionLink.h"
#include "../Collections/Iterators/IteratorsInc.h"
#include "CAutoRecMutex.h"
#include "CAutoCondition.h"
#include "CAutoMutexLockUnlock.h"
+#include "CAutoMutexLockUnlockRaw.h"
#include "CAutoMutexUnlockLock.h"
#include "CThreadSignal.h"
#include "CCmdLineOptions.h"
using namespace Caf;
-void UriUtils::parseUriString(const std::string& uri, UriUtils::SUriRecord& data) {
+void UriUtils::parseUriString(
+ const std::string& uri,
+ UriUtils::SUriRecord& data) {
CAF_CM_STATIC_FUNC("UriUtils", "parseUriString");
CAF_CM_VALIDATE_STRING(uri);
CAF_CM_EXIT;
}
+std::string UriUtils::buildUriString(
+ UriUtils::SUriRecord& data) {
+ CAF_CM_STATIC_FUNC_VALIDATE("UriUtils", "buildUriString");
+ CAF_CM_VALIDATE_STRING(data.protocol);
+ CAF_CM_VALIDATE_STRING(data.host);
+ CAF_CM_VALIDATE_STRING(data.path);
+
+ std::string rc = data.protocol + ":";
+ if (! data.username.empty() || ! data.password.empty()) {
+ rc += data.username + ":" + data.password + "@";
+ }
+
+ rc += data.host;
+
+ if (! data.portStr.empty()) {
+ rc += ":" + data.portStr;
+ }
+
+ rc += "/" + data.path;
+
+ rc = appendParameters(rc, data.parameters);
+
+ return rc;
+}
+
void UriUtils::parseFileAddress(const std::string& fileUri, UriUtils::SFileUriRecord& data) {
CAF_CM_STATIC_FUNC_LOG("UriUtils", "parseFileAddress");
CAF_CM_VALIDATE_STRING(fileUri);
};
void COMMONAGGREGATOR_LINKAGE parseUriString(const std::string& uri, SUriRecord& data);
+ std::string COMMONAGGREGATOR_LINKAGE buildUriString(SUriRecord& data);
void COMMONAGGREGATOR_LINKAGE parseFileAddress(const std::string& fileUri, SFileUriRecord& data);
std::string COMMONAGGREGATOR_LINKAGE parseRequiredFilePath(const std::string& uriStr);
std::string COMMONAGGREGATOR_LINKAGE parseOptionalFilePath(const std::string& uriStr);
#ifdef WIN32
#define COMMONAGGREGATOR_LINKAGE __declspec(dllexport)
- #define COMMONGLOBALS_LINKAGE __declspec(dllexport)
#define EXCEPTION_LINKAGE __declspec(dllexport)
#define LOGGING_LINKAGE __declspec(dllexport)
#define SUBSYSTEMBASE_LINKAGE __declspec(dllexport)
#define XMLUTILS_LINKAGE __declspec(dllexport)
#else
#define COMMONAGGREGATOR_LINKAGE
- #define COMMONGLOBALS_LINKAGE
#define EXCEPTION_LINKAGE
#define LOGGING_LINKAGE
#define SUBSYSTEMBASE_LINKAGE
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#include "stdafx.h"
-#include "AmqpBrokerCollectionXml.h"
-
-using namespace Caf;
-
-void AmqpBrokerCollectionXml::add(
- const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionDoc,
- const SmartPtrCXmlElement thisXml) {
- CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerCollectionXml", "add");
- CAF_CM_VALIDATE_SMARTPTR(amqpBrokerCollectionDoc);
- CAF_CM_VALIDATE_SMARTPTR(thisXml);
-
- const std::deque<SmartPtrCAmqpBrokerDoc> amqpBrokerVal =
- amqpBrokerCollectionDoc->getAmqpBroker();
-
- if (! amqpBrokerVal.empty()) {
- for (TConstIterator<std::deque<SmartPtrCAmqpBrokerDoc> > amqpBrokerIter(amqpBrokerVal);
- amqpBrokerIter; amqpBrokerIter++) {
- const SmartPtrCXmlElement amqpBrokerXml =
- thisXml->createAndAddElement("amqpBroker");
- AmqpBrokerXml::add(*amqpBrokerIter, amqpBrokerXml);
- }
- }
-}
-
-SmartPtrCAmqpBrokerCollectionDoc AmqpBrokerCollectionXml::parse(
- const SmartPtrCXmlElement thisXml) {
- CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerCollectionXml", "parse");
- CAF_CM_VALIDATE_SMARTPTR(thisXml);
-
- const CXmlElement::SmartPtrCElementCollection amqpBrokerChildrenXml =
- thisXml->findOptionalChildren("amqpBroker");
-
- std::deque<SmartPtrCAmqpBrokerDoc> amqpBrokerVal;
- if (! amqpBrokerChildrenXml.IsNull() && ! amqpBrokerChildrenXml->empty()) {
- for (TConstIterator<CXmlElement::CElementCollection> amqpBrokerXmlIter(*amqpBrokerChildrenXml);
- amqpBrokerXmlIter; amqpBrokerXmlIter++) {
- const SmartPtrCXmlElement amqpBrokerXml = amqpBrokerXmlIter->second;
- const SmartPtrCAmqpBrokerDoc amqpBrokerDoc =
- AmqpBrokerXml::parse(amqpBrokerXml);
- amqpBrokerVal.push_back(amqpBrokerDoc);
- }
- }
-
- SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionDoc;
- amqpBrokerCollectionDoc.CreateInstance();
- amqpBrokerCollectionDoc->initialize(amqpBrokerVal);
-
- return amqpBrokerCollectionDoc;
-}
-
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef AmqpBrokerCollectionXml_h_
-#define AmqpBrokerCollectionXml_h_
-
-namespace Caf {
-
- /// Streams the AmqpBrokerCollection class to/from XML
- namespace AmqpBrokerCollectionXml {
-
- /// Adds the AmqpBrokerCollectionDoc into the XML.
- void CAFCORETYPESXML_LINKAGE add(
- const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionDoc,
- const SmartPtrCXmlElement thisXml);
-
- /// Parses the AmqpBrokerCollectionDoc from the XML.
- SmartPtrCAmqpBrokerCollectionDoc CAFCORETYPESXML_LINKAGE parse(
- const SmartPtrCXmlElement thisXml);
- }
-}
-
-#endif
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#include "stdafx.h"
-#include "AmqpBrokerXml.h"
-
-using namespace Caf;
-
-void AmqpBrokerXml::add(
- const SmartPtrCAmqpBrokerDoc amqpBrokerDoc,
- const SmartPtrCXmlElement thisXml) {
- CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerXml", "add");
- CAF_CM_VALIDATE_SMARTPTR(amqpBrokerDoc);
- CAF_CM_VALIDATE_SMARTPTR(thisXml);
-
- const std::string amqpBrokerIdVal = amqpBrokerDoc->getAmqpBrokerId();
- if (! amqpBrokerIdVal.empty()) {
- thisXml->addAttribute("amqpBrokerId", amqpBrokerIdVal);
- }
-
- const std::string uriVal = amqpBrokerDoc->getUri();
- if (! uriVal.empty()) {
- thisXml->addAttribute("uri", uriVal);
- }
-
- const std::string tlsCertVal = amqpBrokerDoc->getTlsCert();
- if (! tlsCertVal.empty()) {
- const SmartPtrCXmlElement tlsCertXml = thisXml->createAndAddElement("tlsCert");
- tlsCertXml->setValue(tlsCertVal);
- }
-
- const std::string tlsProtocolVal = amqpBrokerDoc->getTlsProtocol();
- if (! tlsProtocolVal.empty()) {
- thisXml->addAttribute("tlsProtocol", tlsProtocolVal);
- }
-
- const Cdeqstr tlsCipherCollectionVal = amqpBrokerDoc->getTlsCipherCollection();
- if (! tlsCipherCollectionVal.empty()) {
- const SmartPtrCXmlElement tlsCipherCollectionXml =
- thisXml->createAndAddElement("tlsCipherCollection");
- for (TConstIterator<std::deque<std::string> > valueIter(tlsCipherCollectionVal);
- valueIter; valueIter++) {
- const SmartPtrCXmlElement valueXml =
- tlsCipherCollectionXml->createAndAddElement("cipher");
- valueXml->setValue(*valueIter);
- }
- }
-
- const SmartPtrCCertCollectionDoc tlsCertCollectionVal =
- amqpBrokerDoc->getTlsCertCollection();
- if (! tlsCertCollectionVal.IsNull()) {
- const SmartPtrCXmlElement tlsCertCollectionXml =
- thisXml->createAndAddElement("tlsCertCollection");
- CertCollectionXml::add(tlsCertCollectionVal, tlsCertCollectionXml);
- }
-
- const std::string tlsCertPathVal = amqpBrokerDoc->getTlsCertPath();
- if (! tlsCertPathVal.empty()) {
- thisXml->addAttribute("tlsCertPath", tlsCertPathVal);
- }
-
- const SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal =
- amqpBrokerDoc->getTlsCertPathCollection();
- if (! tlsCertPathCollectionVal.IsNull()) {
- const SmartPtrCXmlElement tlsCertPathCollectionXml =
- thisXml->createAndAddElement("tlsCertPathCollection");
- CertPathCollectionXml::add(tlsCertPathCollectionVal, tlsCertPathCollectionXml);
- }
-}
-
-SmartPtrCAmqpBrokerDoc AmqpBrokerXml::parse(
- const SmartPtrCXmlElement thisXml) {
- CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerXml", "parse");
- CAF_CM_VALIDATE_SMARTPTR(thisXml);
-
- const std::string amqpBrokerIdVal =
- thisXml->findOptionalAttribute("amqpBrokerId");
-
- const std::string uriVal =
- thisXml->findOptionalAttribute("uri");
-
- std::string tlsCertVal;
- const SmartPtrCXmlElement tlsCertXml = thisXml->findOptionalChild("tlsCert");
- if (tlsCertXml) {
- tlsCertVal = tlsCertXml->getValue();
- }
-
- const std::string tlsProtocolVal =
- thisXml->findOptionalAttribute("tlsProtocol");
-
- const SmartPtrCXmlElement tlsCipherCollectionXml =
- thisXml->findOptionalChild("tlsCipherCollection");
- std::deque<std::string> tlsCipherCollectionVal;
- if (! tlsCipherCollectionXml.IsNull()) {
- const CXmlElement::SmartPtrCElementCollection valueCollectionXml =
- tlsCipherCollectionXml->findOptionalChildren("cipher");
- if (! valueCollectionXml.IsNull() && ! valueCollectionXml->empty()) {
- for (TConstIterator<CXmlElement::CElementCollection> valueXmlIter(*valueCollectionXml);
- valueXmlIter; valueXmlIter++) {
- const SmartPtrCXmlElement valueXml = valueXmlIter->second;
- const std::string valueDoc = valueXml->getValue();
- tlsCipherCollectionVal.push_back(valueDoc);
- }
- }
- }
-
- const SmartPtrCXmlElement tlsCertCollectionXml =
- thisXml->findOptionalChild("tlsCertCollection");
- SmartPtrCCertCollectionDoc tlsCertCollectionVal;
- if (! tlsCertCollectionXml.IsNull()) {
- tlsCertCollectionVal = CertCollectionXml::parse(tlsCertCollectionXml);
- }
-
- const std::string tlsCertPathVal =
- thisXml->findOptionalAttribute("tlsCertPath");
-
- const SmartPtrCXmlElement tlsCertPathCollectionXml =
- thisXml->findOptionalChild("tlsCertPathCollection");
- SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal;
- if (! tlsCertPathCollectionXml.IsNull()) {
- tlsCertPathCollectionVal = CertPathCollectionXml::parse(tlsCertPathCollectionXml);
- }
-
- SmartPtrCAmqpBrokerDoc amqpBrokerDoc;
- amqpBrokerDoc.CreateInstance();
- amqpBrokerDoc->initialize(
- amqpBrokerIdVal,
- uriVal,
- tlsCertVal,
- tlsProtocolVal,
- tlsCipherCollectionVal,
- tlsCertCollectionVal,
- tlsCertPathVal,
- tlsCertPathCollectionVal);
-
- return amqpBrokerDoc;
-}
-
-/*
- * Author: bwilliams
- * Created: Nov 16, 2015
- *
- * Copyright (c) 2015 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- *
- */
-
-#ifndef AmqpBrokerXml_h_
-#define AmqpBrokerXml_h_
-
-namespace Caf {
-
- /// Streams the AmqpBroker class to/from XML
- namespace AmqpBrokerXml {
-
- /// Adds the AmqpBrokerDoc into the XML.
- void PERSISTENCEXML_LINKAGE add(
- const SmartPtrCAmqpBrokerDoc amqpBrokerDoc,
- const SmartPtrCXmlElement thisXml);
-
- /// Parses the AmqpBrokerDoc from the XML.
- SmartPtrCAmqpBrokerDoc PERSISTENCEXML_LINKAGE parse(
- const SmartPtrCXmlElement thisXml);
- }
-}
-
-#endif
CAF_CM_VALIDATE_SMARTPTR(persistenceProtocolDoc);
CAF_CM_VALIDATE_SMARTPTR(thisXml);
- const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionVal =
- persistenceProtocolDoc->getAmqpBrokerCollection();
- if (! amqpBrokerCollectionVal.IsNull()) {
- const SmartPtrCXmlElement amqpBrokerCollectionXml =
- thisXml->createAndAddElement("amqpBrokerCollection");
- AmqpBrokerCollectionXml::add(amqpBrokerCollectionVal, amqpBrokerCollectionXml);
+ const std::string protocolNameVal = persistenceProtocolDoc->getProtocolName();
+ if (! protocolNameVal.empty()) {
+ thisXml->addAttribute("protocolName", protocolNameVal);
+ }
+
+ const std::string uriVal = persistenceProtocolDoc->getUri();
+ if (! uriVal.empty()) {
+ thisXml->addAttribute("uri", uriVal);
+ }
+
+ const std::string tlsCertVal = persistenceProtocolDoc->getTlsCert();
+ if (! tlsCertVal.empty()) {
+ const SmartPtrCXmlElement tlsCertXml = thisXml->createAndAddElement("tlsCert");
+ tlsCertXml->setValue(tlsCertVal);
+ }
+
+ const std::string tlsProtocolVal = persistenceProtocolDoc->getTlsProtocol();
+ if (! tlsProtocolVal.empty()) {
+ thisXml->addAttribute("tlsProtocol", tlsProtocolVal);
+ }
+
+ const Cdeqstr tlsCipherCollectionVal = persistenceProtocolDoc->getTlsCipherCollection();
+ if (! tlsCipherCollectionVal.empty()) {
+ const SmartPtrCXmlElement tlsCipherCollectionXml =
+ thisXml->createAndAddElement("tlsCipherCollection");
+ for (TConstIterator<std::deque<std::string> > valueIter(tlsCipherCollectionVal);
+ valueIter; valueIter++) {
+ const SmartPtrCXmlElement valueXml =
+ tlsCipherCollectionXml->createAndAddElement("cipher");
+ valueXml->setValue(*valueIter);
+ }
+ }
+
+ const SmartPtrCCertCollectionDoc tlsCertCollectionVal =
+ persistenceProtocolDoc->getTlsCertCollection();
+ if (! tlsCertCollectionVal.IsNull()) {
+ const SmartPtrCXmlElement tlsCertCollectionXml =
+ thisXml->createAndAddElement("tlsCertCollection");
+ CertCollectionXml::add(tlsCertCollectionVal, tlsCertCollectionXml);
+ }
+
+ const std::string tlsCertPathVal = persistenceProtocolDoc->getTlsCertPath();
+ if (! tlsCertPathVal.empty()) {
+ thisXml->addAttribute("tlsCertPath", tlsCertPathVal);
+ }
+
+ const SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal =
+ persistenceProtocolDoc->getTlsCertPathCollection();
+ if (! tlsCertPathCollectionVal.IsNull()) {
+ const SmartPtrCXmlElement tlsCertPathCollectionXml =
+ thisXml->createAndAddElement("tlsCertPathCollection");
+ CertPathCollectionXml::add(tlsCertPathCollectionVal, tlsCertPathCollectionXml);
}
}
CAF_CM_STATIC_FUNC_VALIDATE("PersistenceProtocolXml", "parse");
CAF_CM_VALIDATE_SMARTPTR(thisXml);
- const SmartPtrCXmlElement amqpBrokerCollectionXml =
- thisXml->findOptionalChild("amqpBrokerCollection");
- SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionVal;
- if (! amqpBrokerCollectionXml.IsNull()) {
- amqpBrokerCollectionVal = AmqpBrokerCollectionXml::parse(amqpBrokerCollectionXml);
+ const std::string protocolNameVal =
+ thisXml->findOptionalAttribute("protocolName");
+
+ const std::string uriVal =
+ thisXml->findOptionalAttribute("uri");
+
+ std::string tlsCertVal;
+ const SmartPtrCXmlElement tlsCertXml = thisXml->findOptionalChild("tlsCert");
+ if (tlsCertXml) {
+ tlsCertVal = tlsCertXml->getValue();
+ }
+
+ const std::string tlsProtocolVal =
+ thisXml->findOptionalAttribute("tlsProtocol");
+
+ const SmartPtrCXmlElement tlsCipherCollectionXml =
+ thisXml->findOptionalChild("tlsCipherCollection");
+ std::deque<std::string> tlsCipherCollectionVal;
+ if (! tlsCipherCollectionXml.IsNull()) {
+ const CXmlElement::SmartPtrCElementCollection valueCollectionXml =
+ tlsCipherCollectionXml->findOptionalChildren("cipher");
+ if (! valueCollectionXml.IsNull() && ! valueCollectionXml->empty()) {
+ for (TConstIterator<CXmlElement::CElementCollection> valueXmlIter(*valueCollectionXml);
+ valueXmlIter; valueXmlIter++) {
+ const SmartPtrCXmlElement valueXml = valueXmlIter->second;
+ const std::string valueDoc = valueXml->getValue();
+ tlsCipherCollectionVal.push_back(valueDoc);
+ }
+ }
+ }
+
+ const SmartPtrCXmlElement tlsCertCollectionXml =
+ thisXml->findOptionalChild("tlsCertCollection");
+ SmartPtrCCertCollectionDoc tlsCertCollectionVal;
+ if (! tlsCertCollectionXml.IsNull()) {
+ tlsCertCollectionVal = CertCollectionXml::parse(tlsCertCollectionXml);
+ }
+
+ const std::string tlsCertPathVal =
+ thisXml->findOptionalAttribute("tlsCertPath");
+
+ const SmartPtrCXmlElement tlsCertPathCollectionXml =
+ thisXml->findOptionalChild("tlsCertPathCollection");
+ SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal;
+ if (! tlsCertPathCollectionXml.IsNull()) {
+ tlsCertPathCollectionVal = CertPathCollectionXml::parse(tlsCertPathCollectionXml);
}
SmartPtrCPersistenceProtocolDoc persistenceProtocolDoc;
persistenceProtocolDoc.CreateInstance();
persistenceProtocolDoc->initialize(
- amqpBrokerCollectionVal);
+ protocolNameVal,
+ uriVal,
+ tlsCertVal,
+ tlsProtocolVal,
+ tlsCipherCollectionVal,
+ tlsCertCollectionVal,
+ tlsCertPathVal,
+ tlsCertPathCollectionVal);
return persistenceProtocolDoc;
}
RemoteSecurityCollectionXml::add(remoteSecurityCollectionVal, remoteSecurityCollectionXml);
}
- const SmartPtrCPersistenceProtocolDoc persistenceProtocolVal =
- persistenceDoc->getPersistenceProtocol();
- if (! persistenceProtocolVal.IsNull()) {
- const SmartPtrCXmlElement persistenceProtocolXml =
- thisXml->createAndAddElement("persistenceProtocol");
- PersistenceProtocolXml::add(persistenceProtocolVal, persistenceProtocolXml);
+ const SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollectionVal =
+ persistenceDoc->getPersistenceProtocolCollection();
+ if (! persistenceProtocolCollectionVal.IsNull()) {
+ const SmartPtrCXmlElement persistenceProtocolCollectionXml =
+ thisXml->createAndAddElement("persistenceProtocolCollection");
+ PersistenceProtocolCollectionXml::add(persistenceProtocolCollectionVal, persistenceProtocolCollectionXml);
}
const std::string versionVal = persistenceDoc->getVersion().empty() ? "1.0" : persistenceDoc->getVersion();
remoteSecurityCollectionVal = RemoteSecurityCollectionXml::parse(remoteSecurityCollectionXml);
}
- const SmartPtrCXmlElement persistenceProtocolXml =
- thisXml->findOptionalChild("persistenceProtocol");
- SmartPtrCPersistenceProtocolDoc persistenceProtocolVal;
- if (! persistenceProtocolXml.IsNull()) {
- persistenceProtocolVal = PersistenceProtocolXml::parse(persistenceProtocolXml);
+ const SmartPtrCXmlElement persistenceProtocolCollectionXml =
+ thisXml->findOptionalChild("persistenceProtocolCollection");
+ SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollectionVal;
+ if (! persistenceProtocolCollectionXml.IsNull()) {
+ persistenceProtocolCollectionVal = PersistenceProtocolCollectionXml::parse(persistenceProtocolCollectionXml);
}
const std::string versionVal =
persistenceDoc->initialize(
localSecurityVal,
remoteSecurityCollectionVal,
- persistenceProtocolVal,
+ persistenceProtocolCollectionVal,
versionVal);
return persistenceDoc;
#include "CertCollectionXml.h"
#include "CertPathCollectionXml.h"
-#include "AmqpBrokerXml.h"
-#include "AmqpBrokerCollectionXml.h"
+#include "PersistenceProtocolXml.h"
+#include "PersistenceProtocolCollectionXml.h"
#include "RemoteSecurityXml.h"
#include "RemoteSecurityCollectionXml.h"
#include "LocalSecurityXml.h"
-#include "PersistenceProtocolXml.h"
#include "PersistenceXml.h"
#include "PersistenceXmlRoots.h"
#include "stdafx.h"
#include "CValidate.h"
+#include "ValidationMacros.h"
using namespace Caf;
#ifndef VALIDATIONMACROS_H_
#define VALIDATIONMACROS_H_
+// String constants used in validation
+const char _sPRECOND_ISCONSTRUCTED[] = "Pre-condition failed because object was not constructed successfully";
+const char _sPRECOND_ISINITIALIZED[] = "Pre-condition failed because object was not initialized successfully";
+const char _sPRECOND_ISNOTINITIALIZED[] = "Pre-condition failed because object has already been initialized";
+const char _sPRECOND_ISNOTREADONLY[] = "Pre-condition failed because the object is read-only.";
+
+const char _sVALIDATE_STRINGEMPTY[] ="Invalid Argument because a string is empty:";
+const char _sVALIDATE_STRINGPTRNULL[] ="Invalid Argument because a string pointer is null:";
+const char _sVALIDATE_STRINGPTREMPTY[] ="Invalid Argument because a string pointer is empty:";
+const char _sVALIDATE_PTRARRAYNULL[] ="Invalid Argument because a pointer array is null:";
+const char _sVALIDATE_PTRARRAYEMPTY[] ="Invalid Argument because a pointer array is empty:";
+const char _sVALIDATE_STL[] ="Invalid Argument because an STL container is empty:";
+const char _sVALIDATE_STL_EMPTY[] ="Invalid Argument because an STL container is not empty:";
+const char _sVALIDATE_STL_ITERATOR[] ="Invalid Argument because an STL iterator is at the end of the containter:";
+const char _sVALIDATE_INTERFACE[] ="Invalid Argument because an interface is NULL:";
+const char _sVALIDATE_ZERO[] ="Invalid Argument because a number is not equal to zero:";
+const char _sVALIDATE_ISNOTZERO[] ="Invalid Argument because a number is equal to zero:";
+const char _sVALIDATE_POSITIVE[] ="Invalid Argument because a number is less-than or equal-to zero:";
+const char _sVALIDATE_NEGATIVE[] ="Invalid Argument because a number is greater-than or equal-to zero:";
+const char _sVALIDATE_NONNEGATIVE[] ="Invalid Argument because a number is less-than zero:";
+const char _sVALIDATE_NOTNULL[] ="Invalid Argument is NULL:";
+const char _sVALIDATE_NULL[] ="Invalid Argument must be NULL:";
+const char _sVALIDATE_BOOL[] ="Invalid Argument because a bool is false:";
+const char _sVALIDATE_GUID[] ="Invalid Argument because a GUID is NULL:";
+const char _sASSERT_FAILED[] ="Assertion failed:";
+
// Used internally by some of these macros.
#define CAF_CM_EXCEPTION_VALIDATE( _valmsg_, _variable_text_ ) \
CAF_CM_EXCEPTION_VA2(E_INVALIDARG, "%s %s", _valmsg_, _variable_text_)
#endif
#include <BaseDefines.h>
-#include "../Globals/CommonGlobalsLink.h"
+#include <CommonGlobals.h>
#include "CCafException.h"
#include "ClassMacros.h"
#include "ExceptionMacros.h"
-/*
- * Author: bwilliams
- * Created: 10/19/2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#include "stdafx.h"
-#include <CafContracts.h>
-
-namespace Caf {
- const char* _sConfigTmpDir = "tmp_dir";
- const char* _sConfigInputDir = "input_dir";
- const char* _sConfigOutputDir = "output_dir";
- const char* _sConfigSchemaCacheDir = "schema_cache_dir";
- const char* _sConfigProviderRegDir = "provider_reg_dir";
- const char* _sConfigInstallDir = "install_dir";
- const char* _sConfigInvokersDir = "invokers_dir";
- const char* _sConfigProvidersDir = "providers_dir";
- const char* _sConfigCommonPackagesDir = "common_packages_dir";
- const char* _sConfigWorkingDir = "working_dir";
- const char* _sConfigPrivateKeyFile = "private_key_file";
- const char* _sConfigCertFile = "cert_file";
-
- const char* _sProviderHostArea = "providerHost";
- const char* _sManagementAgentArea = "managementAgent";
-
- const char* _sSchemaSummaryFilename = "schemaSummary.xml";
- const char* _sProviderResponseFilename = "providerResponse.xml";
- const char* _sStdoutFilename = "_provider_stdout_";
- const char* _sStderrFilename = "_provider_stderr_";
-
- const char* _sPayloadRequestFilename = "payloadRequest.xml";
- const char* _sResponseFilename = "response.xml";
- const char* _sErrorResponseFilename = "errorResponse.xml";
- const char* _sProviderRequestFilename = "providerRequest.xml";
- const char* _sInfraErrFilename = "_infraError_";
-
- // FxProviderFx related string constants
- const char* _sObjIdProviderDriver = "com.vmware.commonagent.providerfx.providerdriver";
- const char* _sObjIdProviderCdifFormatter = "com.vmware.commonagent.providerfx.providercdifformatter";
-
- // MA related string constants
- const char* _sObjIdCollectSchemaExecutor = "com.vmware.commonagent.maintegration.collectschemaexecutor";
- const char* _sObjIdProviderCollectSchemaExecutor = "com.vmware.commonagent.maintegration.providercollectschemaexecutor";
- const char* _sObjIdProviderExecutor = "com.vmware.commonagent.maintegration.providerexecutor";
- const char* _sObjIdSinglePmeRequestSplitterInstance = "com.vmware.commonagent.maintegration.singlepmerequestsplitterinstance";
- const char* _sObjIdSinglePmeRequestSplitter = "com.vmware.commonagent.maintegration.singlepmerequestsplitter";
- const char* _sObjIdDiagToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformerinstance";
- const char* _sObjIdDiagToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformer";
- const char* _sObjIdInstallToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformerinstance";
- const char* _sObjIdInstallToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformer";
- const char* _sObjIdPersistenceNamespaceDb = "com.vmware.commonagent.maintegration.persistencenamespacedb";
- const char* _sObjIdConfigEnv = "com.vmware.commonagent.maintegration.configenv";
-
- const char* _sObjIdAttachmentRequestTransformerInstance = "com.vmware.commonagent.maintegration.attachmentrequesttransformerinstance";
- const char* _sObjIdAttachmentRequestTransformer = "com.vmware.commonagent.maintegration.attachmentrequesttransformer";
- const char* _sObjIdVersionTransformerInstance = "com.vmware.commonagent.maintegration.versiontransformerinstance";
- const char* _sObjIdVersionTransformer = "com.vmware.commonagent.maintegration.versiontransformer";
-
- // Framework related string constants
- const char* _sObjIdErrorToResponseTransformerInstance = "com.vmware.commonagent.cafintegration.errortoresponsetransformerinstance";
- const char* _sObjIdErrorToResponseTransformer = "com.vmware.commonagent.cafintegration.errortoresponsetransformer";
- const char* _sObjIdPayloadHeaderEnricherInstance = "com.vmware.commonagent.cafintegration.payloadheaderenricherinstance";
- const char* _sObjIdPayloadHeaderEnricher = "com.vmware.commonagent.cafintegration.payloadheaderenricher";
- const char* _sObjIdEnvelopeToPayloadTransformerInstance = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformerinstance";
- const char* _sObjIdEnvelopeToPayloadTransformer = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformer";
-}
-/*
- * Copyright (c) 2011 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#include "stdafx.h"
-#include "ClassMacroStrings.h"
-
-const char _sPRECOND_ISCONSTRUCTED[] = "Pre-condition failed because object was not constructed successfully";
-const char _sPRECOND_ISINITIALIZED[] = "Pre-condition failed because object was not initialized successfully";
-const char _sPRECOND_ISNOTINITIALIZED[] = "Pre-condition failed because object has already been initialized";
-const char _sPRECOND_ISNOTREADONLY[] = "Pre-condition failed because the object is read-only.";
-
-const char _sVALIDATE_STRINGEMPTY[] ="Invalid Argument because a string is empty:";
-const char _sVALIDATE_STRINGPTRNULL[] ="Invalid Argument because a string pointer is null:";
-const char _sVALIDATE_STRINGPTREMPTY[] ="Invalid Argument because a string pointer is empty:";
-const char _sVALIDATE_PTRARRAYNULL[] ="Invalid Argument because a pointer array is null:";
-const char _sVALIDATE_PTRARRAYEMPTY[] ="Invalid Argument because a pointer array is empty:";
-const char _sVALIDATE_STL[] ="Invalid Argument because an STL container is empty:";
-const char _sVALIDATE_STL_EMPTY[] ="Invalid Argument because an STL container is not empty:";
-const char _sVALIDATE_STL_ITERATOR[] ="Invalid Argument because an STL iterator is at the end of the containter:";
-const char _sVALIDATE_INTERFACE[] ="Invalid Argument because an interface is NULL:";
-const char _sVALIDATE_ZERO[] ="Invalid Argument because a number is not equal to zero:";
-const char _sVALIDATE_ISNOTZERO[] ="Invalid Argument because a number is equal to zero:";
-const char _sVALIDATE_POSITIVE[] ="Invalid Argument because a number is less-than or equal-to zero:";
-const char _sVALIDATE_NEGATIVE[] ="Invalid Argument because a number is greater-than or equal-to zero:";
-const char _sVALIDATE_NONNEGATIVE[] ="Invalid Argument because a number is less-than zero:";
-const char _sVALIDATE_NOTNULL[] ="Invalid Argument is NULL:";
-const char _sVALIDATE_NULL[] ="Invalid Argument must be NULL:";
-const char _sVALIDATE_BOOL[] ="Invalid Argument because a bool is false:";
-const char _sVALIDATE_GUID[] ="Invalid Argument because a GUID is NULL:";
-const char _sASSERT_FAILED[] ="Assertion failed:";
-/*
- * Copyright (c) 2011 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _Common_ClassMacroStrings_H
-#define _Common_ClassMacroStrings_H
-
-extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISCONSTRUCTED[];
-extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISINITIALIZED[];
-extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISNOTINITIALIZED[];
-extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISNOTREADONLY[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STRINGEMPTY[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STRINGPTRNULL[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STRINGPTREMPTY[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_PTRARRAYNULL[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_PTRARRAYEMPTY[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STL[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STL_EMPTY[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STL_ITERATOR[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_INTERFACE[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_ZERO[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_ISNOTZERO[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_POSITIVE[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NEGATIVE[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NONNEGATIVE[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NOTNULL[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NULL[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_BOOL[];
-extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_GUID[];
-extern COMMONGLOBALS_LINKAGE const char _sASSERT_FAILED[];
-
-#endif
-/*
- * Copyright (c) 2011 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#include "stdafx.h"
-#include "CommonDefines.h"
-
-namespace Caf {
- const char* _sAppConfigGlobalParamRootDir = "root_dir";
- const char* _sAppConfigGlobalParamDataDir = "data_dir";
- const char* _sAppConfigGlobalParamLogDir = "log_dir";
- const char* _sAppConfigGlobalParamLogConfigFile = "log_config_file";
- const char* _sAppConfigGlobalParamInputDir = "input_dir";
- const char* _sAppConfigGlobalParamOutputDir = "output_dir";
- const char* _sAppConfigGlobalParamDbDir = "db_dir";
- const char* _sAppConfigGlobalThreadStackSizeKb = "thread_stack_size_kb";
-
- const GUID CAFCOMMON_GUID_NULL = {0};
-
-#ifdef WIN32
- const char* CAFCOMMON_PATH_DELIM = "\\";
- const char CAFCOMMON_PATH_DELIM_CHAR = '\\';
-#else
- const char* CAFCOMMON_PATH_DELIM = "/";
- const char CAFCOMMON_PATH_DELIM_CHAR = '/';
-#endif
-}
-/*
- * Copyright (c) 2011 VMware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef _Common_CommonDefines_H
-#define _Common_CommonDefines_H
-
-namespace Caf {
- // AppConfig common parameter names
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamRootDir;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamDataDir;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamLogDir;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamLogConfigFile;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamInputDir;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamOutputDir;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamDbDir;
- extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalThreadStackSizeKb;
-
- extern COMMONGLOBALS_LINKAGE const GUID CAFCOMMON_GUID_NULL;
-
- extern COMMONGLOBALS_LINKAGE const char* CAFCOMMON_PATH_DELIM;
- extern COMMONGLOBALS_LINKAGE const char CAFCOMMON_PATH_DELIM_CHAR;
-}
-
-#endif
-/*
- * Copyright (c) 2011 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef Common_CommonGlobalsLink_h_
-#define Common_CommonGlobalsLink_h_
-
-#ifndef COMMONGLOBALS_LINKAGE
- #ifdef WIN32
- #ifdef FRAMEWORK_BUILD
- #define COMMONGLOBALS_LINKAGE __declspec(dllexport)
- #else
- #define COMMONGLOBALS_LINKAGE __declspec(dllimport)
- #endif
- #else
- #define COMMONGLOBALS_LINKAGE
- #endif
-#endif
-
-#include "CommonDefines.h"
-#include "ClassMacroStrings.h"
-
-#endif
-/*
- * Author: bwilliams
- * Created: 10/19/2010
- *
- * Copyright (c) 2010 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#include "stdafx.h"
-#include "../../include/Integration.h"
-
-namespace Caf {
- const char* _sObjIdIntegrationObjectFactory = "com.vmware.commonagent.integration.objectfactory";
- const char* _sObjIdErrorChannel = "com.vmware.commonagent.integration.channels.errorchannel";
- const char* _sObjIdNullChannel = "com.vmware.commonagent.integration.channels.nullchannel";
- const char* _sObjIdHeaderExpressionInvoker = "com.vmware.commonagent.integration.headerexpressioninvoker";
-}
-/*
- * Copyright (c) 2011 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef stdafx_h_
-#define stdafx_h_
-
-#include <BaseDefines.h>
-#include "CommonGlobalsLink.h"
-
-#endif // #ifndef stdafx_h_
const SmartPtrCProtocolCollectionDoc& protocolCollection) {
CAF_CM_STATIC_FUNC_LOG_VALIDATE("CCafMessageCreator", "createPayloadEnvelope");
CAF_CM_VALIDATE_STRING(payloadStr);
- CAF_CM_VALIDATE_GUID(clientId);
+ // clientId is optional
CAF_CM_VALIDATE_GUID(requestId);
- CAF_CM_VALIDATE_STRING(pmeId);
+ // pmeId is optional
CAF_CM_VALIDATE_STRING(payloadType);
CAF_CM_VALIDATE_STRING(payloadVersion);
#endif
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
#include <DocXml.h>
#include <DocUtils.h>
#include <Integration.h>
#endif
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
+#include <Integration.h>
#include "FileHeaders.h"
#include "MessageHeaders.h"
-/*
- * Author: mdonahue
- * Created: Jan 20, 2011
- *
- * Copyright (c) 2011 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#include "stdafx.h"
-#include "CAutoMutexLockUnlockRaw.h"
-
-using namespace Caf;
-
-CAutoMutexLockUnlockRaw::CAutoMutexLockUnlockRaw(GMutex* mutex) :
- CAF_CM_INIT("CAutoMutexLockUnlockRaw") {
- _mutex = mutex;
- _recMutex = NULL;
-
- if (_mutex) {
- ::g_mutex_lock(_mutex);
- }
-}
-
-CAutoMutexLockUnlockRaw::CAutoMutexLockUnlockRaw(GRecMutex* recMutex) :
- CAF_CM_INIT("CAutoMutexLockUnlockRaw") {
- _mutex = NULL;
- _recMutex = recMutex;
-
- if (_recMutex) {
- ::g_rec_mutex_lock(_recMutex);
- }
-}
-
-CAutoMutexLockUnlockRaw::~CAutoMutexLockUnlockRaw() {
- if (_mutex) {
- ::g_mutex_unlock(_mutex);
- }
- if (_recMutex) {
- ::g_rec_mutex_unlock(_recMutex);
- }
-}
-/*
- * Author: mdonahue
- * Created: Jan 20, 2011
- *
- * Copyright (c) 2011 Vmware, Inc. All rights reserved.
- * -- VMware Confidential
- */
-
-#ifndef CAUTOMUTEXLOCKUNLOCKRAW_H_
-#define CAUTOMUTEXLOCKUNLOCKRAW_H_
-
-namespace Caf {
-
-class SUBSYSTEMBASE_LINKAGE CAutoMutexLockUnlockRaw {
-public:
- CAutoMutexLockUnlockRaw(GMutex* mutex);
-
- CAutoMutexLockUnlockRaw(GRecMutex* recMutex);
-
- ~CAutoMutexLockUnlockRaw();
-
-private:
- GMutex* _mutex;
- GRecMutex* _recMutex;
-
-private:
- CAF_CM_CREATE;
- CAF_CM_DECLARE_NOCOPY(CAutoMutexLockUnlockRaw);
-};
-
-}
-
-#endif /* CAUTOMUTEXLOCKUNLOCKRAW_H_ */
#include "SubSystemBaseInc.h"
-#include "CAutoMutexLockUnlockRaw.h"
#include "CEcmDllManager.h"
#include "CEcmSubSystem.h"
#include "CEcmSubSystemModule.h"
#endif
#include <CommonDefines.h>
+#include <CommonGlobals.h>
#include "../../Common/CAutoMutexLockUnlock.h"
-#include "../../Globals/CommonGlobalsLink.h"
#include "../../Exception/ExceptionLink.h"
#endif /* STDAFX_H_ */
#endif
#include <BaseDefines.h>
-#include "../../Globals/CommonGlobalsLink.h"
+#include <CommonGlobals.h>
#include "../../Exception/ExceptionLink.h"
#include "../../Logging/LoggingLink.h"
#include "../../Collections/Iterators/IteratorsInc.h"
#define BASEPLATFORM_LINKAGE
#endif
-#include "../../include/BaseDefines.h"
+#include <BaseDefines.h>
#include "BasePlatformInc.h"
#endif // #ifndef stdafx_h_
using namespace Caf;
+namespace Caf {
+ const char* _sObjIdErrorToResponseTransformerInstance = "com.vmware.commonagent.cafintegration.errortoresponsetransformerinstance";
+ const char* _sObjIdErrorToResponseTransformer = "com.vmware.commonagent.cafintegration.errortoresponsetransformer";
+ const char* _sObjIdPayloadHeaderEnricherInstance = "com.vmware.commonagent.cafintegration.payloadheaderenricherinstance";
+ const char* _sObjIdPayloadHeaderEnricher = "com.vmware.commonagent.cafintegration.payloadheaderenricher";
+ const char* _sObjIdEnvelopeToPayloadTransformerInstance = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformerinstance";
+ const char* _sObjIdEnvelopeToPayloadTransformer = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformer";
+}
+
CEcmSubSystemModule _Module;
CAF_BEGIN_OBJECT_MAP(ObjectMap)
//{{CAF_SUBSYSTEM}}
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
-#include <CafContracts.h>
#include <Integration.h>
#include <DocXml.h>
#include <DocUtils.h>
-#include <FxContracts.h>
+namespace Caf {
+ extern const char* _sObjIdErrorToResponseTransformerInstance;
+ extern const char* _sObjIdErrorToResponseTransformer;
+ extern const char* _sObjIdPayloadHeaderEnricherInstance;
+ extern const char* _sObjIdPayloadHeaderEnricher;
+ extern const char* _sObjIdEnvelopeToPayloadTransformerInstance;
+ extern const char* _sObjIdEnvelopeToPayloadTransformer;
+}
#include "CErrorToResponseTransformerInstance.h"
#include "CErrorToResponseTransformer.h"
using namespace Caf;
+namespace Caf {
+ const char* _sObjIdIntegrationObjectFactory = "com.vmware.commonagent.integration.objectfactory";
+ const char* _sObjIdErrorChannel = "com.vmware.commonagent.integration.channels.errorchannel";
+ const char* _sObjIdNullChannel = "com.vmware.commonagent.integration.channels.nullchannel";
+ const char* _sObjIdHeaderExpressionInvoker = "com.vmware.commonagent.integration.headerexpressioninvoker";
+}
+
CEcmSubSystemModule _Module;
CAF_BEGIN_OBJECT_MAP(ObjectMap)
//{{CAF_SUBSYSTEM}}
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
#include <Integration.h>
+namespace Caf {
+ // Integration Contracts
+ extern const char* _sObjIdIntegrationObjectFactory;
+ extern const char* _sObjIdErrorChannel;
+ extern const char* _sObjIdNullChannel;
+ extern const char* _sObjIdHeaderExpressionInvoker;
+}
+
namespace Caf {
// template function to create integration objects
//{{CAF_SUBSYSTEM}}
#include <CommonDefines.h>
-#include <CafContracts.h>
#include <DocXml.h>
#include <DocUtils.h>
#include <Integration.h>
extern const char* _sInstallProviderSpecFilename;
}
-#include "../../Install_Provider/src/IPackage.h"
+#include "IPackage.h"
-#include "../../Install_Provider/src/CInstallUtils.h"
-#include "../../Install_Provider/src/CPathBuilder.h"
+#include "CInstallUtils.h"
+#include "CPathBuilder.h"
-#include "../../Install_Provider/src/CPackageExecutor.h"
-#include "../../Install_Provider/src/CPackageInstaller.h"
-#include "../../Install_Provider/src/CProviderInstaller.h"
+#include "CPackageExecutor.h"
+#include "CPackageInstaller.h"
+#include "CProviderInstaller.h"
-#include "../../Install_Provider/src/CInstallProvider.h"
+#include "CInstallProvider.h"
#endif // #ifndef stdafx_h_
//{{CAF_SUBSYSTEM}}
#include <CommonDefines.h>
-#include <CafContracts.h>
#include <DocXml.h>
#include <DocUtils.h>
#include <ProviderFxLink.h>
-#include "../../RemoteCommand_Provider/src/CRemoteCommandProvider.h"
+#include "CRemoteCommandProvider.h"
#endif // #ifndef stdafx_h_
#define stdafx_h_
#include <CommonDefines.h>
-#include <CafContracts.h>
-#include <IntegrationContracts.h>
#include <Integration.h>
#ifdef WIN32
CConfigEnv::CConfigEnv() :
_isInitialized(false),
CAF_CM_INIT_LOG("CConfigEnv") {
+ CAF_CM_INIT_THREADSAFE;
}
CConfigEnv::~CConfigEnv() {
}
-void CConfigEnv::initialize() {
- CAF_CM_FUNCNAME_VALIDATE("initialize");
- CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized);
+void CConfigEnv::initializeBean(
+ const IBean::Cargs& ctorArgs,
+ const IBean::Cprops& properties) {
+}
+
+void CConfigEnv::terminateBean() {
+}
- _persistenceDir = AppConfigUtils::getRequiredString("persistence_dir");
- _scriptsDir = AppConfigUtils::getRequiredString("scripts_dir");
- _outputDir = AppConfigUtils::getRequiredString(_sAppConfigGlobalParamOutputDir);
- _configDir = AppConfigUtils::getRequiredString("config_dir");
- _vcidPath = "/etc/vmware-tools/GuestProxyData/VmVcUuid/vm.vc.uuid";
+void CConfigEnv::initialize(
+ const SmartPtrIPersistence& persistenceRemove) {
+ CAF_CM_LOCK_UNLOCK;
+
+ if (_isInitialized) {
+ if (! persistenceRemove.IsNull() && _persistenceRemove.IsNull()) {
+ _persistenceRemove = persistenceRemove;
+ }
+ } else {
+ _persistenceDir = AppConfigUtils::getRequiredString("persistence_dir");
+ _scriptsDir = AppConfigUtils::getRequiredString("scripts_dir");
+ _outputDir = AppConfigUtils::getRequiredString(_sAppConfigGlobalParamOutputDir);
+ _configDir = AppConfigUtils::getRequiredString("config_dir");
+ _persistenceAppconfigPath = FileSystemUtils::buildPath(_configDir, "persistence-appconfig");
+ std::string guestProxyDir;
#ifdef _WIN32
- _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener.bat");
- _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener.bat");
- _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma.bat");
- _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma.bat");
+ _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener.bat");
+ _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener.bat");
+ _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma.bat");
+ _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma.bat");
+
+ std::string programData;
+ CEnvironmentUtils::readEnvironmentVar("ProgramData", programData);
+ guestProxyDir = FileSystemUtils::buildPath(programData, "VMware", "VMware Tools", "GuestProxyData");
#else
- _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener");
- _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener");
- _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma");
- _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma");
+ _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener");
+ _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener");
+ _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma");
+ _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma");
+
+ guestProxyDir = "/etc/vmware-tools/GuestProxyData";
#endif
- _isInitialized = true;
+ _vcidPath = FileSystemUtils::buildPath(guestProxyDir, "VmVcUuid", "vm.vc.uuid");
+ _cacertPath = FileSystemUtils::buildPath(guestProxyDir, "server", "cert.pem");
+
+ _persistence = CPersistenceUtils::loadPersistence(_persistenceDir);
+ _persistenceUpdated = _persistence;
+ _persistenceRemove = persistenceRemove;
+
+ _isInitialized = true;
+ }
}
SmartPtrCPersistenceDoc CConfigEnv::getUpdated(
const int32 timeout) {
CAF_CM_FUNCNAME_VALIDATE("getUpdated");
+ CAF_CM_LOCK_UNLOCK;
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- if (_persistence.IsNull()) {
- _persistence = CPersistenceUtils::loadPersistence(_persistenceDir);
+ const SmartPtrCPersistenceDoc persistenceTmp =
+ CConfigEnvMerge::mergePersistence(_persistence, _cacertPath, _vcidPath);
+ if (! persistenceTmp.IsNull() || ! FileSystemUtils::doesFileExist(_persistenceAppconfigPath)) {
+ if (! persistenceTmp.IsNull()) {
+ _persistence = persistenceTmp;
+ }
+
+ savePersistenceAppconfig(_persistence, _configDir);
+ restartRunningListener();
}
- return _persistence;
+ SmartPtrCPersistenceDoc rc;
+ if (! _persistenceUpdated.IsNull()) {
+ CAF_CM_LOG_DEBUG_VA1("Returning persistence info - %s", _persistenceDir.c_str());
+ rc = _persistenceUpdated;
+ _persistenceUpdated = SmartPtrCPersistenceDoc();
+ }
+
+ return rc;
}
void CConfigEnv::update(
const SmartPtrCPersistenceDoc& persistence) {
CAF_CM_FUNCNAME_VALIDATE("update");
+ CAF_CM_LOCK_UNLOCK;
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- if (_persistence.IsNull()) {
- _persistence = CPersistenceUtils::loadPersistence(_persistenceDir);
- }
+ const SmartPtrCPersistenceDoc persistenceTmp =
+ CPersistenceMerge::mergePersistence(_persistence, persistence);
+ if (! persistenceTmp.IsNull()) {
+ CAF_CM_LOG_DEBUG_VA1("Updating persistence info - %s", _persistenceDir.c_str());
- const SmartPtrCPersistenceDoc persistenceTmp = merge(_persistence, persistence);
- if (_persistence != persistenceTmp) {
_persistence = persistenceTmp;
+ _persistenceUpdated = createPersistenceUpdated(_persistence);
CPersistenceUtils::savePersistence(_persistence, _persistenceDir);
- savePersistenceAppconfig(_persistence, _configDir);
- //executeScript(_stopListenerScript, _outputDir);
- //executeScript(_stopMaScript, _outputDir);
- //executeScript(_startListenerScript, _outputDir);
- //executeScript(_startMaScript, _outputDir);
- }
-}
+ restartRunningListener();
-void CConfigEnv::remove(
- const SmartPtrCPersistenceDoc& persistence) {
- CAF_CM_FUNCNAME("remove");
- CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- CAF_CM_VALIDATE_SMARTPTR(persistence);
-
- CAF_CM_EXCEPTIONEX_VA0(UnsupportedOperationException, E_NOTIMPL, "Not implemented");
-}
-
-SmartPtrCPersistenceDoc CConfigEnv::merge(
- const SmartPtrCPersistenceDoc& persistenceLoaded,
- const SmartPtrCPersistenceDoc& persistenceIn) const {
- // persistenceIn is non-null only when it has a change.
- bool isChanged = false;
- SmartPtrCPersistenceDoc persistenceTmp = persistenceLoaded;
- if (! persistenceIn.IsNull()) {
- persistenceTmp = persistenceIn;
- isChanged = true;
- }
-
- const SmartPtrCLocalSecurityDoc localSecurity =
- calcLocalSecurity(persistenceTmp->getLocalSecurity());
-
- //TODO: Do something similar to the above for tunnel vs. non-tunnel:
- // * Tunnel - Use "/etc/vmware-tools/GuestProxyData/server/cert.pem" for the cacert
- // * Tunnel - Calculate the URL with a protocol of "tunnel"
- // * Non-tunnel - Calculate the URL with a protocol of "amqp"
-
- SmartPtrCPersistenceDoc rc = persistenceLoaded;
- if (isChanged || ! localSecurity.IsNull()) {
- const SmartPtrCLocalSecurityDoc localSecurityTmp =
- localSecurity.IsNull() ? persistenceTmp->getLocalSecurity() : localSecurity;
-
- rc.CreateInstance();
- rc->initialize(localSecurityTmp, persistenceTmp->getRemoteSecurityCollection(),
- persistenceTmp->getPersistenceProtocol());
- }
-
- return rc;
-}
-
-SmartPtrCLocalSecurityDoc CConfigEnv::calcLocalSecurity(
- const SmartPtrCLocalSecurityDoc& localSecurity) const {
- CAF_CM_FUNCNAME_VALIDATE("calcLocalSecurity");
- CAF_CM_VALIDATE_SMARTPTR(localSecurity);
-
- const std::string localIdTmp =
- localSecurity.IsNull() ? std::string() : localSecurity->getLocalId();
- const std::string localId = calcLocalId(localIdTmp);
-
- SmartPtrCLocalSecurityDoc rc;
- if (! localId.empty()) {
- const std::string privateKey =
- localSecurity.IsNull() ? std::string() : localSecurity->getPrivateKey();
- const std::string cert =
- localSecurity.IsNull() ? std::string() : localSecurity->getCert();
- rc.CreateInstance();
- rc->initialize(localId, privateKey, cert);
- }
-
- return rc;
-}
-
-std::string CConfigEnv::calcLocalId(
- const std::string& localIdCurrent) const {
- std::string rc;
- if (FileSystemUtils::doesFileExist(_vcidPath)) {
- const std::string vcid = FileSystemUtils::loadTextFile(_vcidPath);
- if (vcid.compare(localIdCurrent) != 0) {
- rc = vcid;
- }
+ removePrivateKey(_persistence, _persistenceRemove);
} else {
- if (localIdCurrent.empty()) {
- rc = CStringUtils::createRandomUuid();
- }
+ CAF_CM_LOG_DEBUG_VA0("Persistence info did not change");
}
-
- return rc;
}
void CConfigEnv::savePersistenceAppconfig(
#else
const std::string newLine = "\n";
#endif
+ CAF_CM_LOG_DEBUG_VA1("Saving persistence-appconfig - %s", configDir.c_str());
- const std::string appconfigPath =
- FileSystemUtils::buildPath(configDir, "persistence-appconfig");
- const Cdeqstr appconfigColl =
- FileSystemUtils::loadTextFileIntoColl(appconfigPath);
+ const SmartPtrCPersistenceProtocolDoc persistenceProtocol =
+ CPersistenceUtils::loadPersistenceProtocol(
+ persistence->getPersistenceProtocolCollection());
+
+ UriUtils::SUriRecord uriRecord;
+ UriUtils::parseUriString(persistenceProtocol->getUri(), uriRecord);
+ CAF_CM_VALIDATE_STRING(uriRecord.path);
+
+ const std::string listenerContext = calcListenerContext(uriRecord.protocol, configDir);
+
+ CAF_CM_LOG_DEBUG_VA2("Calculated listener context - uri: %s, protocol: %s",
+ persistenceProtocol->getUri().c_str(), uriRecord.protocol.c_str());
std::string appconfigContents;
- for (TConstIterator<Cdeqstr> iter(appconfigColl); iter; iter++) {
- const std::string appconfigLine = *iter;
- if (appconfigLine.find("reactive_request_amqp_queue_id=") != std::string::npos) {
- const SmartPtrCAmqpBrokerDoc amqpBroker =
- CPersistenceUtils::loadAmqpBroker(persistence->getPersistenceProtocol());
- appconfigContents +=
- "reactive_request_amqp_queue_id=" + amqpBroker->getAmqpBrokerId() + newLine;
- } else {
- appconfigContents += appconfigLine + newLine;
- }
- }
+ appconfigContents = "[globals]" + newLine;
+ appconfigContents += "reactive_request_amqp_queue_id=" + uriRecord.path + newLine;
+ appconfigContents += "comm_amqp_listener_context=" + listenerContext + newLine;
- FileSystemUtils::saveTextFile(appconfigPath, appconfigContents);
+ FileSystemUtils::saveTextFile(_persistenceAppconfigPath, appconfigContents);
}
void CConfigEnv::executeScript(
ProcessUtils::runSyncToFiles(argv, stdoutPath, stderrPath);
}
+
+void CConfigEnv::removePrivateKey(
+ const SmartPtrCPersistenceDoc& persistence,
+ const SmartPtrIPersistence& persistenceRemove) const {
+ CAF_CM_FUNCNAME_VALIDATE("removePrivateKey");
+ CAF_CM_VALIDATE_SMARTPTR(persistence);
+
+ if (! persistenceRemove.IsNull()
+ && ! persistence->getLocalSecurity()->getPrivateKey().empty()) {
+ CAF_CM_LOG_DEBUG_VA0("Removing private key");
+
+ SmartPtrCLocalSecurityDoc localSecurity;
+ localSecurity.CreateInstance();
+ localSecurity->initialize(std::string(), "removePrivateKey");
+
+ SmartPtrCPersistenceDoc persistenceRemoveTmp;
+ persistenceRemoveTmp.CreateInstance();
+ persistenceRemoveTmp->initialize(localSecurity);
+
+ persistenceRemove->remove(persistenceRemoveTmp);
+ }
+}
+
+SmartPtrCPersistenceDoc CConfigEnv::createPersistenceUpdated(
+ const SmartPtrCPersistenceDoc& persistence) const {
+ CAF_CM_FUNCNAME_VALIDATE("createPersistenceUpdated");
+ CAF_CM_VALIDATE_SMARTPTR(persistence);
+
+ SmartPtrCLocalSecurityDoc localSecurity;
+ if (! persistence->getLocalSecurity().IsNull()
+ && ! persistence->getLocalSecurity()->getLocalId().empty()) {
+ localSecurity.CreateInstance();
+ localSecurity->initialize(persistence->getLocalSecurity()->getLocalId());
+ }
+
+ SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection;
+ if (! persistence->getPersistenceProtocolCollection().IsNull()
+ && ! persistence->getPersistenceProtocolCollection()->getPersistenceProtocol().empty()) {
+ const SmartPtrCPersistenceProtocolDoc persistenceProtocolTmp =
+ CPersistenceUtils::loadPersistenceProtocol(persistence->getPersistenceProtocolCollection());
+ if (! persistenceProtocolTmp->getUri().empty()) {
+ SmartPtrCPersistenceProtocolDoc persistenceProtocol;
+ persistenceProtocol.CreateInstance();
+ persistenceProtocol->initialize(
+ persistenceProtocolTmp->getProtocolName(),
+ persistenceProtocolTmp->getUri());
+
+ std::deque<SmartPtrCPersistenceProtocolDoc> persistenceProtocolInner;
+ persistenceProtocolInner.push_back(persistenceProtocol);
+
+ persistenceProtocolCollection.CreateInstance();
+ persistenceProtocolCollection->initialize(persistenceProtocolInner);
+ }
+ }
+
+ SmartPtrCPersistenceDoc rc;
+ if (! localSecurity.IsNull() || ! persistenceProtocolCollection.IsNull()) {
+ rc.CreateInstance();
+ rc->initialize(localSecurity, SmartPtrCRemoteSecurityCollectionDoc(),
+ persistenceProtocolCollection, persistence->getVersion());
+ }
+
+ return rc;
+}
+
+std::string CConfigEnv::calcListenerContext(
+ const std::string& uriSchema,
+ const std::string& configDir) const {
+ CAF_CM_FUNCNAME("calcListenerContext");
+ CAF_CM_VALIDATE_STRING(uriSchema);
+ CAF_CM_VALIDATE_STRING(configDir);
+
+ std::string rc;
+ if (uriSchema.compare("amqp") == 0) {
+ rc = FileSystemUtils::buildPath(configDir, "CommAmqpListener-context-amqp.xml");
+ } else if (uriSchema.compare("tunnel") == 0) {
+ rc = FileSystemUtils::buildPath(configDir, "CommAmqpListener-context-tunnel.xml");
+ } else {
+ CAF_CM_EXCEPTION_VA1(E_INVALIDARG, "Unknown URI schema: %s", uriSchema.c_str());
+ }
+
+ return FileSystemUtils::normalizePathWithForward(rc);
+}
+
+void CConfigEnv::restartRunningListener() const {
+ // TODO: It's difficult to know when we should start the listener, because
+ // it depends upon whether its been fully configured or not, and we don't
+ // know when that happens within this code. All we know is that we've
+ // read whatever info is on the file system and in the NSDDB, but that's it.
+ // Perhaps the best we can do is to re-start the listener only if it's already
+ // running because at least then we know that it's been configured.
+ //executeScript(_stopListenerScript, _outputDir);
+ //executeScript(_startListenerScript, _outputDir);
+}
/// TODO - describe class
class CConfigEnv :
public TCafSubSystemObjectRoot<CConfigEnv>,
+ public IBean,
public IConfigEnv {
public:
CConfigEnv();
CAF_DECLARE_OBJECT_IDENTIFIER(_sObjIdConfigEnv)
CAF_BEGIN_INTERFACE_MAP(CConfigEnv)
+ CAF_INTERFACE_ENTRY(IBean)
CAF_INTERFACE_ENTRY(IConfigEnv)
CAF_END_INTERFACE_MAP()
+public: // IBean
+ virtual void initializeBean(
+ const IBean::Cargs& ctorArgs,
+ const IBean::Cprops& properties);
+
+ virtual void terminateBean();
+
public: // IConfigEnv
- void initialize();
+ void initialize(
+ const SmartPtrIPersistence& persistenceRemove);
SmartPtrCPersistenceDoc getUpdated(
const int32 timeout);
void update(
const SmartPtrCPersistenceDoc& persistence);
- void remove(
- const SmartPtrCPersistenceDoc& persistence);
-
private:
- SmartPtrCPersistenceDoc merge(
- const SmartPtrCPersistenceDoc& persistenceLoaded,
- const SmartPtrCPersistenceDoc& persistenceIn) const;
-
- SmartPtrCLocalSecurityDoc calcLocalSecurity(
- const SmartPtrCLocalSecurityDoc& localSecurity) const;
-
- std::string calcLocalId(
- const std::string& localIdCurrent) const;
-
void savePersistenceAppconfig(
const SmartPtrCPersistenceDoc& persistence,
const std::string& configDir) const;
const std::string& scriptPath,
const std::string& scriptResultsDir) const;
- Cdeqstr loadTextFileIntoColl(
- const std::string& filePath) const;
+ void removePrivateKey(
+ const SmartPtrCPersistenceDoc& persistence,
+ const SmartPtrIPersistence& persistenceRemove) const;
+
+ SmartPtrCPersistenceDoc createPersistenceUpdated(
+ const SmartPtrCPersistenceDoc& persistence) const;
+
+ std::string calcListenerContext(
+ const std::string& uriSchema,
+ const std::string& configDir) const;
+
+ void restartRunningListener() const;
private:
bool _isInitialized;
std::string _vcidPath;
+ std::string _cacertPath;
std::string _persistenceDir;
std::string _scriptsDir;
std::string _outputDir;
std::string _configDir;
+ std::string _persistenceAppconfigPath;
std::string _startListenerScript;
std::string _stopListenerScript;
std::string _stopMaScript;
SmartPtrCPersistenceDoc _persistence;
+ SmartPtrCPersistenceDoc _persistenceUpdated;
+ SmartPtrIPersistence _persistenceRemove;
private:
CAF_CM_CREATE;
CAF_CM_CREATE_LOG;
+ CAF_CM_CREATE_THREADSAFE;
CAF_CM_DECLARE_NOCOPY(CConfigEnv);
};
const std::string outputChannelStr =
_configSection->findRequiredAttribute("channel");
+ const SmartPtrIConfigEnv configEnv = createConfigEnv(appContext);
+
SmartPtrCConfigEnvReadingMessageSource configEnvReadingMessageSource;
configEnvReadingMessageSource.CreateInstance();
- configEnvReadingMessageSource->initialize(_configSection);
+ configEnvReadingMessageSource->initialize(_configSection, configEnv);
const SmartPtrIMessageChannel outputMessageChannel =
channelResolver->resolveChannelName(outputChannelStr);
return true;
}
+
+SmartPtrIConfigEnv CConfigEnvInboundChannelAdapterInstance::createConfigEnv(
+ const SmartPtrIAppContext& appContext) const {
+ CAF_CM_FUNCNAME_VALIDATE("createConfigEnv");
+ CAF_CM_VALIDATE_INTERFACE(appContext);
+
+ SmartPtrIConfigEnv rc;
+ const std::string refStr = _configSection->findRequiredAttribute("ref");
+ CAF_CM_LOG_DEBUG_VA1("Creating the configenv impl - %s", refStr.c_str());
+ const SmartPtrIBean bean = appContext->getBean(refStr);
+ rc.QueryInterface(bean, false);
+ CAF_CM_VALIDATE_INTERFACE(rc);
+ rc->initialize();
+
+ return rc;
+}
public: // IMessageProducer
bool isMessageProducer() const;
+private:
+ SmartPtrIConfigEnv createConfigEnv(
+ const SmartPtrIAppContext& appContext) const;
+
private:
bool _isInitialized;
std::string _id;
CConfigEnvMessageHandler::CConfigEnvMessageHandler() :
_isInitialized(false),
- _deleteSourceEntries(false),
CAF_CM_INIT_LOG("CConfigEnvMessageHandler") {
}
}
void CConfigEnvMessageHandler::initialize(
- const SmartPtrIDocument& configSection) {
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIConfigEnv& configEnv) {
CAF_CM_FUNCNAME_VALIDATE("initialize");
CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized);
CAF_CM_VALIDATE_INTERFACE(configSection);
+ CAF_CM_VALIDATE_SMARTPTR(configEnv);
_id = configSection->findRequiredAttribute("id");
- const std::string implClass = configSection->findRequiredAttribute("impl-class");
- _configEnv.CreateInstance(implClass.c_str());
- _configEnv->initialize();
-
- const std::string deleteSourceEntriesStr = configSection->findOptionalAttribute(
- "delete-source-entries");
- _deleteSourceEntries = (deleteSourceEntriesStr.empty() || deleteSourceEntriesStr.compare("false") == 0) ? false : true;
+ _configEnv = configEnv;
_isInitialized = true;
}
_savedMessage = message;
+ SmartPtrCPersistenceDoc persistence;
const std::string payloadStr = message->getPayloadStr();
- const SmartPtrCPersistenceDoc persistence =
- XmlRoots::parsePersistenceFromString(payloadStr);
- _configEnv->update(persistence);
-
- if (_deleteSourceEntries) {
- ;//TODO: Delete entries like the localSecurity private key.
+ if (! payloadStr.empty()) {
+ persistence = XmlRoots::parsePersistenceFromString(payloadStr);
}
+
+ _configEnv->update(persistence);
}
SmartPtrIIntMessage CConfigEnvMessageHandler::getSavedMessage() const {
public:
void initialize(
- const SmartPtrIDocument& configSection);
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIConfigEnv& configEnv);
public: // IMessageHandler
void handleMessage(
private:
bool _isInitialized;
std::string _id;
- bool _deleteSourceEntries;
SmartPtrIConfigEnv _configEnv;
SmartPtrIIntMessage _savedMessage;
SmartPtrIIntegrationObject inputChannelObj;
inputChannelObj.QueryInterface(inputChannel);
+ const SmartPtrIConfigEnv configEnv = createConfigEnv(appContext);
+
SmartPtrCConfigEnvMessageHandler configEnvMessageHandler;
configEnvMessageHandler.CreateInstance();
- configEnvMessageHandler->initialize(_configSection);
+ configEnvMessageHandler->initialize(_configSection, configEnv);
SmartPtrIMessageHandler messageHandler;
messageHandler.QueryInterface(configEnvMessageHandler);
return _isRunning;
}
+
+SmartPtrIConfigEnv CConfigEnvOutboundChannelAdapterInstance::createConfigEnv(
+ const SmartPtrIAppContext& appContext) const {
+ CAF_CM_FUNCNAME_VALIDATE("createConfigEnv");
+ CAF_CM_VALIDATE_INTERFACE(appContext);
+
+ const SmartPtrIPersistence persistenceRemove = createOptPersistence(appContext);
+
+ SmartPtrIConfigEnv rc;
+ const std::string refStr = _configSection->findRequiredAttribute("ref");
+ CAF_CM_LOG_DEBUG_VA1("Creating the configenv impl - %s", refStr.c_str());
+ const SmartPtrIBean bean = appContext->getBean(refStr);
+ rc.QueryInterface(bean, false);
+ CAF_CM_VALIDATE_INTERFACE(rc);
+ rc->initialize(persistenceRemove);
+
+ return rc;
+}
+
+SmartPtrIPersistence CConfigEnvOutboundChannelAdapterInstance::createOptPersistence(
+ const SmartPtrIAppContext& appContext) const {
+ CAF_CM_FUNCNAME("createOptPersistence");
+ CAF_CM_VALIDATE_INTERFACE(appContext);
+
+ SmartPtrIPersistence rc;
+ const std::string removeRefStr = _configSection->findOptionalAttribute("remove-ref");
+ if (! removeRefStr.empty()) {
+ CAF_CM_LOG_DEBUG_VA1("Creating the persistence impl - %s", removeRefStr.c_str());
+ const SmartPtrIBean bean = appContext->getBean(removeRefStr);
+ rc.QueryInterface(bean, false);
+ CAF_CM_VALIDATE_INTERFACE(rc);
+
+ try {
+ rc->initialize();
+ }
+ CAF_CM_CATCH_CAF
+ CAF_CM_CATCH_DEFAULT
+ CAF_CM_LOG_WARN_CAFEXCEPTION;
+
+ if (CAF_CM_ISEXCEPTION) {
+ rc = SmartPtrIPersistence();
+ }
+ }
+
+ return rc;
+}
bool isRunning() const;
+private:
+ SmartPtrIConfigEnv createConfigEnv(
+ const SmartPtrIAppContext& appContext) const;
+
+ SmartPtrIPersistence createOptPersistence(
+ const SmartPtrIAppContext& appContext) const;
+
private:
bool _isInitialized;
bool _isRunning;
}
void CConfigEnvReadingMessageSource::initialize(
- const SmartPtrIDocument& configSection) {
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIConfigEnv& configEnv) {
CAF_CM_FUNCNAME_VALIDATE("initialize");
CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized);
CAF_CM_VALIDATE_INTERFACE(configSection);
+ CAF_CM_VALIDATE_INTERFACE(configEnv);
+ CAF_CM_VALIDATE_INTERFACE(configSection);
_id = configSection->findRequiredAttribute("id");
- const std::string implClass = configSection->findRequiredAttribute("impl-class");
const SmartPtrIDocument pollerDoc = configSection->findOptionalChild("poller");
- _configEnv.CreateInstance(implClass.c_str());
- _configEnv->initialize();
+ _configEnv = configEnv;
setPollerMetadata(pollerDoc);
_refreshSec = 0;
public:
void initialize(
- const SmartPtrIDocument& configSection);
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIConfigEnv& configEnv);
protected: // CAbstractPollableChannel
bool doSend(
CAF_CM_VALIDATE_INTERFACE(appContext);
CAF_CM_VALIDATE_INTERFACE(channelResolver);
- const std::string outputChannelStr =
- _configSection->findRequiredAttribute("channel");
-
- SmartPtrCPersistenceReadingMessageSource persistenceReadingMessageSource;
- persistenceReadingMessageSource.CreateInstance();
- persistenceReadingMessageSource->initialize(_configSection);
-
- const SmartPtrIMessageChannel outputMessageChannel =
- channelResolver->resolveChannelName(outputChannelStr);
- const SmartPtrIMessageChannel errorMessageChannel =
- channelResolver->resolveChannelName("errorChannel");
-
- SmartPtrCMessageHandler messageHandler;
- messageHandler.CreateInstance();
- messageHandler->initialize(
- _id,
- outputMessageChannel,
- SmartPtrICafObject());
-
- SmartPtrCErrorHandler errorHandler;
- errorHandler.CreateInstance();
- errorHandler->initialize(channelResolver, errorMessageChannel);
-
- SmartPtrCSourcePollingChannelAdapter sourcePollingChannelAdapter;
- sourcePollingChannelAdapter.CreateInstance();
- sourcePollingChannelAdapter->initialize(
- messageHandler, persistenceReadingMessageSource, errorHandler);
-
- SmartPtrCSimpleAsyncTaskExecutor simpleAsyncTaskExecutor;
- simpleAsyncTaskExecutor.CreateInstance();
- simpleAsyncTaskExecutor->initialize(sourcePollingChannelAdapter, errorHandler);
- _taskExecutor = simpleAsyncTaskExecutor;
+ const SmartPtrIPersistence persistence = createPersistence(appContext);
+ if (! persistence.IsNull()) {
+ const std::string outputChannelStr =
+ _configSection->findRequiredAttribute("channel");
+
+ SmartPtrCPersistenceReadingMessageSource persistenceReadingMessageSource;
+ persistenceReadingMessageSource.CreateInstance();
+ persistenceReadingMessageSource->initialize(_configSection, persistence);
+
+ const SmartPtrIMessageChannel outputMessageChannel =
+ channelResolver->resolveChannelName(outputChannelStr);
+ const SmartPtrIMessageChannel errorMessageChannel =
+ channelResolver->resolveChannelName("errorChannel");
+
+ SmartPtrCMessageHandler messageHandler;
+ messageHandler.CreateInstance();
+ messageHandler->initialize(
+ _id,
+ outputMessageChannel,
+ SmartPtrICafObject());
+
+ SmartPtrCErrorHandler errorHandler;
+ errorHandler.CreateInstance();
+ errorHandler->initialize(channelResolver, errorMessageChannel);
+
+ SmartPtrCSourcePollingChannelAdapter sourcePollingChannelAdapter;
+ sourcePollingChannelAdapter.CreateInstance();
+ sourcePollingChannelAdapter->initialize(
+ messageHandler, persistenceReadingMessageSource, errorHandler);
+
+ SmartPtrCSimpleAsyncTaskExecutor simpleAsyncTaskExecutor;
+ simpleAsyncTaskExecutor.CreateInstance();
+ simpleAsyncTaskExecutor->initialize(sourcePollingChannelAdapter, errorHandler);
+ _taskExecutor = simpleAsyncTaskExecutor;
+ }
}
void CPersistenceInboundChannelAdapterInstance::start(
CAF_CM_FUNCNAME_VALIDATE("start");
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- CAF_CM_LOG_DEBUG_VA0("Starting the executor");
- _taskExecutor->execute(timeoutMs);
+ if (! _taskExecutor.IsNull()) {
+ CAF_CM_LOG_DEBUG_VA0("Starting the executor");
+ _taskExecutor->execute(timeoutMs);
+ }
}
void CPersistenceInboundChannelAdapterInstance::stop(
CAF_CM_FUNCNAME_VALIDATE("stop");
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- CAF_CM_LOG_DEBUG_VA0("Stopping the executor");
- _taskExecutor->cancel(timeoutMs);
+ if (! _taskExecutor.IsNull()) {
+ CAF_CM_LOG_DEBUG_VA0("Stopping the executor");
+ _taskExecutor->cancel(timeoutMs);
+ }
}
bool CPersistenceInboundChannelAdapterInstance::isRunning() const {
CAF_CM_FUNCNAME_VALIDATE("isRunning");
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- const bool rc = (_taskExecutor->getState() == ITaskExecutor::ETaskStateStarted);
+ const bool rc = ! _taskExecutor.IsNull()
+ && (_taskExecutor->getState() == ITaskExecutor::ETaskStateStarted);
return rc;
}
return true;
}
+
+SmartPtrIPersistence CPersistenceInboundChannelAdapterInstance::createPersistence(
+ const SmartPtrIAppContext& appContext) const {
+ CAF_CM_FUNCNAME("createPersistence");
+ CAF_CM_VALIDATE_INTERFACE(appContext);
+
+ SmartPtrIPersistence rc;
+ const std::string removeRefStr = _configSection->findRequiredAttribute("ref");
+ CAF_CM_LOG_DEBUG_VA1("Creating the persistence impl - %s", removeRefStr.c_str());
+ const SmartPtrIBean bean = appContext->getBean(removeRefStr);
+ rc.QueryInterface(bean, false);
+ CAF_CM_VALIDATE_INTERFACE(rc);
+
+ try {
+ rc->initialize();
+ }
+ CAF_CM_CATCH_CAF
+ CAF_CM_CATCH_DEFAULT
+ CAF_CM_LOG_WARN_CAFEXCEPTION;
+
+ if (CAF_CM_ISEXCEPTION) {
+ rc = SmartPtrIPersistence();
+ CAF_CM_CLEAREXCEPTION;
+ }
+
+ return rc;
+}
public: // IMessageProducer
bool isMessageProducer() const;
+private:
+ SmartPtrIPersistence createPersistence(
+ const SmartPtrIAppContext& appContext) const;
+
private:
bool _isInitialized;
std::string _id;
CPersistenceMessageHandler::CPersistenceMessageHandler() :
_isInitialized(false),
- _deleteSourceEntries(false),
CAF_CM_INIT_LOG("CPersistenceMessageHandler") {
}
}
void CPersistenceMessageHandler::initialize(
- const SmartPtrIDocument& configSection) {
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIPersistence& persistence) {
CAF_CM_FUNCNAME_VALIDATE("initialize");
CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized);
CAF_CM_VALIDATE_INTERFACE(configSection);
+ CAF_CM_VALIDATE_SMARTPTR(persistence);
_id = configSection->findRequiredAttribute("id");
-
- const std::string implClass = configSection->findRequiredAttribute("impl-class");
- _persistence.CreateInstance(implClass.c_str());
- _persistence->initialize();
-
- const std::string deleteSourceEntriesStr = configSection->findOptionalAttribute(
- "delete-source-entries");
- _deleteSourceEntries = (deleteSourceEntriesStr.empty() || deleteSourceEntriesStr.compare("false") == 0) ? false : true;
+ _persistence = persistence;
_isInitialized = true;
}
_savedMessage = message;
+ SmartPtrCPersistenceDoc persistence;
const std::string payloadStr = message->getPayloadStr();
- const SmartPtrCPersistenceDoc persistence =
- XmlRoots::parsePersistenceFromString(payloadStr);
- _persistence->update(persistence);
-
- if (_deleteSourceEntries) {
- ;//TODO: Delete entries like the localSecurity private key.
+ if (! payloadStr.empty()) {
+ persistence = XmlRoots::parsePersistenceFromString(payloadStr);
}
+
+ _persistence->update(persistence);
}
SmartPtrIIntMessage CPersistenceMessageHandler::getSavedMessage() const {
public:
void initialize(
- const SmartPtrIDocument& configSection);
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIPersistence& persistence);
public: // IMessageHandler
void handleMessage(
private:
bool _isInitialized;
std::string _id;
- bool _deleteSourceEntries;
SmartPtrIPersistence _persistence;
SmartPtrIIntMessage _savedMessage;
CPersistenceNamespaceDb::CPersistenceNamespaceDb() :
_isInitialized(false),
CAF_CM_INIT_LOG("CPersistenceNamespaceDb") {
+ CAF_CM_INIT_THREADSAFE;
}
CPersistenceNamespaceDb::~CPersistenceNamespaceDb() {
}
+void CPersistenceNamespaceDb::initializeBean(
+ const IBean::Cargs& ctorArgs,
+ const IBean::Cprops& properties) {
+}
+
+void CPersistenceNamespaceDb::terminateBean() {
+}
+
void CPersistenceNamespaceDb::initialize() {
- CAF_CM_FUNCNAME_VALIDATE("initialize");
- CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized);
+ CAF_CM_LOCK_UNLOCK;
- setCmd();
- _isInitialized = true;
+ if (! _isInitialized) {
+ setCmd();
+ _isInitialized = true;
+ }
}
SmartPtrCPersistenceDoc CPersistenceNamespaceDb::getUpdated(
const int32 timeout) {
CAF_CM_FUNCNAME_VALIDATE("getUpdated");
+ CAF_CM_LOCK_UNLOCK;
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
//If nothing has been updated, skip all of the unneeded work
string updates = getValue("updates");
if (!updates.empty()) {
+ string version = getValue("version");
+
//EP Doc
- string epPrivateKey = getValue("ep.private.key");
+ string epLocalId = getValue("ep.local_id");
+ string epPrivateKey = getValue("ep.private_key");
string epCert = getValue("ep.cert");
SmartPtrCLocalSecurityDoc endpoint;
endpoint.CreateInstance();
- endpoint->initialize(std::string(), epPrivateKey, epCert);
+ endpoint->initialize(epLocalId, epPrivateKey, epCert);
//App collection
std::deque<SmartPtrCRemoteSecurityDoc> applicationCollectionInner;
string applications = getValue("applications");
Cdeqstr appList = CStringUtils::split(applications, ',');
- for (Cdeqstr::iterator it = appList.begin(); it != appList.end(); it++) {
- string appKey = *it;
+ for (Cdeqstr::iterator appIt = appList.begin(); appIt != appList.end(); appIt++) {
+ string appKey = "app." + *appIt;
+ string appId = getValue(appKey + ".remote_id");
+ string appProtocolName = getValue(appKey + ".protocol_name");
string appCmsCipher = getValue(appKey + ".cms.cipher");
std::deque<std::string> cmsCertCollectionInner;
string appCmsCertChain = getValue(appKey + ".cms.cert_chain");
Cdeqstr appCertList = CStringUtils::split(appCmsCertChain, ',');
- for (Cdeqstr::iterator it = appCertList.begin(); it != appCertList.end(); it++) {
- cmsCertCollectionInner.push_back(*it);
+ for (Cdeqstr::iterator appCertIt = appCertList.begin(); appCertIt != appCertList.end(); appCertIt++) {
+ cmsCertCollectionInner.push_back(*appCertIt);
}
SmartPtrCCertCollectionDoc cmsCertCollection;
cmsCertCollection.CreateInstance();
cmsCertCollection->initialize(cmsCertCollectionInner);
- string appId = appKey;
string cmsCert = getValue(appKey + ".cms.cert");
SmartPtrCRemoteSecurityDoc application;
application.CreateInstance();
- application->initialize(appId, "amqpBroker_default", cmsCert, appCmsCipher, cmsCertCollection);
+ application->initialize(appId, appProtocolName, cmsCert, appCmsCipher, cmsCertCollection);
applicationCollectionInner.push_back(application);
}
string protocols = getValue("protocols");
Cdeqstr protocolList = CStringUtils::split(protocols, ',');
- std::deque<SmartPtrCAmqpBrokerDoc> amqpBrokerCollectionInner;
- for (Cdeqstr::iterator it = protocolList.begin(); it != protocolList.end(); it++) {
- string protocolKey = *it;
+ std::deque<SmartPtrCPersistenceProtocolDoc> persistenceProtocolCollectionInner;
+ for (Cdeqstr::iterator protocolIt = protocolList.begin(); protocolIt != protocolList.end(); protocolIt++) {
+ string protocolKey = "protocol." + *protocolIt;
//Protoccol Doc
std::deque<std::string> tlsCertCollectionInner;
string tlsCertChain = getValue(protocolKey + ".tls.cert.chain");
Cdeqstr tlsCertList = CStringUtils::split(tlsCertChain, ',');
- for (Cdeqstr::iterator it = tlsCertList.begin(); it != tlsCertList.end(); it++) {
- tlsCertCollectionInner.push_back(*it);
+ for (Cdeqstr::iterator tlsCertIt = tlsCertList.begin(); tlsCertIt != tlsCertList.end(); tlsCertIt++) {
+ tlsCertCollectionInner.push_back(*tlsCertIt);
}
Cdeqstr tlsCipherCollection;
string tlsCiphers = getValue(protocolKey + ".tls.ciphers");
Cdeqstr tlsCipherList = CStringUtils::split(tlsCiphers, ',');
- for (Cdeqstr::iterator it = tlsCipherList.begin(); it != tlsCipherList.end(); it++) {
- tlsCipherCollection.push_back(*it);
+ for (Cdeqstr::iterator tlsCipherIt = tlsCipherList.begin(); tlsCipherIt != tlsCipherList.end(); tlsCipherIt++) {
+ tlsCipherCollection.push_back(*tlsCipherIt);
}
SmartPtrCCertCollectionDoc tlsCertCollection;
tlsCertCollection->initialize(tlsCertCollectionInner);
//For now, we only support one broker.
- string amqpBrokerId = getValue(protocolKey + ".amqpBrokerId");
+ string protocolName = getValue(protocolKey + ".protocol_name");
string uri = getValue(protocolKey + ".uri");
string tlsCert = getValue(protocolKey + ".tls.cert");
string tlsProtocol = getValue(protocolKey + ".tls.protocol");
- SmartPtrCAmqpBrokerDoc amqpBroker;
- amqpBroker.CreateInstance();
- amqpBroker->initialize(amqpBrokerId, uri, tlsCert, tlsProtocol, tlsCipherCollection, tlsCertCollection);
+ SmartPtrCPersistenceProtocolDoc persistenceProtocol;
+ persistenceProtocol.CreateInstance();
+ persistenceProtocol->initialize(protocolName, uri, tlsCert, tlsProtocol, tlsCipherCollection, tlsCertCollection);
- amqpBrokerCollectionInner.push_back(amqpBroker);
+ persistenceProtocolCollectionInner.push_back(persistenceProtocol);
}
- SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollection;
- amqpBrokerCollection.CreateInstance();
- amqpBrokerCollection->initialize(amqpBrokerCollectionInner);
-
- SmartPtrCPersistenceProtocolDoc persistenceProtocol;
- persistenceProtocol.CreateInstance();
- persistenceProtocol->initialize(amqpBrokerCollection);
+ SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection;
+ persistenceProtocolCollection.CreateInstance();
+ persistenceProtocolCollection->initialize(persistenceProtocolCollectionInner);
// Persist doc
SmartPtrCPersistenceDoc persistence;
persistence.CreateInstance();
- persistence->initialize(endpoint, applicationCollection, persistenceProtocol, "1.0");
+ persistence->initialize(endpoint, applicationCollection, persistenceProtocolCollection, version);
return persistence;
}
void CPersistenceNamespaceDb::update(
const SmartPtrCPersistenceDoc& persistenceDoc) {
CAF_CM_FUNCNAME("update");
+ CAF_CM_LOCK_UNLOCK;
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
- CAF_CM_VALIDATE_SMARTPTR(persistenceDoc);
- //Update LocalSecurity info
- if (!persistenceDoc->getLocalSecurity().IsNull()){
- setValue("ep.private.key", persistenceDoc->getLocalSecurity()->getPrivateKey());
- setValue("ep.cert", persistenceDoc->getLocalSecurity()->getCert());
- }
+ if (! persistenceDoc.IsNull()) {
+ setValue("version", persistenceDoc->getVersion());
- //Update RemoteSecurity info
- if (!persistenceDoc->getRemoteSecurityCollection().IsNull()){
- deque<SmartPtrCRemoteSecurityDoc> applications = persistenceDoc->getRemoteSecurityCollection()->getRemoteSecurity();
- for (deque<SmartPtrCRemoteSecurityDoc>::iterator it=applications.begin(); it != applications.end(); it++) {
- string appKey = (*it)->getRemoteId();
- setValue(appKey + ".cms.cert", (*it)->getCmsCert());
- //setValue(appKey + ".cms.cipher", (*it)->getCmsCipher());
- string cmsCertChain;
- Cdeqstr cmsCertList = (*it)->getCmsCertCollection()->getCert();
- for (Cdeqstr::iterator it=cmsCertList.begin(); it != cmsCertList.end(); it++) {
- if (!cmsCertChain.empty()) {
- cmsCertChain += ",";
+ //Update LocalSecurity info
+ if (!persistenceDoc->getLocalSecurity().IsNull()){
+ setValue("ep.local_id", persistenceDoc->getLocalSecurity()->getLocalId());
+ setValue("ep.private_key", persistenceDoc->getLocalSecurity()->getPrivateKey());
+ setValue("ep.cert", persistenceDoc->getLocalSecurity()->getCert());
+ }
+
+ //Update RemoteSecurity info
+ if (!persistenceDoc->getRemoteSecurityCollection().IsNull()){
+ deque<SmartPtrCRemoteSecurityDoc> applications = persistenceDoc->getRemoteSecurityCollection()->getRemoteSecurity();
+ for (deque<SmartPtrCRemoteSecurityDoc>::iterator appIt=applications.begin(); appIt != applications.end(); appIt++) {
+ string appKey = "app." + (*appIt)->getRemoteId();
+ setValue(appKey + ".remote_id", (*appIt)->getRemoteId());
+ setValue(appKey + ".cms.cert", (*appIt)->getCmsCert());
+ setValue(appKey + ".cms.cipher", (*appIt)->getCmsCipherName());
+ setValue(appKey + ".protocol_name", (*appIt)->getProtocolName());
+ string cmsCertChain;
+ if (! (*appIt)->getCmsCertCollection().IsNull()) {
+ Cdeqstr cmsCertList = (*appIt)->getCmsCertCollection()->getCert();
+ for (Cdeqstr::iterator cmsCertIt=cmsCertList.begin(); cmsCertIt != cmsCertList.end(); cmsCertIt++) {
+ if (!cmsCertChain.empty()) {
+ cmsCertChain += ",";
+ }
+ cmsCertChain += *cmsCertIt;
+ }
+ setValue(appKey + ".cms.cert_chain", cmsCertChain);
}
- cmsCertChain += *it;
}
- setValue(appKey + ".cms.cert_chain", cmsCertChain);
}
- }
- //Update PersistenceProtocol info
- if (!persistenceDoc->getPersistenceProtocol().IsNull()) {
- //For now, we only support one broker.
- CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker().size() <= 1);
-
- deque<SmartPtrCAmqpBrokerDoc> brokerList = persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker();
- for (deque<SmartPtrCAmqpBrokerDoc>::iterator it=brokerList.begin(); it != brokerList.end(); it++) {
- setValue("name", (*it)->getAmqpBrokerId());
- setValue("uri", (*it)->getUri());
- setValue("tls.cert", (*it)->getTlsCert());
- setValue("tls.protocol", (*it)->getTlsProtocol());
- Cdeqstr tlsCipherList = (*it)->getTlsCipherCollection();
- string tlsCiphers;
- for (Cdeqstr::iterator it=tlsCipherList.begin(); it != tlsCipherList.end(); it++) {
- if (!tlsCiphers.empty()) {
- tlsCiphers += ",";
+ //Update PersistenceProtocol info
+ if (!persistenceDoc->getPersistenceProtocolCollection().IsNull()) {
+ //For now, we only support one broker.
+ CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol().size() <= 1);
+
+ deque<SmartPtrCPersistenceProtocolDoc> brokerList = persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol();
+ for (deque<SmartPtrCPersistenceProtocolDoc>::iterator protIt=brokerList.begin(); protIt != brokerList.end(); protIt++) {
+ string protocolKey = "protocol." + (*protIt)->getProtocolName();
+ setValue(protocolKey + ".protocol_name", (*protIt)->getProtocolName());
+ setValue(protocolKey + ".uri", (*protIt)->getUri());
+ setValue(protocolKey + ".tls.cert", (*protIt)->getTlsCert());
+ setValue(protocolKey + ".tls.protocol", (*protIt)->getTlsProtocol());
+
+ Cdeqstr tlsCipherList = (*protIt)->getTlsCipherCollection();
+ string tlsCiphers;
+ for (Cdeqstr::iterator tlsCipherIt=tlsCipherList.begin(); tlsCipherIt != tlsCipherList.end(); tlsCipherIt++) {
+ if (!tlsCiphers.empty()) {
+ tlsCiphers += ",";
+ }
+ tlsCiphers += *tlsCipherIt;
+ }
+ setValue(protocolKey + ".tls.ciphers", tlsCiphers);
+
+ if (! (*protIt)->getTlsCertCollection().IsNull()) {
+ Cdeqstr tlsCertList = (*protIt)->getTlsCertCollection()->getCert();
+ string tlsCerts;
+ for (Cdeqstr::iterator tlsCertIt=tlsCertList.begin(); tlsCertIt != tlsCertList.end(); tlsCertIt++) {
+ if (!tlsCerts.empty()) {
+ tlsCerts += ",";
+ }
+ tlsCerts += *tlsCertIt;
+ }
+ setValue(protocolKey + ".tls.cert_chain", tlsCerts);
}
- tlsCiphers += *it;
}
- setValue("tls.ciphers", tlsCiphers);
}
}
}
void CPersistenceNamespaceDb::remove(
const SmartPtrCPersistenceDoc& persistenceDoc) {
CAF_CM_FUNCNAME("remove");
+ CAF_CM_LOCK_UNLOCK;
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
//Remove LocalSecurity info
if (!persistenceDoc->getLocalSecurity().IsNull()){
+ if (!persistenceDoc->getLocalSecurity()->getLocalId().empty()) {
+ removeKey("ep.local_id");
+ }
if (!persistenceDoc->getLocalSecurity()->getPrivateKey().empty()) {
- removeKey("ep.private.key");
+ removeKey("ep.private_key");
}
if (!persistenceDoc->getLocalSecurity()->getCert().empty()) {
removeKey("ep.cert");
if (!persistenceDoc->getRemoteSecurityCollection().IsNull()){
deque<SmartPtrCRemoteSecurityDoc> applications = persistenceDoc->getRemoteSecurityCollection()->getRemoteSecurity();
for (deque<SmartPtrCRemoteSecurityDoc>::iterator it=applications.begin(); it != applications.end(); it++) {
- string appKey = (*it)->getRemoteId();
- removeKey(appKey + ".cms.cert");
- removeKey(appKey + ".cms.cert_chain");
+ string appKey = "app." + (*it)->getRemoteId();
+ if (!(*it)->getProtocolName().empty()) {
+ removeKey(appKey + ".protocol_name");
+ }
+ if (!(*it)->getCmsCert().empty()) {
+ removeKey(appKey + ".cms.cert");
+ }
+ if (!(*it)->getCmsCertCollection().IsNull() && !(*it)->getCmsCertCollection()->getCert().empty()) {
+ removeKey(appKey + ".cms.cert_chain");
+ }
+ if (!(*it)->getCmsCipherName().empty()) {
+ removeKey(appKey + ".cms.cipher");
+ }
}
}
//Remove PersistenceProtocol info
- if (!persistenceDoc->getPersistenceProtocol().IsNull()) {
- //For now, we only support one broker.
- CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker().size() <= 1);
-
- deque<SmartPtrCAmqpBrokerDoc> brokerList = persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker();
- for (deque<SmartPtrCAmqpBrokerDoc>::iterator it=brokerList.begin(); it != brokerList.end(); it++) {
- if (!(*it)->getAmqpBrokerId().empty()) {
- removeKey("name");
- }
+ if (!persistenceDoc->getPersistenceProtocolCollection().IsNull()) {
+ //For now, we only support one broker.
+ CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol().size() <= 1);
+
+ deque<SmartPtrCPersistenceProtocolDoc> brokerList = persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol();
+ for (deque<SmartPtrCPersistenceProtocolDoc>::iterator it=brokerList.begin(); it != brokerList.end(); it++) {
+ string protocolKey = "protocol." + (*it)->getProtocolName();
if (!(*it)->getUri().empty()) {
- removeKey("uri");
+ removeKey(protocolKey + "uri");
}
if (!(*it)->getTlsCert().empty()) {
- removeKey("tls.cert");
+ removeKey(protocolKey + "tls.cert");
}
if (!(*it)->getTlsProtocol().empty()) {
- removeKey("tls.protocol");
+ removeKey(protocolKey + "tls.protocol");
+ }
+ if (!(*it)->getTlsCipherCollection().empty()) {
+ removeKey(protocolKey + "tls.ciphers");
+ }
+ if (!(*it)->getTlsCertCollection().IsNull() && !(*it)->getTlsCertCollection()->getCert().empty()) {
+ removeKey(protocolKey + "tls.cert_chain");
}
- removeKey("tls.ciphers");
}
}
}
}
}
catch(ProcessFailedException* ex){
- CAF_CM_LOG_DEBUG_VA1("exception: %s", ex->getMsg().c_str());
- CAF_CM_EXCEPTION_VA3(E_UNEXPECTED,
- "NamespaceDB command failed - %s: %s: %s",
- ex->getMsg().c_str(),
- stdoutContent.c_str(),
- stderrContent.c_str());
+ if (ex->getMsg().compare("There is no namespace database associated with this virtual machine") == 0) {
+ CAF_CM_LOG_INFO_VA1("Acceptable exception... continuing - %s", ex->getMsg().c_str());
+ } else {
+ CAF_CM_LOG_DEBUG_VA1("ProcessFailedException - %s", ex->getMsg().c_str());
+ CAF_CM_EXCEPTION_VA3(E_UNEXPECTED,
+ "NamespaceDB command failed - %s: %s: %s",
+ ex->getMsg().c_str(),
+ stdoutContent.c_str(),
+ stderrContent.c_str());
+ }
}
return value;
}
argv.push_back("-k");
argv.push_back(key);
argv.push_back("-f");
- argv.push_back(value);
+ argv.push_back(tmpFile);
ProcessUtils::runSync(argv, stdoutContent, stderrContent);
//Add to key+hash cache
/// TODO - describe class
class CPersistenceNamespaceDb :
public TCafSubSystemObjectRoot<CPersistenceNamespaceDb>,
+ public IBean,
public IPersistence {
public:
CPersistenceNamespaceDb();
CAF_DECLARE_OBJECT_IDENTIFIER(_sObjIdPersistenceNamespaceDb)
CAF_BEGIN_INTERFACE_MAP(CPersistenceNamespaceDb)
+ CAF_INTERFACE_ENTRY(IBean)
CAF_INTERFACE_ENTRY(IPersistence)
CAF_END_INTERFACE_MAP()
+public: // IBean
+ virtual void initializeBean(
+ const IBean::Cargs& ctorArgs,
+ const IBean::Cprops& properties);
+
+ virtual void terminateBean();
+
public: // IPersistence
void initialize();
private:
CAF_CM_CREATE;
CAF_CM_CREATE_LOG;
+ CAF_CM_CREATE_THREADSAFE;
CAF_CM_DECLARE_NOCOPY(CPersistenceNamespaceDb);
};
CAF_CM_VALIDATE_INTERFACE(appContext);
CAF_CM_VALIDATE_INTERFACE(channelResolver);
- const SmartPtrIMessageChannel errorMessageChannel =
- channelResolver->resolveChannelName("errorChannel");
-
- const std::string inputChannelStr = _configSection->findRequiredAttribute("channel");
- SmartPtrIMessageChannel inputChannel = channelResolver->resolveChannelName(inputChannelStr);
- SmartPtrIIntegrationObject inputChannelObj;
- inputChannelObj.QueryInterface(inputChannel);
-
- SmartPtrCPersistenceMessageHandler persistenceMessageHandler;
- persistenceMessageHandler.CreateInstance();
- persistenceMessageHandler->initialize(_configSection);
- SmartPtrIMessageHandler messageHandler;
- messageHandler.QueryInterface(persistenceMessageHandler);
-
- _messagingTemplate.CreateInstance();
- _messagingTemplate->initialize(
- channelResolver,
- inputChannelObj,
- errorMessageChannel,
- SmartPtrIMessageChannel(),
- messageHandler);
+ const SmartPtrIPersistence persistence = createPersistence(appContext);
+ if (! persistence.IsNull()) {
+ const SmartPtrIMessageChannel errorMessageChannel =
+ channelResolver->resolveChannelName("errorChannel");
+
+ const std::string inputChannelStr = _configSection->findRequiredAttribute("channel");
+ SmartPtrIMessageChannel inputChannel = channelResolver->resolveChannelName(inputChannelStr);
+ SmartPtrIIntegrationObject inputChannelObj;
+ inputChannelObj.QueryInterface(inputChannel);
+
+ SmartPtrCPersistenceMessageHandler persistenceMessageHandler;
+ persistenceMessageHandler.CreateInstance();
+ persistenceMessageHandler->initialize(_configSection, persistence);
+ SmartPtrIMessageHandler messageHandler;
+ messageHandler.QueryInterface(persistenceMessageHandler);
+
+ _messagingTemplate.CreateInstance();
+ _messagingTemplate->initialize(
+ channelResolver,
+ inputChannelObj,
+ errorMessageChannel,
+ SmartPtrIMessageChannel(),
+ messageHandler);
+ }
}
void CPersistenceOutboundChannelAdapterInstance::start(
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
CAF_CM_VALIDATE_BOOL(!_isRunning);
- _isRunning = true;
- _messagingTemplate->start(0);
+ if (! _messagingTemplate.IsNull()) {
+ _isRunning = true;
+ _messagingTemplate->start(0);
+ }
}
void CPersistenceOutboundChannelAdapterInstance::stop(
CAF_CM_PRECOND_ISINITIALIZED(_isInitialized);
CAF_CM_VALIDATE_BOOL(_isRunning);
- _isRunning = false;
- _messagingTemplate->stop(0);
+ if (! _messagingTemplate.IsNull()) {
+ _isRunning = false;
+ _messagingTemplate->stop(0);
+ }
}
bool CPersistenceOutboundChannelAdapterInstance::isRunning() const {
return _isRunning;
}
+
+SmartPtrIPersistence CPersistenceOutboundChannelAdapterInstance::createPersistence(
+ const SmartPtrIAppContext& appContext) const {
+ CAF_CM_FUNCNAME("createPersistence");
+ CAF_CM_VALIDATE_INTERFACE(appContext);
+
+ SmartPtrIPersistence rc;
+ const std::string removeRefStr = _configSection->findRequiredAttribute("ref");
+ CAF_CM_LOG_DEBUG_VA1("Creating the persistence impl - %s", removeRefStr.c_str());
+ const SmartPtrIBean bean = appContext->getBean(removeRefStr);
+ rc.QueryInterface(bean, false);
+ CAF_CM_VALIDATE_INTERFACE(rc);
+
+ try {
+ rc->initialize();
+ }
+ CAF_CM_CATCH_CAF
+ CAF_CM_CATCH_DEFAULT
+ CAF_CM_LOG_WARN_CAFEXCEPTION;
+
+ if (CAF_CM_ISEXCEPTION) {
+ rc = SmartPtrIPersistence();
+ CAF_CM_CLEAREXCEPTION;
+ }
+
+ return rc;
+}
bool isRunning() const;
+private:
+ SmartPtrIPersistence createPersistence(
+ const SmartPtrIAppContext& appContext) const;
+
private:
bool _isInitialized;
bool _isRunning;
}
void CPersistenceReadingMessageSource::initialize(
- const SmartPtrIDocument& configSection) {
- CAF_CM_FUNCNAME("initialize");
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIPersistence& persistence) {
+ CAF_CM_FUNCNAME_VALIDATE("initialize");
CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized);
CAF_CM_VALIDATE_INTERFACE(configSection);
+ CAF_CM_VALIDATE_SMARTPTR(persistence);
_id = configSection->findRequiredAttribute("id");
- const std::string implClass = configSection->findRequiredAttribute("impl-class");
const SmartPtrIDocument pollerDoc = configSection->findOptionalChild("poller");
- SmartPtrIPersistence persistence;
- persistence.CreateInstance(implClass.c_str());
- try {
- persistence->initialize();
- _persistence = persistence;
- }
- CAF_CM_CATCH_CAF
- CAF_CM_CATCH_DEFAULT
- CAF_CM_LOG_CRIT_CAFEXCEPTION;
+ _persistence = persistence;
setPollerMetadata(pollerDoc);
_refreshSec = 0;
}
SmartPtrIIntMessage message;
- if (! _persistence.IsNull()) {
- const SmartPtrCPersistenceDoc persistence = _persistence->getUpdated(0);
- if (! persistence.IsNull()) {
- SmartPtrCIntMessage messageImpl;
- messageImpl.CreateInstance();
- messageImpl->initializeStr(XmlRoots::savePersistenceToString(persistence),
- IIntMessage::SmartPtrCHeaders(), IIntMessage::SmartPtrCHeaders());
- message = messageImpl;
- }
+ const SmartPtrCPersistenceDoc persistence = _persistence->getUpdated(0);
+ if (! persistence.IsNull()) {
+ SmartPtrCIntMessage messageImpl;
+ messageImpl.CreateInstance();
+ messageImpl->initializeStr(XmlRoots::savePersistenceToString(persistence),
+ IIntMessage::SmartPtrCHeaders(), IIntMessage::SmartPtrCHeaders());
+ message = messageImpl;
}
return message;
public:
void initialize(
- const SmartPtrIDocument& configSection);
+ const SmartPtrIDocument& configSection,
+ const SmartPtrIPersistence& persistence);
protected: // CAbstractPollableChannel
bool doSend(
const char* _sObjIdIntegrationObjects = "com.vmware.commonagent.maintegration.integrationobjects";
}}
+namespace Caf {
+ const char* _sObjIdCollectSchemaExecutor = "com.vmware.commonagent.maintegration.collectschemaexecutor";
+ const char* _sObjIdProviderCollectSchemaExecutor = "com.vmware.commonagent.maintegration.providercollectschemaexecutor";
+ const char* _sObjIdProviderExecutor = "com.vmware.commonagent.maintegration.providerexecutor";
+ const char* _sObjIdSinglePmeRequestSplitterInstance = "com.vmware.commonagent.maintegration.singlepmerequestsplitterinstance";
+ const char* _sObjIdSinglePmeRequestSplitter = "com.vmware.commonagent.maintegration.singlepmerequestsplitter";
+ const char* _sObjIdDiagToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformerinstance";
+ const char* _sObjIdDiagToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformer";
+ const char* _sObjIdInstallToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformerinstance";
+ const char* _sObjIdInstallToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformer";
+ const char* _sObjIdPersistenceNamespaceDb = "com.vmware.commonagent.maintegration.persistencenamespacedb";
+ const char* _sObjIdConfigEnv = "com.vmware.commonagent.maintegration.configenv";
+
+ const char* _sObjIdAttachmentRequestTransformerInstance = "com.vmware.commonagent.maintegration.attachmentrequesttransformerinstance";
+ const char* _sObjIdAttachmentRequestTransformer = "com.vmware.commonagent.maintegration.attachmentrequesttransformer";
+ const char* _sObjIdVersionTransformerInstance = "com.vmware.commonagent.maintegration.versiontransformerinstance";
+ const char* _sObjIdVersionTransformer = "com.vmware.commonagent.maintegration.versiontransformer";
+}
+
CEcmSubSystemModule _Module;
using namespace Caf::MaIntegration;
extern const char* _sObjIdIntegrationObjects;
}}
+namespace Caf {
+ extern const char* _sObjIdCollectSchemaExecutor;
+ extern const char* _sObjIdProviderCollectSchemaExecutor;
+ extern const char* _sObjIdProviderExecutor;
+ extern const char* _sObjIdSinglePmeRequestSplitterInstance;
+ extern const char* _sObjIdSinglePmeRequestSplitter;
+ extern const char* _sObjIdDiagToMgmtRequestTransformerInstance;
+ extern const char* _sObjIdDiagToMgmtRequestTransformer;
+ extern const char* _sObjIdInstallToMgmtRequestTransformerInstance;
+ extern const char* _sObjIdInstallToMgmtRequestTransformer;
+
+ extern const char* _sObjIdAttachmentRequestTransformerInstance;
+ extern const char* _sObjIdAttachmentRequestTransformer;
+ extern const char* _sObjIdVersionTransformerInstance;
+ extern const char* _sObjIdVersionTransformer;
+
+ extern const char* _sObjIdPersistenceNamespaceDb;
+ extern const char* _sObjIdConfigEnv;
+}
+
#endif /* _MaIntegration_h_ */
//{{CAF_SUBSYSTEM}}
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
-#include <CafContracts.h>
#include <Integration.h>
#include <DocXml.h>
#include <DocUtils.h>
-#include <MaContracts.h>
+#include "MaContracts.h"
#include "MaIntegration.h"
#include "IntegrationObjects.h"
#include "CPersistenceInboundChannelAdapterInstance.h"
#include "CPersistenceOutboundChannelAdapterInstance.h"
+#include "CPersistenceMerge.h"
+#include "CConfigEnvMerge.h"
#include "CConfigEnv.h"
#include "CConfigEnvReadingMessageSource.h"
#include "CConfigEnvMessageHandler.h"
}
#include <CommonDefines.h>
-#include <IntegrationContracts.h>
-#include <CafContracts.h>
#include <Integration.h>
#include <DocXml.h>
#include <DocUtils.h>
#include "../../Framework/src/Doc/DocXml/ResponseXml/ResponseXmlLink.h"
#include "../../Framework/src/Doc/DocUtils/DocUtilsLink.h"
#include "../include/IProviderResponse.h"
-#include <CafContracts.h>
using namespace Caf;
//{{CAF_SUBSYSTEM}}
#include <CommonDefines.h>
-#include <CafContracts.h>
#include <DocXml.h>
#include <DocUtils.h>
#include <Integration.h>
channel="eventOutFileChannel"
amqp-template="amqpTemplate"
exchange-name="client.mgmt.event"
- routing-key="caf.event" />
+ routing-key="caf.event"
+ mapped-request-headers="caf.msg.*|amqp*" />
<rabbit-inbound-channel-adapter
id="amqpRequestInboundChannel"
input-channel="payloadHeaderEnricherChannel"
output-channel="headerValueRouterChannel">
- <!-- Splits the single request into the processing components that require very different processing;
+ <!-- Splits the single request into the processing components that require very different processing;
collect schema vs. collect instances / invoke method. Also splits requests by provider. -->
<splitter
id="phReqSplitter"
output-channel="nullChannel"
ref="errorToResponseTransformerBean"/>
- <bean
+ <channel id="configenvOutboundChannel"/>
+ <bean
id="maIntegrationObjects"
class="com.vmware.commonagent.maintegration.integrationobjects" />
-
- <channel id="configenvOutboundChannel"/>
+ <bean
+ id="configenvBean"
+ class="com.vmware.commonagent.maintegration.configenv"/>
+ <bean
+ id="persistenceNsdbBean"
+ class="com.vmware.commonagent.maintegration.persistencenamespacedb"/>
<persistence-inbound-channel-adapter
id="persistenceInboundChannelAdapterId"
channel="configenvOutboundChannel"
- impl-class="com.vmware.commonagent.maintegration.persistencenamespacedb">
+ ref="persistenceNsdbBean">
<poller fixed-rate="30000"/>
</persistence-inbound-channel-adapter>
<configenv-outbound-channel-adapter
id="configenvOutboundChannelAdapterId"
channel="configenvOutboundChannel"
- impl-class="com.vmware.commonagent.maintegration.configenv"/>
+ ref="configenvBean"
+ remove-ref="persistenceNsdbBean"/>
-<!--
- <channel id="persistenceOutboundChannel"/>
+ <channel id="persistenceOutboundChannel"/>
<configenv-inbound-channel-adapter
id="configenvInboundChannelAdapterId"
channel="persistenceOutboundChannel"
- impl-class="com.vmware.commonagent.maintegration.configenv">
+ ref="configenvBean">
<poller fixed-rate="30000"/>
</configenv-inbound-channel-adapter>
<persistence-outbound-channel-adapter
id="persistenceOutboundChannelAdapterId"
channel="persistenceOutboundChannel"
- impl-class="com.vmware.commonagent.maintegration.persistencenamespacedb"/>
- -->
+ ref="persistenceNsdbBean"/>
</caf:beans>
validateNotEmpty "$password" "password"
local uriFile="$CAF_INPUT_DIR/persistence/protocol/amqpBroker_default/uri.txt"
- sed -i "s/@amqpUsername@/${username}/g" "$uriFile"
- sed -i "s/@amqpPassword@/${password}/g" "$uriFile"
+ sed -i "s/#amqpUsername#/${username}/g" "$uriFile"
+ sed -i "s/#amqpPassword#/${password}/g" "$uriFile"
}
function setBroker() {
validateNotEmpty "$brokerAddr" "brokerAddr"
local uriFile="$CAF_INPUT_DIR/persistence/protocol/amqpBroker_default/uri.txt"
- sed -i "s/@brokerAddr@/$brokerAddr/g" "$uriFile"
+ sed -i "s/#brokerAddr#/$brokerAddr/g" "$uriFile"
}
function prtHelp() {
echo " * validateXml Validates the XML files against the published schema"
echo " * validateInstall Validates that the files are in the right locations and have the right permissions"
echo " * validateOVTInstall Validates that the files are in the right locations for OVT and have the right permissions"
- echo " * checkFsPerms Checks the permissions, owner and group of the major CAF directories and files"
echo ""
echo " * clearCaches Clears the CAF caches"
}
popd > /dev/null
}
+function validateInstall() {
+ checkFsPermsAll
+ checkFileExistsBin
+ checkFileExistsLib
+ checkFileExistsConfig
+ checkFileExistsScripts
+ checkFileExistsInstall
+ checkFileExistsInvokers
+ checkFileExistsProviderReg
+}
+
+function checkFsPermsAll() {
+ checkFsPerms "$CAF_INPUT_DIR" "755"
+ checkFsPerms "$CAF_OUTPUT_DIR" "755"
+ checkFsPerms "$CAF_LOG_DIR" "755"
+ checkFsPerms "$CAF_BIN_DIR" "755"
+ checkFsPerms "$CAF_LIB_DIR" "755"
+}
+
+function checkFileExistsBin() {
+ checkFileExists "$CAF_BIN_DIR/CommAmqpListener"
+ checkFileExists "$CAF_BIN_DIR/ConfigProvider"
+ checkFileExists "$CAF_BIN_DIR/InstallProvider"
+ checkFileExists "$CAF_BIN_DIR/ManagementAgentHost"
+ checkFileExists "$CAF_BIN_DIR/RemoteCommandProvider"
+ checkFileExists "$CAF_BIN_DIR/TestInfraProvider"
+ checkFileExists "$CAF_BIN_DIR/VGAuthService"
+ checkFileExists "$CAF_BIN_DIR/vmware-vgauth-cmd"
+}
+
+function checkFileExistsLib() {
+ checkFileExists "$CAF_LIB_DIR/libCafIntegrationSubsys.so"
+ checkFileExists "$CAF_LIB_DIR/libCommAmqpIntegration.so"
+ checkFileExists "$CAF_LIB_DIR/libCommAmqpIntegrationSubsys.so"
+ checkFileExists "$CAF_LIB_DIR/libCommIntegrationSubsys.so"
+ checkFileExists "$CAF_LIB_DIR/libFramework.so"
+ checkFileExists "$CAF_LIB_DIR/libIntegrationSubsys.so"
+ checkFileExists "$CAF_LIB_DIR/libMaIntegrationSubsys.so"
+ checkFileExists "$CAF_LIB_DIR/libProviderFx.so"
+ checkFileExists "$CAF_LIB_DIR/libVgAuthIntegrationSubsys.so"
+ checkFileExists "$CAF_LIB_DIR/libcom_err.so.3"
+ checkFileExists "$CAF_LIB_DIR/libcrypto.so.1.0.2"
+ checkFileExists "$CAF_LIB_DIR/libgcc_s.so.1"
+ checkFileExists "$CAF_LIB_DIR/libglib-2.0.so.0.3400.3"
+ checkFileExists "$CAF_LIB_DIR/libgthread-2.0.so.0.3400.3"
+ checkFileExists "$CAF_LIB_DIR/liblog4cpp.so.5.0.6"
+ checkFileExists "$CAF_LIB_DIR/librabbitmq.so.4.1.4"
+ checkFileExists "$CAF_LIB_DIR/libssl.so.1.0.2"
+ checkFileExists "$CAF_LIB_DIR/libstdc++.so.6.0.13"
+ checkFileExists "$CAF_LIB_DIR/libvgauth.so"
+ checkFileExists "$CAF_LIB_DIR/libxerces-c-3.1.so"
+ checkFileExists "$CAF_LIB_DIR/libxml-security-c.so.16"
+ checkFileExists "$CAF_LIB_DIR/libz.so.1.2.3"
+}
+
+function checkFileExistsConfig() {
+ checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-appconfig"
+ checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-context-amqp.xml"
+ checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-context-common.xml"
+ checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-context-tunnel.xml"
+ checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-log4cpp_config"
+ checkFileExists "$CAF_CONFIG_DIR/IntBeanConfigFile.xml"
+ checkFileExists "$CAF_CONFIG_DIR/cafenv-appconfig"
+ checkFileExists "$CAF_CONFIG_DIR/ma-appconfig"
+ checkFileExists "$CAF_CONFIG_DIR/ma-context.xml"
+ checkFileExists "$CAF_CONFIG_DIR/ma-log4cpp_config"
+ checkFileExists "$CAF_CONFIG_DIR/providerFx-appconfig"
+ checkFileExists "$CAF_CONFIG_DIR/providerFx-log4cpp_config"
+ checkFileExists "$CAF_CONFIG_DIR/persistence-appconfig"
+}
+
+function checkFileExistsScripts() {
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/caf-common"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/caf-processes.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/setUpVgAuth"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/start-VGAuthService"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/start-listener"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/start-ma"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/startTestProc"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/stop-VGAuthService"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/stop-listener"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/stop-ma"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/tearDownVgAuth"
+ checkFileExists "$CAF_CONFIG_DIR/../scripts/vgAuth"
+}
+function checkFileExistsInstall() {
+ checkFileExists "$CAF_CONFIG_DIR/../install/caf-c-communication-service"
+ checkFileExists "$CAF_CONFIG_DIR/../install/caf-c-management-agent"
+ checkFileExists "$CAF_CONFIG_DIR/../install/caf-dbg.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/caf-vgauth"
+ checkFileExists "$CAF_CONFIG_DIR/../install/commonenv.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/install.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/postinstallInstall.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/postinstallUpgrade.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/preinstallUpgrade.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/preremoveUninstall.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/preuninstall.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/preupgrade.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/restartServices.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/stopAndRemoveServices.sh"
+ checkFileExists "$CAF_CONFIG_DIR/../install/upgrade.sh"
+}
+
+function checkFileExistsInvokers() {
+ checkFileExists "$CAF_INVOKERS_DIR/cafTestInfra_CafTestInfraProvider_1_0_0.sh"
+ checkFileExists "$CAF_INVOKERS_DIR/caf_ConfigProvider_1_0_0.sh"
+ checkFileExists "$CAF_INVOKERS_DIR/caf_InstallProvider_1_0_0.sh"
+ checkFileExists "$CAF_INVOKERS_DIR/caf_RemoteCommandProvider_1_0_0.sh"
+}
+
+function checkFileExistsProviderReg() {
+ checkFileExists "$CAF_INPUT_DIR/providerReg/cafTestInfra_CafTestInfraProvider_1_0_0.xml"
+ checkFileExists "$CAF_INPUT_DIR/providerReg/caf_ConfigProvider_1_0_0.xml"
+ checkFileExists "$CAF_INPUT_DIR/providerReg/caf_InstallProvider_1_0_0.xml"
+ checkFileExists "$CAF_INPUT_DIR/providerReg/caf_RemoteCommandProvider_1_0_0.xml"
+}
+
+function checkFileExists() {
+ local path="$1"
+ validateNotEmpty "$path" "path"
+
+ if [ ! -f "$path" ]; then
+ echo "*** File existence check failed - expected: $path"
+ exit 1
+ fi
+}
+
function checkFsPerms() {
local dirOrFile="$1"
local permExp="$2"
baseBinDir='/usr/lib'
baseInputDir='/var/lib'
baseOutputDir='/var/lib'
-brokerAddr='@brokerAddr@'
+brokerAddr='#brokerAddr#'
linkSo='yes'
#Help function
installDir="$baseEtcDir/install"
scriptDir="$baseEtcDir/scripts"
-brokerUriOpts="vhost=caf;connection_timeout=150000;connection_retries=10;connection_seconds_to_wait=10;channel_cache_size=3"
-
#Ensure directories exist
mkdir -p "$outputDir"
mkdir -p "$persistenceDir"
tunnelPort=$(netstat -ldn | egrep ":6672 ")
if [ -f "$vcidPath" -a "$tunnelPort" != "" ]; then
- commAmqpListenerContext="$configDir/CommAmqpListener-context-tunnel.xml"
- brokerUri="tunnel:agentId1:bogus@localhost:6672/${reactiveRequestAmqpQueueId}?${brokerUriOpts}"
+ brokerUri="tunnel:agentId1:bogus@localhost:6672/${reactiveRequestAmqpQueueId}"
else
- commAmqpListenerContext="$configDir/CommAmqpListener-context-amqp.xml"
- brokerUri="amqp:@amqpUsername@:@amqpPassword@@${brokerAddr}:5672/${reactiveRequestAmqpQueueId}?${brokerUriOpts}"
+ brokerUri="amqp:#amqpUsername#:#amqpPassword#@${brokerAddr}:5672/${reactiveRequestAmqpQueueId}"
fi
-echo "[globals]" > "$configDir/persistence-appconfig"
-echo "reactive_request_amqp_queue_id=$reactiveRequestAmqpQueueId" >> "$configDir/persistence-appconfig"
-echo "comm_amqp_listener_context=$commAmqpListenerContext" >> "$configDir/persistence-appconfig"
-
echo -n "$brokerUri" > "$amqpBrokerDir/uri.txt"
echo -n "$reactiveRequestAmqpQueueId" > "$localDir/localId.txt"