|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.RightType>
com.vmware.vcloud.sdk.admin.Right
public class Right
Helper class for the Right Resource in vCloud Admin API.
| Constructor Summary | |
|---|---|
Right(VcloudClient client,
com.vmware.vcloud.api.rest.schema.RightType rightType)
Constructor to create the Right |
|
| Method Summary | |
|---|---|
Role |
addToRole(com.vmware.vcloud.api.rest.schema.ReferenceType roleRef)
Add this right to a role. |
Role |
addToRole(String vCloudRoleId)
Add this right to a role. |
void |
delete()
Delete the right. |
static void |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType rightRef)
Delete the right. |
Role |
deleteFromRole(com.vmware.vcloud.api.rest.schema.ReferenceType roleRef)
Delete this right from the specified role. |
Role |
deleteFromRole(String vCloudRoleId)
Delete this right from the specified role. |
static Right |
getRightById(VcloudClient client,
String vCloudId)
Get Right helper using the vCloud ID |
static Right |
getRightByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType rightRef)
Returns the Right by ReferenceType |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudResource |
|---|
getResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Right(VcloudClient client,
com.vmware.vcloud.api.rest.schema.RightType rightType)
client - rightType - RightType| Method Detail |
|---|
public static Right getRightByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType rightRef)
throws VCloudException
client - VcloudClientrightRef - ReferenceType
Right
VCloudException
public static Right getRightById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Right
VCloudException
public static void delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType rightRef)
throws VCloudException
client - rightRef -
VCloudException
public void delete()
throws VCloudException
VCloudException
public Role addToRole(com.vmware.vcloud.api.rest.schema.ReferenceType roleRef)
throws VCloudException
roleRef -
Role
VCloudException
public Role addToRole(String vCloudRoleId)
throws VCloudException
vCloudRoleId - urn:vcloud:role:uuid
Role
VCloudException
public Role deleteFromRole(String vCloudRoleId)
throws VCloudException
vCloudRoleId - urn:vcloud:role:uuid
Role
VCloudException
public Role deleteFromRole(com.vmware.vcloud.api.rest.schema.ReferenceType roleRef)
throws VCloudException
roleRef -
Role
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||