User Class
- java.
lang. Object - JsonSerializable
- Resource
- com.
microsoft. azure. cosmosdb. User
- com.
public class User extends Resource
Represents a database user in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
User() |
Initialize a user object. |
User(String jsonString) |
Initialize a user object from json string. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getPermissionsLink()
Gets the self-link of the permissions associated with the user. |
Inherited Members
JsonSerializable.get(String propertyName)
JsonSerializable.getBoolean(String propertyName)
JsonSerializable.getCollection(String propertyName)
JsonSerializable.getDouble(String propertyName)
Resource.getETag()
JsonSerializable.getHashMap()
Resource.getId()
JsonSerializable.getInt(String propertyName)
JsonSerializable.getLogger()
JsonSerializable.getLong(String propertyName)
JsonSerializable.getMapper()
JsonSerializable.getObject(String propertyName)
JsonSerializable.getObjectByPath(List<String> propertyNames)
Resource.getResourceId()
Resource.getSelfLink()
JsonSerializable.getString(String propertyName)
Resource.getTimestamp()
JsonSerializable.has(String propertyName)
JsonSerializable.JsonSerializable()
JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
JsonSerializable.JsonSerializable(String jsonString)
JsonSerializable.remove(String propertyName)
Resource.Resource(Resource resource)
Resource.Resource()
Resource.Resource(String jsonString, ObjectMapper objectMapper)
Resource.Resource(String jsonString)
Resource.setId(String id)
Resource.setResourceId(String resourceId)
JsonSerializable.toJson()
JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
JsonSerializable.toString()
Constructor Details
User
public User()
Initialize a user object.
User
public User(String jsonString)
Initialize a user object from json string.
Parameters:
jsonString
- the json string that represents the database user.
Method Details
getPermissionsLink
public String getPermissionsLink()
Gets the self-link of the permissions associated with the user.
Returns:
the permissions link.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java