11#ifndef GI_GBP_SECGROUPSUBJECT_HPP
12#define GI_GBP_SECGROUPSUBJECT_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbp/SecGroupRule.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 204;
48 boost::optional<const std::string&>
getName()
102 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> >
resolve(
104 const opflex::modb::URI&
uri)
106 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::SecGroupSubject>(
framework,
CLASS_ID,
uri);
120 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> >
resolve(
121 const opflex::modb::URI&
uri)
123 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::SecGroupSubject>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
146 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> >
resolve(
174 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> >
resolve(
238 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::SecGroupRule>(
266 const opflex::modb::URI&
uri)
283 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
352 opflex::modb::ObjectListener*
listener)
354 opflex::modb::mointernal
370 opflex::modb::ObjectListener*
listener)
383 opflex::modb::ObjectListener*
listener)
385 opflex::modb::mointernal
396 opflex::modb::ObjectListener*
listener)
407 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupRule > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGroupRule from the managed object store.
Definition SecGroupRule.hpp:222
Definition SecGroupSubject.hpp:27
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 SecGroupSubject.hpp:350
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > > resolve(const std::string &policySpaceName, const std::string &gbpSecGroupName, const std::string &gbpSecGroupSubjectName)
Retrieve an instance of SecGroupSubject from the default managed object store by constructing its URI...
Definition SecGroupSubject.hpp:174
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
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition SecGroupSubject.hpp:60
modelgbp::gbp::SecGroupSubject & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition SecGroupSubject.hpp:73
boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupRule > > resolveGbpSecGroupRule(const std::string &gbpSecGroupRuleName)
Retrieve the child object with the specified naming properties.
Definition SecGroupSubject.hpp:193
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 SecGroupSubject.hpp:369
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of SecGroupSubject from the managed object store using the default framework ins...
Definition SecGroupSubject.hpp:120
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the SecGroupSubject object with the specified URI using the currently-active mutator.
Definition SecGroupSubject.hpp:265
SecGroupSubject(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of SecGroupSubject.
Definition SecGroupSubject.hpp:405
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for SecGroupSubject.
Definition SecGroupSubject.hpp:33
static void remove(const opflex::modb::URI &uri)
Remove the SecGroupSubject object with the specified URI using the currently-active mutator and the d...
Definition SecGroupSubject.hpp:281
static void remove(const std::string &policySpaceName, const std::string &gbpSecGroupName, const std::string &gbpSecGroupSubjectName)
Remove the SecGroupSubject object with the specified path elements from the managed object store usin...
Definition SecGroupSubject.hpp:331
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSecGroupName, const std::string &gbpSecGroupSubjectName)
Remove the SecGroupSubject object with the specified path elements from the managed object store.
Definition SecGroupSubject.hpp:304
bool isNameSet()
Check whether name has been set.
Definition SecGroupSubject.hpp:39
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition SecGroupSubject.hpp:395
void remove()
Remove this instance using the currently-active mutator.
Definition SecGroupSubject.hpp:250
OF_SHARED_PTR< modelgbp::gbp::SecGroupRule > addGbpSecGroupRule(const std::string &gbpSecGroupRuleName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition SecGroupSubject.hpp:211
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupSubject > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSecGroupName, const std::string &gbpSecGroupSubjectName)
Retrieve an instance of SecGroupSubject from the managed object store by constructing its URI from th...
Definition SecGroupSubject.hpp:146
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition SecGroupSubject.hpp:381
modelgbp::gbp::SecGroupSubject & unsetName()
Unset name in the currently-active mutator.
Definition SecGroupSubject.hpp:85
void resolveGbpSecGroupRule(std::vector< OF_SHARED_PTR< modelgbp::gbp::SecGroupRule > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::SecGroupRule.
Definition SecGroupSubject.hpp:236
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition SecGroupSubject.hpp:48
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12