|
||||||||||
| 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.UserType>
com.vmware.vcloud.sdk.admin.User
public class User
Helper class for the User Resource in vCloud Admin API.
UserType| Method Summary | |
|---|---|
void |
delete()
Delete User |
static void |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
Delete User |
List<com.vmware.vcloud.api.rest.schema.extension.EntityRightsType> |
getEntityRights(List<com.vmware.vcloud.api.rest.schema.ReferenceType> entityRefs)
Queries user privileges on a set of entities |
List<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getGrantedRights()
Queries user granted privileges |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getGroupRefByName(String groupName)
Returns the Group ReferenceType By name |
Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getGroupRefs()
Returns the group references |
HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> |
getGroupRefsByName()
Returns the group references by name |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getRoleReference()
Returns the User's Role reference type |
static User |
getUserById(VcloudClient client,
String vCloudId)
Get User helper using the vCloud ID |
static User |
getUserByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
Returns the User By ReferenceType |
void |
takeOwnership()
Takes ownership of specified user's vApps, media, and catalogs. |
static void |
takeOwnership(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
Takes ownership of specified user's vApps, media, and catalogs. |
void |
unlock()
Unlocks the user. |
static void |
unlock(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
Unlocks the user. |
User |
updateUser(com.vmware.vcloud.api.rest.schema.UserType userType)
Updating the User |
| 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 User getUserByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
throws VCloudException
client - VcloudClientuserRef - ReferenceType
User
VCloudExceptionAdminOrganization.getUserRefs(),
AdminOrganization.getUserRefsByName(),
AdminOrganization.getUserRefByName(String)
public static User getUserById(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
User
VCloudException
public User updateUser(com.vmware.vcloud.api.rest.schema.UserType userType)
throws VCloudException
userType - UserType
User
VCloudException
public void delete()
throws VCloudException
VCloudException
public static void delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
throws VCloudException
client - vCloud Client VcloudClientuserRef - User Ref
VCloudException
public void unlock()
throws VCloudException
VCloudException
public static void unlock(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
throws VCloudException
client - VcloudClientuserRef - ReferenceType
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getRoleReference()
throws VCloudException
ReferenceType
VCloudExceptionpublic HashMap<String,com.vmware.vcloud.api.rest.schema.ReferenceType> getGroupRefsByName()
HashMappublic com.vmware.vcloud.api.rest.schema.ReferenceType getGroupRefByName(String groupName)
groupName -
ReferenceTypepublic Collection<com.vmware.vcloud.api.rest.schema.ReferenceType> getGroupRefs()
Collection
public List<com.vmware.vcloud.api.rest.schema.extension.EntityRightsType> getEntityRights(List<com.vmware.vcloud.api.rest.schema.ReferenceType> entityRefs)
throws VCloudException
entityRefs -
List<EntityRightsType>
VCloudException
public List<com.vmware.vcloud.api.rest.schema.ReferenceType> getGrantedRights()
throws VCloudException
List<ReferenceType>
VCloudException
public void takeOwnership()
throws VCloudException
VCloudException
public static void takeOwnership(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType userRef)
throws VCloudException
client - VcloudClientuserRef - ReferenceType
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||