You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ch...@apache.org on 2013/04/09 15:30:34 UTC
git commit: updated refs/heads/4.1 to af65438
Updated Branches:
refs/heads/4.1 9b6ff74e3 -> af6543840
CLOUDSTACK-1834: Events are not generated for registerUserKeys()
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/af654384
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/af654384
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/af654384
Branch: refs/heads/4.1
Commit: af65438408a6353a199e9a45f28f15e4355e256e
Parents: 9b6ff74
Author: Murali Reddy <mu...@citrix.com>
Authored: Tue Apr 9 17:45:19 2013 +0530
Committer: Chip Childers <ch...@gmail.com>
Committed: Tue Apr 9 14:23:15 2013 +0100
----------------------------------------------------------------------
api/src/com/cloud/event/EventTypes.java | 3 +++
server/src/com/cloud/user/AccountManagerImpl.java | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/af654384/api/src/com/cloud/event/EventTypes.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/event/EventTypes.java b/api/src/com/cloud/event/EventTypes.java
index 0315303..84b482f 100755
--- a/api/src/com/cloud/event/EventTypes.java
+++ b/api/src/com/cloud/event/EventTypes.java
@@ -133,6 +133,9 @@ public class EventTypes {
//registering SSH keypair events
public static final String EVENT_REGISTER_SSH_KEYPAIR = "REGISTER.SSH.KEYPAIR";
+ //register for user API and secret keys
+ public static final String EVENT_REGISTER_FOR_SECRET_API_KEY = "REGISTER.USER.KEY";
+
// Template Events
public static final String EVENT_TEMPLATE_CREATE = "TEMPLATE.CREATE";
public static final String EVENT_TEMPLATE_DELETE = "TEMPLATE.DELETE";
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/af654384/server/src/com/cloud/user/AccountManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java
index 1f54d70..86f418d 100755
--- a/server/src/com/cloud/user/AccountManagerImpl.java
+++ b/server/src/com/cloud/user/AccountManagerImpl.java
@@ -1976,6 +1976,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
}
@Override @DB
+ @ActionEvent(eventType = EventTypes.EVENT_REGISTER_FOR_SECRET_API_KEY, eventDescription = "register for the developer API keys")
public String[] createApiKeyAndSecretKey(RegisterCmd cmd) {
Long userId = cmd.getId();