|
||||||||||
| 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.GroupType>
com.vmware.vcloud.sdk.admin.Group
public class Group
Helper class for the Group Resource in vCloud Admin API.
| Method Summary | |
|---|---|
void |
delete()
Delete Group |
static void |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType groupRef)
Delete Group |
static Group |
getGroupById(VcloudClient client,
String vCloudId)
Get Group helper using the vCloud ID |
static Group |
getGroupByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType groupRef)
Returns the group by reference |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getRoleReference()
Returns the role reference type |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getUserRefByName(String userName)
Returns the user reference by name |
Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getUserRefs()
Returns a collection of all the user references |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getUserRefsByName()
Returns the user references by name |
Group |
updateGroup(com.vmware.vcloud.api.rest.schema.GroupType groupType)
Updating the Group |
| 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 |
| Method Detail |
|---|
public static Group getGroupByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType groupRef)
throws VCloudException
client - VcloudClientgroupRef - ReferenceType
Group
VCloudException
public static Group getGroupById(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
Group
VCloudException
public Group updateGroup(com.vmware.vcloud.api.rest.schema.GroupType groupType)
throws VCloudException
groupType - GroupType
Group
VCloudException
public void delete()
throws VCloudException
VCloudException
public static void delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType groupRef)
throws VCloudException
client - vCloud Client VcloudClientgroupRef - Group Ref
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getRoleReference()
throws VCloudException
ReferenceType
VCloudExceptionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getUserRefsByName()
HashMappublic Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> getUserRefs()
Collectionpublic com.vmware.vcloud.api.rest.schema.ReferenceType getUserRefByName(String userName)
userName -
ReferenceType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||