External UUID control: as only Root admin can change external UUID, so modified @Parameter to enforce the check

This commit is contained in:
Alena Prokharchyk 2014-02-05 15:28:34 -08:00
parent 4305d817ba
commit e51d472b0c
2 changed files with 5 additions and 2 deletions

View File

@ -16,11 +16,12 @@
// under the License.
package org.apache.cloudstack.api;
import org.apache.cloudstack.acl.RoleType;
public abstract class BaseAsyncCustomIdCmd extends BaseAsyncCmd {
@Parameter(name = ApiConstants.CUSTOM_ID,
type = CommandType.STRING,
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only", since = "4.4")
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only", since = "4.4", authorized = {RoleType.Admin})
private String customId;
public String getCustomId() {

View File

@ -16,11 +16,13 @@
// under the License.
package org.apache.cloudstack.api;
import org.apache.cloudstack.acl.RoleType;
public abstract class BaseCustomIdCmd extends BaseCmd {
@Parameter(name = ApiConstants.CUSTOM_ID,
type = CommandType.STRING,
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only", since = "4.4")
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only", since = "4.4", authorized = {RoleType.Admin})
private String customId;
public String getCustomId() {