11#ifndef GI_GBP_SECGROUP_HPP
12#define GI_GBP_SECGROUP_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/epdr/EndPointFromSecGroupRTgt.hpp"
24#include "modelgbp/inv/LocalInventoryEpFromSecGroupRTgt.hpp"
28#include "modelgbp/gbp/SecGroupSubject.hpp"
34 :
public opflex::modb::mointernal::MO
41 static const opflex::modb::class_id_t
CLASS_ID = 203;
56 boost::optional<const std::string&>
getName()
110 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroup> >
resolve(
112 const opflex::modb::URI&
uri)
114 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::SecGroup>(
framework,
CLASS_ID,
uri);
128 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroup> >
resolve(
129 const opflex::modb::URI&
uri)
131 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::SecGroup>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
152 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroup> >
resolve(
177 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroup> >
resolve(
240 opflex::modb::mointernal::MO::resolveChildren<modelgbp::epdr::EndPointFromSecGroupRTgt>(
300 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::LocalInventoryEpFromSecGroupRTgt>(
360 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::SecGroupSubject>(
388 const opflex::modb::URI&
uri)
405 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
468 opflex::modb::ObjectListener*
listener)
470 opflex::modb::mointernal
486 opflex::modb::ObjectListener*
listener)
499 opflex::modb::ObjectListener*
listener)
501 opflex::modb::mointernal
512 opflex::modb::ObjectListener*
listener)
523 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::epdr::EndPointFromSecGroupRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EndPointFromSecGroupRTgt from the managed object store.
Definition EndPointFromSecGroupRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGroupSubject from the managed object store.
Definition SecGroupSubject.hpp:102
Definition SecGroup.hpp:35
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of SecGroup from the managed object store using the default framework instance.
Definition SecGroup.hpp:128
void remove()
Remove this instance using the currently-active mutator.
Definition SecGroup.hpp:372
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition SecGroup.hpp:56
static void remove(const opflex::modb::URI &uri)
Remove the SecGroup object with the specified URI using the currently-active mutator and the default ...
Definition SecGroup.hpp:403
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition SecGroup.hpp:68
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > resolve(const std::string &policySpaceName, const std::string &gbpSecGroupName)
Retrieve an instance of SecGroup from the default managed object store by constructing its URI from t...
Definition SecGroup.hpp:177
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition SecGroup.hpp:485
modelgbp::gbp::SecGroup & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition SecGroup.hpp:81
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition SecGroup.hpp:511
OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > addGbpSecGroupSubject(const std::string &gbpSecGroupSubjectName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition SecGroup.hpp:333
void resolveGbpSecGroupSubject(std::vector< OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::SecGroupSubject.
Definition SecGroup.hpp:358
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGroup from the managed object store.
Definition SecGroup.hpp:110
void resolveInvLocalInventoryEpFromSecGroupRTgt(std::vector< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpFromSecGroupRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::LocalInventoryEpFromSecGrou...
Definition SecGroup.hpp:298
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for SecGroup.
Definition SecGroup.hpp:41
static void remove(const std::string &policySpaceName, const std::string &gbpSecGroupName)
Remove the SecGroup object with the specified path elements from the managed object store using the d...
Definition SecGroup.hpp:448
boost::optional< OF_SHARED_PTR< modelgbp::epdr::EndPointFromSecGroupRTgt > > resolveEpdrEndPointFromSecGroupRTgt(const std::string &epdrEndPointFromSecGroupRTgtSource)
Retrieve the child object with the specified naming properties.
Definition SecGroup.hpp:195
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSecGroupName)
Retrieve an instance of SecGroup from the managed object store by constructing its URI from the path ...
Definition SecGroup.hpp:152
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition SecGroup.hpp:466
OF_SHARED_PTR< modelgbp::epdr::EndPointFromSecGroupRTgt > addEpdrEndPointFromSecGroupRTgt(const std::string &epdrEndPointFromSecGroupRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition SecGroup.hpp:213
bool isNameSet()
Check whether name has been set.
Definition SecGroup.hpp:47
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition SecGroup.hpp:497
boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpFromSecGroupRTgt > > resolveInvLocalInventoryEpFromSecGroupRTgt(const std::string &invLocalInventoryEpFromSecGroupRTgtSource)
Retrieve the child object with the specified naming properties.
Definition SecGroup.hpp:255
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the SecGroup object with the specified URI using the currently-active mutator.
Definition SecGroup.hpp:387
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSecGroupName)
Remove the SecGroup object with the specified path elements from the managed object store.
Definition SecGroup.hpp:424
boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > > resolveGbpSecGroupSubject(const std::string &gbpSecGroupSubjectName)
Retrieve the child object with the specified naming properties.
Definition SecGroup.hpp:315
SecGroup(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of SecGroup.
Definition SecGroup.hpp:521
modelgbp::gbp::SecGroup & unsetName()
Unset name in the currently-active mutator.
Definition SecGroup.hpp:93
void resolveEpdrEndPointFromSecGroupRTgt(std::vector< OF_SHARED_PTR< modelgbp::epdr::EndPointFromSecGroupRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epdr::EndPointFromSecGroupRTgt.
Definition SecGroup.hpp:238
OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpFromSecGroupRTgt > addInvLocalInventoryEpFromSecGroupRTgt(const std::string &invLocalInventoryEpFromSecGroupRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition SecGroup.hpp:273
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpFromSecGroupRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalInventoryEpFromSecGroupRTgt from the managed object store.
Definition LocalInventoryEpFromSecGroupRTgt.hpp:210
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12