mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1834: Events are not generated for registerUserKeys(),
Enabling account and Editing account.
This commit is contained in:
parent
b585fa11c1
commit
48311363d6
|
|
@ -122,9 +122,11 @@ public class EventTypes {
|
|||
public static final String EVENT_GLOBAL_LOAD_BALANCER_DELETE = "GLOBAL.LB.DELETE";
|
||||
|
||||
// Account events
|
||||
public static final String EVENT_ACCOUNT_ENABLE = "ACCOUNT.ENABLE";
|
||||
public static final String EVENT_ACCOUNT_DISABLE = "ACCOUNT.DISABLE";
|
||||
public static final String EVENT_ACCOUNT_CREATE = "ACCOUNT.CREATE";
|
||||
public static final String EVENT_ACCOUNT_DELETE = "ACCOUNT.DELETE";
|
||||
public static final String EVENT_ACCOUNT_UPDATE = "ACCOUNT.UPDATE";
|
||||
public static final String EVENT_ACCOUNT_MARK_DEFAULT_ZONE = "ACCOUNT.MARK.DEFAULT.ZONE";
|
||||
|
||||
// UserVO Events
|
||||
|
|
@ -137,6 +139,9 @@ public class EventTypes {
|
|||
public static final String EVENT_USER_ENABLE = "USER.ENABLE";
|
||||
public static final String EVENT_USER_LOCK = "USER.LOCK";
|
||||
|
||||
//registering SSH keypair events
|
||||
public static final String EVENT_REGISTER_SSH_KEYPAIR = "REGISTER.SSH.KEYPAIR";
|
||||
|
||||
// Template Events
|
||||
public static final String EVENT_TEMPLATE_CREATE = "TEMPLATE.CREATE";
|
||||
public static final String EVENT_TEMPLATE_DELETE = "TEMPLATE.DELETE";
|
||||
|
|
|
|||
|
|
@ -3005,6 +3005,7 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
|
|||
}
|
||||
|
||||
@Override
|
||||
@ActionEvent(eventType = EventTypes.EVENT_REGISTER_SSH_KEYPAIR, eventDescription = "registering ssh keypair", async = true)
|
||||
public SSHKeyPair registerSSHKeyPair(RegisterSSHKeyPairCmd cmd) {
|
||||
Account caller = UserContext.current().getCaller();
|
||||
|
||||
|
|
|
|||
|
|
@ -1172,6 +1172,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
|
|||
}
|
||||
|
||||
@Override
|
||||
@ActionEvent(eventType = EventTypes.EVENT_ACCOUNT_ENABLE, eventDescription = "enabling account", async = true)
|
||||
public AccountVO enableAccount(String accountName, Long domainId, Long accountId) {
|
||||
|
||||
// Check if account exists
|
||||
|
|
@ -1262,6 +1263,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
|
|||
|
||||
@Override
|
||||
@DB
|
||||
@ActionEvent(eventType = EventTypes.EVENT_ACCOUNT_UPDATE, eventDescription = "updating account", async = true)
|
||||
public AccountVO updateAccount(UpdateAccountCmd cmd) {
|
||||
Long accountId = cmd.getId();
|
||||
Long domainId = cmd.getDomainId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue