/modules/apps/headless/headless-admin-user/headless-admin-user-client/src/main/java/com/liferay/headless/admin/user/client/dto/v1_0/UserAccount.java
https://github.com/danielreuther/liferay-portal · Java · 660 lines · 488 code · 155 blank · 17 comment · 3 complexity · a4feb10fa7ab31dcb77950a913c42610 MD5 · raw file
- /**
- * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
- package com.liferay.headless.admin.user.client.dto.v1_0;
- import com.liferay.headless.admin.user.client.function.UnsafeSupplier;
- import com.liferay.headless.admin.user.client.serdes.v1_0.UserAccountSerDes;
- import java.io.Serializable;
- import java.util.Date;
- import java.util.Map;
- import java.util.Objects;
- import javax.annotation.Generated;
- /**
- * @author Javier Gamarra
- * @generated
- */
- @Generated("")
- public class UserAccount implements Cloneable, Serializable {
- public static UserAccount toDTO(String json) {
- return UserAccountSerDes.toDTO(json);
- }
- public AccountBrief[] getAccountBriefs() {
- return accountBriefs;
- }
- public void setAccountBriefs(AccountBrief[] accountBriefs) {
- this.accountBriefs = accountBriefs;
- }
- public void setAccountBriefs(
- UnsafeSupplier<AccountBrief[], Exception> accountBriefsUnsafeSupplier) {
- try {
- accountBriefs = accountBriefsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected AccountBrief[] accountBriefs;
- public Map<String, Map<String, String>> getActions() {
- return actions;
- }
- public void setActions(Map<String, Map<String, String>> actions) {
- this.actions = actions;
- }
- public void setActions(
- UnsafeSupplier<Map<String, Map<String, String>>, Exception>
- actionsUnsafeSupplier) {
- try {
- actions = actionsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected Map<String, Map<String, String>> actions;
- public String getAdditionalName() {
- return additionalName;
- }
- public void setAdditionalName(String additionalName) {
- this.additionalName = additionalName;
- }
- public void setAdditionalName(
- UnsafeSupplier<String, Exception> additionalNameUnsafeSupplier) {
- try {
- additionalName = additionalNameUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String additionalName;
- public String getAlternateName() {
- return alternateName;
- }
- public void setAlternateName(String alternateName) {
- this.alternateName = alternateName;
- }
- public void setAlternateName(
- UnsafeSupplier<String, Exception> alternateNameUnsafeSupplier) {
- try {
- alternateName = alternateNameUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String alternateName;
- public Date getBirthDate() {
- return birthDate;
- }
- public void setBirthDate(Date birthDate) {
- this.birthDate = birthDate;
- }
- public void setBirthDate(
- UnsafeSupplier<Date, Exception> birthDateUnsafeSupplier) {
- try {
- birthDate = birthDateUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected Date birthDate;
- public String getCurrentPassword() {
- return currentPassword;
- }
- public void setCurrentPassword(String currentPassword) {
- this.currentPassword = currentPassword;
- }
- public void setCurrentPassword(
- UnsafeSupplier<String, Exception> currentPasswordUnsafeSupplier) {
- try {
- currentPassword = currentPasswordUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String currentPassword;
- public CustomField[] getCustomFields() {
- return customFields;
- }
- public void setCustomFields(CustomField[] customFields) {
- this.customFields = customFields;
- }
- public void setCustomFields(
- UnsafeSupplier<CustomField[], Exception> customFieldsUnsafeSupplier) {
- try {
- customFields = customFieldsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected CustomField[] customFields;
- public String getDashboardURL() {
- return dashboardURL;
- }
- public void setDashboardURL(String dashboardURL) {
- this.dashboardURL = dashboardURL;
- }
- public void setDashboardURL(
- UnsafeSupplier<String, Exception> dashboardURLUnsafeSupplier) {
- try {
- dashboardURL = dashboardURLUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String dashboardURL;
- public Date getDateCreated() {
- return dateCreated;
- }
- public void setDateCreated(Date dateCreated) {
- this.dateCreated = dateCreated;
- }
- public void setDateCreated(
- UnsafeSupplier<Date, Exception> dateCreatedUnsafeSupplier) {
- try {
- dateCreated = dateCreatedUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected Date dateCreated;
- public Date getDateModified() {
- return dateModified;
- }
- public void setDateModified(Date dateModified) {
- this.dateModified = dateModified;
- }
- public void setDateModified(
- UnsafeSupplier<Date, Exception> dateModifiedUnsafeSupplier) {
- try {
- dateModified = dateModifiedUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected Date dateModified;
- public String getEmailAddress() {
- return emailAddress;
- }
- public void setEmailAddress(String emailAddress) {
- this.emailAddress = emailAddress;
- }
- public void setEmailAddress(
- UnsafeSupplier<String, Exception> emailAddressUnsafeSupplier) {
- try {
- emailAddress = emailAddressUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String emailAddress;
- public String getExternalReferenceCode() {
- return externalReferenceCode;
- }
- public void setExternalReferenceCode(String externalReferenceCode) {
- this.externalReferenceCode = externalReferenceCode;
- }
- public void setExternalReferenceCode(
- UnsafeSupplier<String, Exception> externalReferenceCodeUnsafeSupplier) {
- try {
- externalReferenceCode = externalReferenceCodeUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String externalReferenceCode;
- public String getFamilyName() {
- return familyName;
- }
- public void setFamilyName(String familyName) {
- this.familyName = familyName;
- }
- public void setFamilyName(
- UnsafeSupplier<String, Exception> familyNameUnsafeSupplier) {
- try {
- familyName = familyNameUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String familyName;
- public String getGivenName() {
- return givenName;
- }
- public void setGivenName(String givenName) {
- this.givenName = givenName;
- }
- public void setGivenName(
- UnsafeSupplier<String, Exception> givenNameUnsafeSupplier) {
- try {
- givenName = givenNameUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String givenName;
- public String getHonorificPrefix() {
- return honorificPrefix;
- }
- public void setHonorificPrefix(String honorificPrefix) {
- this.honorificPrefix = honorificPrefix;
- }
- public void setHonorificPrefix(
- UnsafeSupplier<String, Exception> honorificPrefixUnsafeSupplier) {
- try {
- honorificPrefix = honorificPrefixUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String honorificPrefix;
- public String getHonorificSuffix() {
- return honorificSuffix;
- }
- public void setHonorificSuffix(String honorificSuffix) {
- this.honorificSuffix = honorificSuffix;
- }
- public void setHonorificSuffix(
- UnsafeSupplier<String, Exception> honorificSuffixUnsafeSupplier) {
- try {
- honorificSuffix = honorificSuffixUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String honorificSuffix;
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public void setId(UnsafeSupplier<Long, Exception> idUnsafeSupplier) {
- try {
- id = idUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected Long id;
- public String getImage() {
- return image;
- }
- public void setImage(String image) {
- this.image = image;
- }
- public void setImage(
- UnsafeSupplier<String, Exception> imageUnsafeSupplier) {
- try {
- image = imageUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String image;
- public String getJobTitle() {
- return jobTitle;
- }
- public void setJobTitle(String jobTitle) {
- this.jobTitle = jobTitle;
- }
- public void setJobTitle(
- UnsafeSupplier<String, Exception> jobTitleUnsafeSupplier) {
- try {
- jobTitle = jobTitleUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String jobTitle;
- public String[] getKeywords() {
- return keywords;
- }
- public void setKeywords(String[] keywords) {
- this.keywords = keywords;
- }
- public void setKeywords(
- UnsafeSupplier<String[], Exception> keywordsUnsafeSupplier) {
- try {
- keywords = keywordsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String[] keywords;
- public Date getLastLoginDate() {
- return lastLoginDate;
- }
- public void setLastLoginDate(Date lastLoginDate) {
- this.lastLoginDate = lastLoginDate;
- }
- public void setLastLoginDate(
- UnsafeSupplier<Date, Exception> lastLoginDateUnsafeSupplier) {
- try {
- lastLoginDate = lastLoginDateUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected Date lastLoginDate;
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public void setName(UnsafeSupplier<String, Exception> nameUnsafeSupplier) {
- try {
- name = nameUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String name;
- public OrganizationBrief[] getOrganizationBriefs() {
- return organizationBriefs;
- }
- public void setOrganizationBriefs(OrganizationBrief[] organizationBriefs) {
- this.organizationBriefs = organizationBriefs;
- }
- public void setOrganizationBriefs(
- UnsafeSupplier<OrganizationBrief[], Exception>
- organizationBriefsUnsafeSupplier) {
- try {
- organizationBriefs = organizationBriefsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected OrganizationBrief[] organizationBriefs;
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public void setPassword(
- UnsafeSupplier<String, Exception> passwordUnsafeSupplier) {
- try {
- password = passwordUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String password;
- public String getProfileURL() {
- return profileURL;
- }
- public void setProfileURL(String profileURL) {
- this.profileURL = profileURL;
- }
- public void setProfileURL(
- UnsafeSupplier<String, Exception> profileURLUnsafeSupplier) {
- try {
- profileURL = profileURLUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected String profileURL;
- public RoleBrief[] getRoleBriefs() {
- return roleBriefs;
- }
- public void setRoleBriefs(RoleBrief[] roleBriefs) {
- this.roleBriefs = roleBriefs;
- }
- public void setRoleBriefs(
- UnsafeSupplier<RoleBrief[], Exception> roleBriefsUnsafeSupplier) {
- try {
- roleBriefs = roleBriefsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected RoleBrief[] roleBriefs;
- public SiteBrief[] getSiteBriefs() {
- return siteBriefs;
- }
- public void setSiteBriefs(SiteBrief[] siteBriefs) {
- this.siteBriefs = siteBriefs;
- }
- public void setSiteBriefs(
- UnsafeSupplier<SiteBrief[], Exception> siteBriefsUnsafeSupplier) {
- try {
- siteBriefs = siteBriefsUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected SiteBrief[] siteBriefs;
- public UserAccountContactInformation getUserAccountContactInformation() {
- return userAccountContactInformation;
- }
- public void setUserAccountContactInformation(
- UserAccountContactInformation userAccountContactInformation) {
- this.userAccountContactInformation = userAccountContactInformation;
- }
- public void setUserAccountContactInformation(
- UnsafeSupplier<UserAccountContactInformation, Exception>
- userAccountContactInformationUnsafeSupplier) {
- try {
- userAccountContactInformation =
- userAccountContactInformationUnsafeSupplier.get();
- }
- catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- protected UserAccountContactInformation userAccountContactInformation;
- @Override
- public UserAccount clone() throws CloneNotSupportedException {
- return (UserAccount)super.clone();
- }
- @Override
- public boolean equals(Object object) {
- if (this == object) {
- return true;
- }
- if (!(object instanceof UserAccount)) {
- return false;
- }
- UserAccount userAccount = (UserAccount)object;
- return Objects.equals(toString(), userAccount.toString());
- }
- @Override
- public int hashCode() {
- String string = toString();
- return string.hashCode();
- }
- public String toString() {
- return UserAccountSerDes.toJSON(this);
- }
- }