You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2014/07/12 00:14:33 UTC

[1/2] git commit: updated refs/heads/master to a6b42fd

Repository: cloudstack
Updated Branches:
  refs/heads/master bfb28da9f -> a6b42fde5


Fixed code causing warnings in ActionEventUtils


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7098367d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7098367d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7098367d

Branch: refs/heads/master
Commit: 7098367dc6d2b245e321546cae47e2c31c88b07a
Parents: bfb28da
Author: Alena Prokharchyk <al...@citrix.com>
Authored: Wed Jul 9 10:50:07 2014 -0700
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Fri Jul 11 14:59:39 2014 -0700

----------------------------------------------------------------------
 server/src/com/cloud/event/ActionEventUtils.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7098367d/server/src/com/cloud/event/ActionEventUtils.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/event/ActionEventUtils.java b/server/src/com/cloud/event/ActionEventUtils.java
index 2b3cfea..68a328b 100755
--- a/server/src/com/cloud/event/ActionEventUtils.java
+++ b/server/src/com/cloud/event/ActionEventUtils.java
@@ -204,7 +204,7 @@ public class ActionEventUtils {
         String entityType = null;
         String entityUuid = null;
         CallContext context = CallContext.current();
-        Class entityKey = getEntityKey(eventType);
+        Class<?> entityKey = getEntityKey(eventType);
         if (entityKey != null){
             //FIXME - Remove this since it should be covered by the else if condition below.
             entityUuid = (String)context.getContextParameter(entityKey);
@@ -212,7 +212,7 @@ public class ActionEventUtils {
                 entityType = entityKey.getName();
         }else if (EventTypes.getEntityClassForEvent(eventType) != null){
             //Get entity Class(Example - VirtualMachine.class) from the event Type eg. - VM.CREATE
-            Class entityClass = EventTypes.getEntityClassForEvent(eventType);
+            Class<?> entityClass = EventTypes.getEntityClassForEvent(eventType);
 
             //Get uuid from id
             if(context.getContextParameter(entityClass.getName()) != null){
@@ -260,7 +260,7 @@ public class ActionEventUtils {
         }
     }
 
-    private static String getEntityUuid(Class entityType, Object entityId){
+    private static String getEntityUuid(Class<?> entityType, Object entityId){
 
         // entityId can be internal db id or UUID so accordingly call findbyId or return uuid directly
 
@@ -300,7 +300,7 @@ public class ActionEventUtils {
         for(Map.Entry<Object, Object> entry : contextMap.entrySet()){
             try{
                 Object key = entry.getKey();
-                Class clz = Class.forName((String)key);
+                Class<?> clz = Class.forName((String)key);
                 if(clz instanceof Class && Identity.class.isAssignableFrom(clz)){
                     String uuid = getEntityUuid(clz, entry.getValue());
                     eventDescription.put(ReflectUtil.getEntityName(clz), uuid);
@@ -312,7 +312,7 @@ public class ActionEventUtils {
 
     }
 
-    private static Class getEntityKey(String eventType)
+    private static Class<?> getEntityKey(String eventType)
     {
         // FIXME - Remove this
         if (eventType.startsWith("DOMAIN."))


[2/2] git commit: updated refs/heads/master to a6b42fd

Posted by al...@apache.org.
Corrected API doc description for listProjectInvitations/deleteProjectInvitation commands


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a6b42fde
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a6b42fde
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a6b42fde

Branch: refs/heads/master
Commit: a6b42fde55b4ce374369d97916f1c83605f308d9
Parents: 7098367
Author: Alena Prokharchyk <al...@citrix.com>
Authored: Fri Jul 11 14:59:10 2014 -0700
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Fri Jul 11 14:59:40 2014 -0700

----------------------------------------------------------------------
 .../api/command/user/project/DeleteProjectInvitationCmd.java       | 2 +-
 .../api/command/user/project/ListProjectInvitationsCmd.java        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a6b42fde/api/src/org/apache/cloudstack/api/command/user/project/DeleteProjectInvitationCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/project/DeleteProjectInvitationCmd.java b/api/src/org/apache/cloudstack/api/command/user/project/DeleteProjectInvitationCmd.java
index 9f8baad..736a800 100644
--- a/api/src/org/apache/cloudstack/api/command/user/project/DeleteProjectInvitationCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/project/DeleteProjectInvitationCmd.java
@@ -31,7 +31,7 @@ import org.apache.cloudstack.context.CallContext;
 import com.cloud.event.EventTypes;
 import com.cloud.user.Account;
 
-@APICommand(name = "deleteProjectInvitation", description = "Accepts or declines project invitation", responseObject = SuccessResponse.class, since = "3.0.0",
+@APICommand(name = "deleteProjectInvitation", description = "Deletes project invitation", responseObject = SuccessResponse.class, since = "3.0.0",
         requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
 public class DeleteProjectInvitationCmd extends BaseAsyncCmd {
     public static final Logger s_logger = Logger.getLogger(DeleteProjectInvitationCmd.class.getName());

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a6b42fde/api/src/org/apache/cloudstack/api/command/user/project/ListProjectInvitationsCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/project/ListProjectInvitationsCmd.java b/api/src/org/apache/cloudstack/api/command/user/project/ListProjectInvitationsCmd.java
index dc607e4..f34f422 100644
--- a/api/src/org/apache/cloudstack/api/command/user/project/ListProjectInvitationsCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/project/ListProjectInvitationsCmd.java
@@ -27,7 +27,7 @@ import org.apache.cloudstack.api.response.ProjectInvitationResponse;
 import org.apache.cloudstack.api.response.ProjectResponse;
 
 @APICommand(name = "listProjectInvitations",
-            description = "Lists projects and provides detailed information for listed projects",
+            description = "Lists project invitations and provides detailed information for listed invitations",
             responseObject = ProjectInvitationResponse.class,
             since = "3.0.0",
             requestHasSensitiveInfo = false,