|
| static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subject > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
| | Retrieve an instance of Subject from the managed object store.
|
| |
| static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subject > > | resolve (const opflex::modb::URI &uri) |
| | Retrieve an instance of Subject from the managed object store using the default framework instance.
|
| |
| static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subject > > | resolve (opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpContractName, const std::string &gbpSubjectName) |
| | Retrieve an instance of Subject from the managed object store by constructing its URI from the path elements that lead to it.
|
| |
| static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subject > > | resolve (const std::string &policySpaceName, const std::string &gbpContractName, const std::string &gbpSubjectName) |
| | Retrieve an instance of Subject from the default managed object store by constructing its URI from the path elements that lead to it.
|
| |
| static void | remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
| | Remove the Subject object with the specified URI using the currently-active mutator.
|
| |
| static void | remove (const opflex::modb::URI &uri) |
| | Remove the Subject object with the specified URI using the currently-active mutator and the default framework instance.
|
| |
| static void | remove (opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpContractName, const std::string &gbpSubjectName) |
| | Remove the Subject object with the specified path elements from the managed object store.
|
| |
| static void | remove (const std::string &policySpaceName, const std::string &gbpContractName, const std::string &gbpSubjectName) |
| | Remove the Subject object with the specified path elements from the managed object store using the default framework instance.
|
| |
| static void | registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
| | Register a listener that will get called for changes related to this class.
|
| |
| 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.
|
| |
| static void | unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
| | Unregister a listener from updates to this class.
|
| |
| static void | unregisterListener (opflex::modb::ObjectListener *listener) |
| | Unregister a listener from updates to this class from the default framework instance.
|
| |
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
-
| gbpRuleName | the value of gbpRuleName, a naming property for Rule |
- Exceptions
-
| std::logic_error | if no mutator is active |
- Returns
- a shared pointer to the (possibly new) object
References CLASS_ID, and resolve().
| void modelgbp::gbp::Subject::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_error | if no mutator is active |
References CLASS_ID, and resolve().
Referenced by remove(), and remove().
| static void modelgbp::gbp::Subject::remove |
( |
const opflex::modb::URI & | uri | ) |
|
|
inlinestatic |
Remove the Subject 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
-
| uri | the URI of the object to remove |
- Exceptions
-
| std::logic_error | if no mutator is active |
References remove(), and resolve().
| static void modelgbp::gbp::Subject::remove |
( |
const std::string & | policySpaceName, |
|
|
const std::string & | gbpContractName, |
|
|
const std::string & | gbpSubjectName ) |
|
inlinestatic |
Remove the Subject 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]/GbpContract/[gbpContractName]/GbpSubject/[gbpSubjectName]
- Parameters
-
| policySpaceName | the value of policySpaceName, a naming property for Space |
| gbpContractName | the value of gbpContractName, a naming property for Contract |
| gbpSubjectName | the value of gbpSubjectName, a naming property for Subject |
- Exceptions
-
| std::logic_error | if no mutator is active |
References remove(), and resolve().
| static void modelgbp::gbp::Subject::remove |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const opflex::modb::URI & | uri ) |
|
inlinestatic |
Remove the Subject 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
-
| framework | the framework instance to use |
| uri | the URI of the object to remove |
- Exceptions
-
| std::logic_error | if no mutator is active |
References CLASS_ID, and resolve().
| static void modelgbp::gbp::Subject::remove |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const std::string & | policySpaceName, |
|
|
const std::string & | gbpContractName, |
|
|
const std::string & | gbpSubjectName ) |
|
inlinestatic |
Remove the Subject 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]/GbpContract/[gbpContractName]/GbpSubject/[gbpSubjectName]
- Parameters
-
| framework | the framework instance to use |
| policySpaceName | the value of policySpaceName, a naming property for Space |
| gbpContractName | the value of gbpContractName, a naming property for Contract |
| gbpSubjectName | the value of gbpSubjectName, a naming property for Subject |
- Exceptions
-
| std::logic_error | if no mutator is active |
References CLASS_ID, and resolve().
| static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subject > > modelgbp::gbp::Subject::resolve |
( |
const std::string & | policySpaceName, |
|
|
const std::string & | gbpContractName, |
|
|
const std::string & | gbpSubjectName ) |
|
inlinestatic |
Retrieve an instance of Subject 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]/GbpContract/[gbpContractName]/GbpSubject/[gbpSubjectName]
- Parameters
-
| policySpaceName | the value of policySpaceName, a naming property for Space |
| gbpContractName | the value of gbpContractName, a naming property for Contract |
| gbpSubjectName | the value of gbpSubjectName, a naming property for Subject |
- 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::Subject > > modelgbp::gbp::Subject::resolve |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const opflex::modb::URI & | uri ) |
|
inlinestatic |
Retrieve an instance of Subject 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
-
| framework | the framework instance to use |
| uri | the URI of the object to retrieve |
- Returns
- a shared pointer to the object or boost::none if it does not exist.
References CLASS_ID, and resolve().
Referenced by addGbpRule(), getName(), getName(), isNameSet(), registerListener(), registerListener(), remove(), remove(), remove(), remove(), remove(), resolve(), resolve(), resolve(), resolve(), resolveGbpRule(), resolveGbpRule(), modelgbp::gbp::Contract::resolveGbpSubject(), setName(), unregisterListener(), unregisterListener(), and unsetName().
| static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subject > > modelgbp::gbp::Subject::resolve |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const std::string & | policySpaceName, |
|
|
const std::string & | gbpContractName, |
|
|
const std::string & | gbpSubjectName ) |
|
inlinestatic |
Retrieve an instance of Subject 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]/GbpContract/[gbpContractName]/GbpSubject/[gbpSubjectName]
- Parameters
-
| framework | the framework instance to use |
| policySpaceName | the value of policySpaceName, a naming property for Space |
| gbpContractName | the value of gbpContractName, a naming property for Contract |
| gbpSubjectName | the value of gbpSubjectName, a naming property for Subject |
- Returns
- a shared pointer to the object or boost::none if it does not exist.
References resolve().