public class User extends UserRecord implements Serializable
Users may be assigned at most one Role per network.
Each role
provides a user with permissions to perform specific operations.
Without a
role, they will not be able to perform any actions.
| Constructor and Description |
|---|
User() |
User(Long id,
String name,
String email,
Long roleId,
String roleName,
Boolean isActive,
Boolean isEmailNotificationAllowed,
String externalId,
Boolean isServiceAccount,
String ordersUiLocalTimeZoneId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
String |
getExternalId()
Gets the externalId value for this User.
|
Boolean |
getIsActive()
Gets the isActive value for this User.
|
Boolean |
getIsEmailNotificationAllowed()
Gets the isEmailNotificationAllowed value for this User.
|
Boolean |
getIsServiceAccount()
Gets the isServiceAccount value for this User.
|
String |
getOrdersUiLocalTimeZoneId()
Gets the ordersUiLocalTimeZoneId value for this User.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setExternalId(String externalId)
Sets the externalId value for this User.
|
void |
setIsActive(Boolean isActive)
Sets the isActive value for this User.
|
void |
setIsEmailNotificationAllowed(Boolean isEmailNotificationAllowed)
Sets the isEmailNotificationAllowed value for this User.
|
void |
setIsServiceAccount(Boolean isServiceAccount)
Sets the isServiceAccount value for this User.
|
void |
setOrdersUiLocalTimeZoneId(String ordersUiLocalTimeZoneId)
Sets the ordersUiLocalTimeZoneId value for this User.
|
String |
toString() |
getEmail, getId, getName, getRoleId, getRoleName, setEmail, setId, setName, setRoleId, setRoleNamepublic String toString()
toString in class UserRecordpublic Boolean getIsActive()
User is active. An inactive
user
cannot log in to the system or perform any operations.
This attribute is
read-only.public void setIsActive(Boolean isActive)
isActive - * Specifies whether or not the User is active. An inactive
user
cannot log in to the system or perform any operations.
This attribute is
read-only.public Boolean getIsEmailNotificationAllowed()
User wants to permit the
Publisher
Display Ads system to send email notifications
to his or her email address.
This attribute is optional and defaults to true.public void setIsEmailNotificationAllowed(Boolean isEmailNotificationAllowed)
isEmailNotificationAllowed - * Specifies whether or not the User wants to permit the
Publisher
Display Ads system to send email notifications
to his or her email address.
This attribute is optional and defaults to true.public String getExternalId()
User that is meaningful to the
publisher. This attribute is
optional and has a maximum length of 255 characters.public void setExternalId(String externalId)
externalId - * An identifier for the User that is meaningful to the
publisher. This attribute is
optional and has a maximum length of 255 characters.public Boolean getIsServiceAccount()
public void setIsServiceAccount(Boolean isServiceAccount)
isServiceAccount - * Whether the user is an OAuth2 service account user. This attribute
is read-only. Service
account users can only be added through the UI.public String getOrdersUiLocalTimeZoneId()
User. Set this to null
to indicate that no such value is defined
for the User - UI then defaults to using
the Network's timezone.
This setting only affects the UI for this user
and does not in
particular affect the timezone of any dates and
times returned in API responses.public void setOrdersUiLocalTimeZoneId(String ordersUiLocalTimeZoneId)
ordersUiLocalTimeZoneId - * The long format timezone id (e.g. "America/Los_Angeles") used
in the orders and line items UI
for this User. Set this to null
to indicate that no such value is defined
for the User - UI then defaults to using
the Network's timezone.
This setting only affects the UI for this user
and does not in
particular affect the timezone of any dates and
times returned in API responses.public boolean equals(Object obj)
equals in class UserRecordpublic int hashCode()
hashCode in class UserRecordpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2020. All rights reserved.