C++: Add managed by search into SearchAgent
authorjani <jani@asema.com>
Thu, 11 Jul 2019 07:41:30 +0000 (10:41 +0300)
committerjani <jani@asema.com>
Thu, 11 Jul 2019 07:41:30 +0000 (10:41 +0300)
Common/C++/SmartAPI/smartapi/agents/SearchAgent.cpp
Common/C++/SmartAPI/smartapi/agents/SearchAgent.h

index 465dde0a862fe4e4de77ff45a5087482cd1166d8..590d7dbe412be25b1fa23dd3cda82a9314f46577 100644 (file)
@@ -258,11 +258,16 @@ void SearchAgent::ofId(QString searchString)
        mEntity->add(PROPERTY__ID, condition);
 }
 
-void SearchAgent::ofServiceId(QString serviceId)
+void SearchAgent::ofServedById(QString serviceId)
 {
        mEntity->add(PROPERTY__ISSERVEDBY, new Obj(serviceId));
 }
 
+void SearchAgent::ofManagedById(QString serviceId)
+{
+       mEntity->add(PROPERTY__ISMANAGEDBY, new Obj(serviceId));
+}
+
 void SearchAgent::ofIds(QStringList searchStrings)
 {
        for (int i = 0; i < searchStrings.length(); i++) {
index 4e1ea048107f3c778b56489367608cf38053d143..88ee136c301b21d506a35cadde0121e7420902ec 100644 (file)
@@ -42,7 +42,8 @@ public:
 
        void ofId(QString searchString);
        void ofIds(QStringList searchStrings);
-       void ofServiceId(QString searchString);
+       void ofServedById(QString searchString);
+       void ofManagedById(QString searchString);
        void ofRegistrantId(QString registrantId);
        void ofName(QString searchString, bool exactMatch = false);
        void ofType(QString type);