public class Account extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
Account.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Account> |
CREATOR |
static JSONifiable.Creator<Account> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Account()
Constructs a new empty instance.
|
|
Account(Account src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
Account(boolean noInit)
Constructs a new empty instance.
|
|
Account(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
Account(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAuthFactors()
Clears the 'authFactors' field, the 'has' method for this field will now return false
|
void |
clearClaimedTime()
Clears the 'claimedTime' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearCsrfToken()
Clears the 'csrfToken' field, the 'has' method for this field will now return false
|
void |
clearDevelopers()
Clears the 'developers' field, the 'has' method for this field will now return false
|
void |
clearEmail()
Clears the 'email' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearInviteSent()
Clears the 'inviteSent' field, the 'has' method for this field will now return false
|
void |
clearIsActive()
Clears the 'isActive' field, the 'has' method for this field will now return false
|
void |
clearLastLogin()
Clears the 'lastLogin' field, the 'has' method for this field will now return false
|
void |
clearMerchants()
Clears the 'merchants' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearPrimaryDeveloper()
Clears the 'primaryDeveloper' field, the 'has' method for this field will now return false
|
void |
clearPrimaryEnterprise()
Clears the 'primaryEnterprise' field, the 'has' method for this field will now return false
|
void |
clearPrimaryMerchant()
Clears the 'primaryMerchant' field, the 'has' method for this field will now return false
|
void |
clearPrimaryReseller()
Clears the 'primaryReseller' field, the 'has' method for this field will now return false
|
void |
clearResellers()
Clears the 'resellers' field, the 'has' method for this field will now return false
|
void |
clearRole()
Clears the 'role' field, the 'has' method for this field will now return false
|
void |
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
Account |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
List<Reference> |
getAuthFactors() |
Long |
getClaimedTime() |
Long |
getCreatedTime() |
String |
getCsrfToken() |
List<Reference> |
getDevelopers() |
String |
getEmail() |
protected GenericClient |
getGenericClient() |
String |
getId() |
Boolean |
getInviteSent() |
Boolean |
getIsActive() |
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
Long |
getLastLogin() |
List<Reference> |
getMerchants() |
String |
getName() |
Reference |
getPrimaryDeveloper()
The primary developer
|
Reference |
getPrimaryEnterprise()
The primary enterprise
|
Reference |
getPrimaryMerchant()
The primary merchant
|
Reference |
getPrimaryReseller()
The primary reseller
|
List<Reference> |
getResellers() |
Reference |
getRole() |
String |
getStatus() |
boolean |
hasAuthFactors()
Checks whether the 'authFactors' field has been set, however the value could be null
|
boolean |
hasClaimedTime()
Checks whether the 'claimedTime' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasCsrfToken()
Checks whether the 'csrfToken' field has been set, however the value could be null
|
boolean |
hasDevelopers()
Checks whether the 'developers' field has been set, however the value could be null
|
boolean |
hasEmail()
Checks whether the 'email' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasInviteSent()
Checks whether the 'inviteSent' field has been set, however the value could be null
|
boolean |
hasIsActive()
Checks whether the 'isActive' field has been set, however the value could be null
|
boolean |
hasLastLogin()
Checks whether the 'lastLogin' field has been set, however the value could be null
|
boolean |
hasMerchants()
Checks whether the 'merchants' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasPrimaryDeveloper()
Checks whether the 'primaryDeveloper' field has been set, however the value could be null
|
boolean |
hasPrimaryEnterprise()
Checks whether the 'primaryEnterprise' field has been set, however the value could be null
|
boolean |
hasPrimaryMerchant()
Checks whether the 'primaryMerchant' field has been set, however the value could be null
|
boolean |
hasPrimaryReseller()
Checks whether the 'primaryReseller' field has been set, however the value could be null
|
boolean |
hasResellers()
Checks whether the 'resellers' field has been set, however the value could be null
|
boolean |
hasRole()
Checks whether the 'role' field has been set, however the value could be null
|
boolean |
hasStatus()
Checks whether the 'status' field has been set, however the value could be null
|
boolean |
isNotEmptyAuthFactors()
Checks whether the 'authFactors' field is set and is not null and is not empty
|
boolean |
isNotEmptyDevelopers()
Checks whether the 'developers' field is set and is not null and is not empty
|
boolean |
isNotEmptyMerchants()
Checks whether the 'merchants' field is set and is not null and is not empty
|
boolean |
isNotEmptyResellers()
Checks whether the 'resellers' field is set and is not null and is not empty
|
boolean |
isNotNullAuthFactors()
Checks whether the 'authFactors' field is set and is not null
|
boolean |
isNotNullClaimedTime()
Checks whether the 'claimedTime' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullCsrfToken()
Checks whether the 'csrfToken' field is set and is not null
|
boolean |
isNotNullDevelopers()
Checks whether the 'developers' field is set and is not null
|
boolean |
isNotNullEmail()
Checks whether the 'email' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullInviteSent()
Checks whether the 'inviteSent' field is set and is not null
|
boolean |
isNotNullIsActive()
Checks whether the 'isActive' field is set and is not null
|
boolean |
isNotNullLastLogin()
Checks whether the 'lastLogin' field is set and is not null
|
boolean |
isNotNullMerchants()
Checks whether the 'merchants' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullPrimaryDeveloper()
Checks whether the 'primaryDeveloper' field is set and is not null
|
boolean |
isNotNullPrimaryEnterprise()
Checks whether the 'primaryEnterprise' field is set and is not null
|
boolean |
isNotNullPrimaryMerchant()
Checks whether the 'primaryMerchant' field is set and is not null
|
boolean |
isNotNullPrimaryReseller()
Checks whether the 'primaryReseller' field is set and is not null
|
boolean |
isNotNullResellers()
Checks whether the 'resellers' field is set and is not null
|
boolean |
isNotNullRole()
Checks whether the 'role' field is set and is not null
|
boolean |
isNotNullStatus()
Checks whether the 'status' field is set and is not null
|
void |
mergeChanges(Account src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
Account |
setAuthFactors(List<Reference> authFactors)
Sets the field 'authFactors'.
|
Account |
setClaimedTime(Long claimedTime)
Sets the field 'claimedTime'.
|
Account |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
Account |
setCsrfToken(String csrfToken)
Sets the field 'csrfToken'.
|
Account |
setDevelopers(List<Reference> developers)
Sets the field 'developers'.
|
Account |
setEmail(String email)
Sets the field 'email'.
|
Account |
setId(String id)
Sets the field 'id'.
|
Account |
setInviteSent(Boolean inviteSent)
Sets the field 'inviteSent'.
|
Account |
setIsActive(Boolean isActive)
Sets the field 'isActive'.
|
Account |
setLastLogin(Long lastLogin)
Sets the field 'lastLogin'.
|
Account |
setMerchants(List<Reference> merchants)
Sets the field 'merchants'.
|
Account |
setName(String name)
Sets the field 'name'.
|
Account |
setPrimaryDeveloper(Reference primaryDeveloper)
Sets the field 'primaryDeveloper'.
|
Account |
setPrimaryEnterprise(Reference primaryEnterprise)
Sets the field 'primaryEnterprise'.
|
Account |
setPrimaryMerchant(Reference primaryMerchant)
Sets the field 'primaryMerchant'.
|
Account |
setPrimaryReseller(Reference primaryReseller)
Sets the field 'primaryReseller'.
|
Account |
setResellers(List<Reference> resellers)
Sets the field 'resellers'.
|
Account |
setRole(Reference role)
Sets the field 'role'.
|
Account |
setStatus(String status)
Sets the field 'status'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Account> CREATOR
public static final JSONifiable.Creator<Account> JSON_CREATOR
public Account()
protected Account(boolean noInit)
public Account(String json) throws IllegalArgumentException
IllegalArgumentException
public Account(JSONObject jsonObject)
public Account(Account src)
public String getId()
public String getName()
public String getEmail()
public Reference getPrimaryMerchant()
public Reference getPrimaryDeveloper()
public Reference getPrimaryReseller()
public Reference getPrimaryEnterprise()
public Boolean getIsActive()
public Long getCreatedTime()
public Long getClaimedTime()
public Long getLastLogin()
public Boolean getInviteSent()
public String getStatus()
public Reference getRole()
public String getCsrfToken()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullEmail()
public boolean isNotNullPrimaryMerchant()
public boolean isNotNullPrimaryDeveloper()
public boolean isNotNullPrimaryReseller()
public boolean isNotNullPrimaryEnterprise()
public boolean isNotNullIsActive()
public boolean isNotNullCreatedTime()
public boolean isNotNullClaimedTime()
public boolean isNotNullLastLogin()
public boolean isNotNullInviteSent()
public boolean isNotNullStatus()
public boolean isNotNullRole()
public boolean isNotNullMerchants()
public boolean isNotEmptyMerchants()
public boolean isNotNullDevelopers()
public boolean isNotEmptyDevelopers()
public boolean isNotNullResellers()
public boolean isNotEmptyResellers()
public boolean isNotNullCsrfToken()
public boolean isNotNullAuthFactors()
public boolean isNotEmptyAuthFactors()
public boolean hasId()
public boolean hasName()
public boolean hasEmail()
public boolean hasPrimaryMerchant()
public boolean hasPrimaryDeveloper()
public boolean hasPrimaryReseller()
public boolean hasPrimaryEnterprise()
public boolean hasIsActive()
public boolean hasCreatedTime()
public boolean hasClaimedTime()
public boolean hasLastLogin()
public boolean hasInviteSent()
public boolean hasStatus()
public boolean hasRole()
public boolean hasMerchants()
public boolean hasDevelopers()
public boolean hasResellers()
public boolean hasCsrfToken()
public boolean hasAuthFactors()
public Account setPrimaryMerchant(Reference primaryMerchant)
public Account setPrimaryDeveloper(Reference primaryDeveloper)
public Account setPrimaryReseller(Reference primaryReseller)
public Account setPrimaryEnterprise(Reference primaryEnterprise)
public Account setRole(Reference role)
public Account setMerchants(List<Reference> merchants)
public Account setDevelopers(List<Reference> developers)
public Account setResellers(List<Reference> resellers)
public Account setAuthFactors(List<Reference> authFactors)
public void clearId()
public void clearName()
public void clearEmail()
public void clearPrimaryMerchant()
public void clearPrimaryDeveloper()
public void clearPrimaryReseller()
public void clearPrimaryEnterprise()
public void clearIsActive()
public void clearCreatedTime()
public void clearClaimedTime()
public void clearLastLogin()
public void clearInviteSent()
public void clearStatus()
public void clearRole()
public void clearMerchants()
public void clearDevelopers()
public void clearResellers()
public void clearCsrfToken()
public void clearAuthFactors()
public boolean containsChanges()
public void resetChangeLog()
public Account copyChanges()
public void mergeChanges(Account src)