Activation: Override the set property functions

Create override functions so that actions can be taken based
on the value that the properties are being set to.

Change-Id: I70e9519246662d516a109af91f4456fb4f001c4f
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 4ea52cb..50681c3 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,6 +11,7 @@
 	version_host_software_manager_main.cpp
 
 openpower_update_manager_SOURCES = \
+	activation.cpp \
 	item_updater.cpp \
 	item_updater_main.cpp
 
diff --git a/activation.cpp b/activation.cpp
new file mode 100755
index 0000000..2841839
--- /dev/null
+++ b/activation.cpp
@@ -0,0 +1,27 @@
+#include "activation.hpp"
+
+namespace openpower
+{
+namespace software
+{
+namespace updater
+{
+
+auto Activation::activation(Activations value) ->
+        Activations
+{
+    return sdbusplus::xyz::openbmc_project::Software::server::Activation::
+            activation(value);
+}
+
+auto Activation::requestedActivation(RequestedActivations value) ->
+        RequestedActivations
+{
+    return sdbusplus::xyz::openbmc_project::Software::server::Activation::
+            requestedActivation(value);
+}
+
+} // namespace updater
+} // namespace software
+} // namespace openpower
+
diff --git a/activation.hpp b/activation.hpp
index 3861349..4c5bee5 100755
--- a/activation.hpp
+++ b/activation.hpp
@@ -8,7 +8,7 @@
 {
 namespace software
 {
-namespace manager
+namespace updater
 {
 
 using ActivationInherit = sdbusplus::server::object::object<
@@ -31,6 +31,24 @@
          */
         Activation(sdbusplus::bus::bus& bus, const std::string& path) :
                    ActivationInherit(bus, path.c_str()) {};
+
+        /** @brief Overloaded Activation property setter function
+         *
+         *  @param[in] value - One of Activation::Activations
+         *
+         *  @return Success or exception thrown
+         */
+        Activations activation(Activations value) override;
+
+        /** @brief Overloaded requestedActivation property setter function
+         *
+         *  @param[in] value - One of Activation::RequestedActivations
+         *
+         *  @return Success or exception thrown
+         */
+        RequestedActivations requestedActivation(RequestedActivations value)
+                override;
+
 };
 
 /** @class ActivationBlocksTransition
@@ -51,7 +69,7 @@
                    ActivationBlocksTransitionInherit(bus, path.c_str()) {}
 };
 
-} // namespace manager
+} // namespace updater
 } // namespace software
 } // namespace openpower
 
diff --git a/item_updater.cpp b/item_updater.cpp
index 95e71de..c9df395 100755
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -6,7 +6,7 @@
 {
 namespace software
 {
-namespace manager
+namespace updater
 {
 
 using namespace phosphor::logging;
@@ -68,7 +68,7 @@
     return 0;
 }
 
-} // namespace manager
+} // namespace updater
 } // namespace software
 } // namespace openpower
 
diff --git a/item_updater.hpp b/item_updater.hpp
index 8350428..091e31d 100755
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -7,7 +7,7 @@
 {
 namespace software
 {
-namespace manager
+namespace updater
 {
 
 /** @class ItemUpdater
@@ -63,7 +63,7 @@
         sdbusplus::server::match::match versionMatch;
 };
 
-} // namespace manager
+} // namespace updater
 } // namespace software
 } // namespace openpower
 
diff --git a/item_updater_main.cpp b/item_updater_main.cpp
index b4ff177..0bf710b 100755
--- a/item_updater_main.cpp
+++ b/item_updater_main.cpp
@@ -10,7 +10,7 @@
     // Add sdbusplus ObjectManager.
     sdbusplus::server::manager::manager objManager(bus, SOFTWARE_OBJPATH);
 
-    openpower::software::manager::ItemUpdater updater(bus);
+    openpower::software::updater::ItemUpdater updater(bus);
 
     bus.request_name(BUSNAME_UPDATER);