modelgbp Generated OpFlex Model  1.7.0
modelgbp::gbp::SecGroupSubject Class Reference
Inheritance diagram for modelgbp::gbp::SecGroupSubject:

Public Member Functions

bool isNameSet ()
 Check whether name has been set. More...
 
boost::optional< const
std::string & > 
getName ()
 Get the value of name if it has been set. More...
 
const std::string & getName (const std::string &defaultValue)
 Get the value of name if set, otherwise the value of default passed in. More...
 
modelgbp::gbp::SecGroupSubjectsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::gbp::SecGroupSubjectunsetName ()
 Unset name in the currently-active mutator. More...
 
boost::optional< OF_SHARED_PTR
< modelgbp::gbp::SecGroupRule > > 
resolveGbpSecGroupRule (const std::string &gbpSecGroupRuleName)
 Retrieve the child object with the specified naming properties. More...
 
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 the currently-active mutator. More...
 
void resolveGbpSecGroupRule (std::vector< OF_SHARED_PTR< modelgbp::gbp::SecGroupRule > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::gbp::SecGroupRule. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 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. More...
 

Static Public Member Functions

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. More...
 
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 instance. More...
 
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 the path elements that lead to it. More...
 
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 from the path elements that lead to it. More...
 
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. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the SecGroupSubject object with the specified URI using the currently-active mutator and the default framework instance. More...
 
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. More...
 
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 using the default framework instance. More...
 
static void registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class. More...
 
static void registerListener (opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class with the default framework instance. More...
 
static void unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class. More...
 
static void unregisterListener (opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class from the default framework instance. More...
 

Static Public Attributes

static const
opflex::modb::class_id_t 
CLASS_ID = 204
 The unique class ID for SecGroupSubject.
 

Constructor & Destructor Documentation

modelgbp::gbp::SecGroupSubject::SecGroupSubject ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri,
const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &  oi 
)
inline

Construct an instance of SecGroupSubject.

This should not typically be called from user code.

Member Function Documentation

OF_SHARED_PTR<modelgbp::gbp::SecGroupRule> modelgbp::gbp::SecGroupSubject::addGbpSecGroupRule ( const std::string &  gbpSecGroupRuleName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
gbpSecGroupRuleNamethe value of gbpSecGroupRuleName, a naming property for SecGroupRule
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

boost::optional<const std::string&> modelgbp::gbp::SecGroupSubject::getName ( )
inline

Get the value of name if it has been set.

Returns
the value of name or boost::none if not set

References isNameSet().

Referenced by getName().

const std::string& modelgbp::gbp::SecGroupSubject::getName ( const std::string &  defaultValue)
inline

Get the value of name if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of name if set, otherwise the value of default passed in

References getName().

bool modelgbp::gbp::SecGroupSubject::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

static void modelgbp::gbp::SecGroupSubject::registerListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Register a listener that will get called for changes related to this class.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
frameworkthe framework instance
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References CLASS_ID.

Referenced by registerListener().

static void modelgbp::gbp::SecGroupSubject::registerListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Register a listener that will get called for changes related to this class with the default framework instance.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References registerListener().

void modelgbp::gbp::SecGroupSubject::remove ( )
inline

Remove this instance using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::gbp::SecGroupSubject::remove ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Remove the SecGroupSubject object with the specified URI using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
frameworkthe framework instance to use
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::gbp::SecGroupSubject::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the SecGroupSubject object with the specified URI using the currently-active mutator and the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active
static void modelgbp::gbp::SecGroupSubject::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  policySpaceName,
const std::string &  gbpSecGroupName,
const std::string &  gbpSecGroupSubjectName 
)
inlinestatic

Remove the SecGroupSubject object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpSecGroup/[gbpSecGroupName]/GbpSecGroupSubject/[gbpSecGroupSubjectName]

Parameters
frameworkthe framework instance to use
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpSecGroupNamethe value of gbpSecGroupName, a naming property for SecGroup
gbpSecGroupSubjectNamethe value of gbpSecGroupSubjectName, a naming property for SecGroupSubject
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::gbp::SecGroupSubject::remove ( const std::string &  policySpaceName,
const std::string &  gbpSecGroupName,
const std::string &  gbpSecGroupSubjectName 
)
inlinestatic

Remove the SecGroupSubject object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpSecGroup/[gbpSecGroupName]/GbpSecGroupSubject/[gbpSecGroupSubjectName]

Parameters
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpSecGroupNamethe value of gbpSecGroupName, a naming property for SecGroup
gbpSecGroupSubjectNamethe value of gbpSecGroupSubjectName, a naming property for SecGroupSubject
Exceptions
std::logic_errorif no mutator is active
static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> > modelgbp::gbp::SecGroupSubject::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of SecGroupSubject from the managed object store.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
frameworkthe framework instance to use
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

Referenced by resolve(), and modelgbp::gbp::SecGroup::resolveGbpSecGroupSubject().

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> > modelgbp::gbp::SecGroupSubject::resolve ( const opflex::modb::URI &  uri)
inlinestatic

Retrieve an instance of SecGroupSubject from the managed object store using the default framework instance.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> > modelgbp::gbp::SecGroupSubject::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  policySpaceName,
const std::string &  gbpSecGroupName,
const std::string &  gbpSecGroupSubjectName 
)
inlinestatic

Retrieve an instance of SecGroupSubject from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpSecGroup/[gbpSecGroupName]/GbpSecGroupSubject/[gbpSecGroupSubjectName]

Parameters
frameworkthe framework instance to use
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpSecGroupNamethe value of gbpSecGroupName, a naming property for SecGroup
gbpSecGroupSubjectNamethe value of gbpSecGroupSubjectName, a naming property for SecGroupSubject
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupSubject> > modelgbp::gbp::SecGroupSubject::resolve ( const std::string &  policySpaceName,
const std::string &  gbpSecGroupName,
const std::string &  gbpSecGroupSubjectName 
)
inlinestatic

Retrieve an instance of SecGroupSubject from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpSecGroup/[gbpSecGroupName]/GbpSecGroupSubject/[gbpSecGroupSubjectName]

Parameters
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpSecGroupNamethe value of gbpSecGroupName, a naming property for SecGroup
gbpSecGroupSubjectNamethe value of gbpSecGroupSubjectName, a naming property for SecGroupSubject
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroupRule> > modelgbp::gbp::SecGroupSubject::resolveGbpSecGroupRule ( const std::string &  gbpSecGroupRuleName)
inline

Retrieve the child object with the specified naming properties.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
gbpSecGroupRuleNamethe value of gbpSecGroupRuleName, a naming property for SecGroupRule
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::gbp::SecGroupRule::resolve().

void modelgbp::gbp::SecGroupSubject::resolveGbpSecGroupRule ( std::vector< OF_SHARED_PTR< modelgbp::gbp::SecGroupRule > > &  out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::gbp::SecGroupRule.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

modelgbp::gbp::SecGroupSubject& modelgbp::gbp::SecGroupSubject::setName ( const std::string &  newValue)
inline

Set name to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See Also
opflex::modb::Mutator
static void modelgbp::gbp::SecGroupSubject::unregisterListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Unregister a listener from updates to this class.

Parameters
frameworkthe framework instance
listenerThe listener to unregister.

References CLASS_ID.

Referenced by unregisterListener().

static void modelgbp::gbp::SecGroupSubject::unregisterListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Unregister a listener from updates to this class from the default framework instance.

Parameters
listenerThe listener to unregister.

References unregisterListener().

modelgbp::gbp::SecGroupSubject& modelgbp::gbp::SecGroupSubject::unsetName ( )
inline

Unset name in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See Also
opflex::modb::Mutator

The documentation for this class was generated from the following file: