public class StorageObjectWrite
extends java.lang.Object
Constructor and Description |
---|
StorageObjectWrite(java.lang.String collection,
java.lang.String key,
java.lang.String value,
PermissionRead permissionRead,
PermissionWrite permissionWrite)
Creates a new
StorageObjectWrite instance. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCollection()
The collection which stores the object.
|
java.lang.String |
getKey()
The key of the object within the collection.
|
PermissionRead |
getPermissionRead()
Read permission of the object.
|
PermissionWrite |
getPermissionWrite()
Write permission of the object.
|
java.lang.String |
getValue()
The actual content of the object.
|
java.lang.String |
getVersion()
The version hash of the object to check against the server.
|
int |
hashCode() |
void |
setVersion(java.lang.String version)
The version hash of the object to check against the server.
|
java.lang.String |
toString() |
public StorageObjectWrite(java.lang.String collection, java.lang.String key, java.lang.String value, PermissionRead permissionRead, PermissionWrite permissionWrite)
StorageObjectWrite
instance.collection
- The collection which stores the object.key
- The key of the object within the collection.value
- The actual content of the object. Must be JSON.permissionRead
- Read permission of the object.permissionWrite
- Write permission of the object.public java.lang.String getCollection()
public java.lang.String getKey()
public java.lang.String getValue()
public PermissionRead getPermissionRead()
public PermissionWrite getPermissionWrite()
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object