Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by delombok at Wed Oct 16 22:16:03 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.assets;
import com.atlan.Atlan;
import com.atlan.AtlanClient;
import com.atlan.exception.AtlanException;
import com.atlan.exception.ErrorCode;
import com.atlan.exception.InvalidRequestException;
import com.atlan.exception.NotFoundException;
import com.atlan.model.enums.AssetFilterGroup;
import com.atlan.model.enums.AssetSidebarTab;
import com.atlan.model.enums.AuthPolicyCategory;
import com.atlan.model.enums.AuthPolicyResourceCategory;
import com.atlan.model.enums.AuthPolicyType;
import com.atlan.model.enums.DataAction;
import com.atlan.model.enums.PersonaDomainAction;
import com.atlan.model.enums.PersonaGlossaryAction;
import com.atlan.model.enums.PersonaMetadataAction;
import com.atlan.model.fields.AtlanField;
import com.atlan.model.relations.Reference;
import com.atlan.model.relations.UniqueAttributes;
import com.atlan.model.search.FluentSearch;
import com.atlan.util.StringUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.SortedSet;
import java.util.concurrent.ThreadLocalRandom;
import javax.annotation.processing.Generated;
import lombok.*;
/**
* Atlan Type representing a Persona model
*/
@Generated("com.atlan.generators.ModelGeneratorV2")
public class Persona extends Asset implements IPersona, IAccessControl, IAsset, IReferenceable {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Persona.class);
private static final long serialVersionUID = 2L;
public static final String TYPE_NAME = "Persona";
/**
* Fixed typeName for Personas.
*/
String typeName;
/**
* TBC
*/
@Attribute
String channelLink;
/**
* TBC
*/
@Attribute
String defaultNavigation;
/**
* TBC
*/
@Attribute
SortedSet denyAssetFilters;
/**
* TBC
*/
@Attribute
SortedSet denyAssetTabs;
/**
* TBC
*/
@Attribute
SortedSet denyAssetTypes;
/**
* TBC
*/
@Attribute
SortedSet denyCustomMetadataGuids;
/**
* TBC
*/
@Attribute
SortedSet denyNavigationPages;
/**
* TBC
*/
@Attribute
SortedSet displayPreferences;
/**
* TBC
*/
@Attribute
Boolean isAccessControlEnabled;
/**
* TBC
*/
@Attribute
SortedSet personaGroups;
/**
* TBC
*/
@Attribute
SortedSet personaUsers;
/**
* TBC
*/
@Attribute
SortedSet policies;
/**
* TBC
*/
@Attribute
String roleId;
/**
* Builds the minimal object necessary to create a relationship to a Persona, from a potentially
* more-complete Persona object.
*
* @return the minimal object necessary to relate to the Persona
* @throws InvalidRequestException if any of the minimal set of required properties for a Persona relationship are not found in the initial object
*/
@Override
public Persona trimToReference() throws InvalidRequestException {
if (this.getGuid() != null && !this.getGuid().isEmpty()) {
return refByGuid(this.getGuid());
}
if (this.getQualifiedName() != null && !this.getQualifiedName().isEmpty()) {
return refByQualifiedName(this.getQualifiedName());
}
if (this.getUniqueAttributes() != null && this.getUniqueAttributes().getQualifiedName() != null && !this.getUniqueAttributes().getQualifiedName().isEmpty()) {
return refByQualifiedName(this.getUniqueAttributes().getQualifiedName());
}
throw new InvalidRequestException(ErrorCode.MISSING_REQUIRED_RELATIONSHIP_PARAM, TYPE_NAME, "guid, qualifiedName");
}
/**
* Start a fluent search that will return all Persona assets.
* Additional conditions can be chained onto the returned search before any
* asset retrieval is attempted, ensuring all conditions are pushed-down for
* optimal retrieval. Only active (non-archived) Persona assets will be included.
*
* @return a fluent search that includes all Persona assets
*/
public static FluentSearch.FluentSearchBuilder, ?> select() {
return select(Atlan.getDefaultClient());
}
/**
* Start a fluent search that will return all Persona assets.
* Additional conditions can be chained onto the returned search before any
* asset retrieval is attempted, ensuring all conditions are pushed-down for
* optimal retrieval. Only active (non-archived) Persona assets will be included.
*
* @param client connectivity to the Atlan tenant from which to retrieve the assets
* @return a fluent search that includes all Persona assets
*/
public static FluentSearch.FluentSearchBuilder, ?> select(AtlanClient client) {
return select(client, false);
}
/**
* Start a fluent search that will return all Persona assets.
* Additional conditions can be chained onto the returned search before any
* asset retrieval is attempted, ensuring all conditions are pushed-down for
* optimal retrieval.
*
* @param includeArchived when true, archived (soft-deleted) Personas will be included
* @return a fluent search that includes all Persona assets
*/
public static FluentSearch.FluentSearchBuilder, ?> select(boolean includeArchived) {
return select(Atlan.getDefaultClient(), includeArchived);
}
/**
* Start a fluent search that will return all Persona assets.
* Additional conditions can be chained onto the returned search before any
* asset retrieval is attempted, ensuring all conditions are pushed-down for
* optimal retrieval.
*
* @param client connectivity to the Atlan tenant from which to retrieve the assets
* @param includeArchived when true, archived (soft-deleted) Personas will be included
* @return a fluent search that includes all Persona assets
*/
public static FluentSearch.FluentSearchBuilder, ?> select(AtlanClient client, boolean includeArchived) {
FluentSearch.FluentSearchBuilder, ?> builder = FluentSearch.builder(client).where(Asset.TYPE_NAME.eq(TYPE_NAME));
if (!includeArchived) {
builder.active();
}
return builder;
}
/**
* Reference to a Persona by GUID. Use this to create a relationship to this Persona,
* where the relationship should be replaced.
*
* @param guid the GUID of the Persona to reference
* @return reference to a Persona that can be used for defining a relationship to a Persona
*/
public static Persona refByGuid(String guid) {
return refByGuid(guid, Reference.SaveSemantic.REPLACE);
}
/**
* Reference to a Persona by GUID. Use this to create a relationship to this Persona,
* where you want to further control how that relationship should be updated (i.e. replaced,
* appended, or removed).
*
* @param guid the GUID of the Persona to reference
* @param semantic how to save this relationship (replace all with this, append it, or remove it)
* @return reference to a Persona that can be used for defining a relationship to a Persona
*/
public static Persona refByGuid(String guid, Reference.SaveSemantic semantic) {
return Persona._internal().guid(guid).semantic(semantic).build();
}
/**
* Reference to a Persona by qualifiedName. Use this to create a relationship to this Persona,
* where the relationship should be replaced.
*
* @param qualifiedName the qualifiedName of the Persona to reference
* @return reference to a Persona that can be used for defining a relationship to a Persona
*/
public static Persona refByQualifiedName(String qualifiedName) {
return refByQualifiedName(qualifiedName, Reference.SaveSemantic.REPLACE);
}
/**
* Reference to a Persona by qualifiedName. Use this to create a relationship to this Persona,
* where you want to further control how that relationship should be updated (i.e. replaced,
* appended, or removed).
*
* @param qualifiedName the qualifiedName of the Persona to reference
* @param semantic how to save this relationship (replace all with this, append it, or remove it)
* @return reference to a Persona that can be used for defining a relationship to a Persona
*/
public static Persona refByQualifiedName(String qualifiedName, Reference.SaveSemantic semantic) {
return Persona._internal().uniqueAttributes(UniqueAttributes.builder().qualifiedName(qualifiedName).build()).semantic(semantic).build();
}
/**
* Retrieves a Persona by one of its identifiers, complete with all of its relationships.
*
* @param id of the Persona to retrieve, either its GUID or its full qualifiedName
* @return the requested full Persona, complete with all of its relationships
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the Persona does not exist or the provided GUID is not a Persona
*/
@JsonIgnore
public static Persona get(String id) throws AtlanException {
return get(Atlan.getDefaultClient(), id);
}
/**
* Retrieves a Persona by one of its identifiers, complete with all of its relationships.
*
* @param client connectivity to the Atlan tenant from which to retrieve the asset
* @param id of the Persona to retrieve, either its GUID or its full qualifiedName
* @return the requested full Persona, complete with all of its relationships
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the Persona does not exist or the provided GUID is not a Persona
*/
@JsonIgnore
public static Persona get(AtlanClient client, String id) throws AtlanException {
return get(client, id, true);
}
/**
* Retrieves a Persona by one of its identifiers, optionally complete with all of its relationships.
*
* @param client connectivity to the Atlan tenant from which to retrieve the asset
* @param id of the Persona to retrieve, either its GUID or its full qualifiedName
* @param includeRelationships if true, all of the asset's relationships will also be retrieved; if false, no relationships will be retrieved
* @return the requested full Persona, optionally complete with all of its relationships
* @throws AtlanException on any error during the API invocation, such as the {@link NotFoundException} if the Persona does not exist or the provided GUID is not a Persona
*/
@JsonIgnore
public static Persona get(AtlanClient client, String id, boolean includeRelationships) throws AtlanException {
if (id == null) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_GUID, "(null)");
} else if (StringUtils.isUUID(id)) {
Asset asset = Asset.get(client, id, includeRelationships);
if (asset == null) {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_GUID, id);
} else if (asset instanceof Persona) {
return (Persona) asset;
} else {
throw new NotFoundException(ErrorCode.ASSET_NOT_TYPE_REQUESTED, id, TYPE_NAME);
}
} else {
Asset asset = Asset.get(client, TYPE_NAME, id, includeRelationships);
if (asset instanceof Persona) {
return (Persona) asset;
} else {
throw new NotFoundException(ErrorCode.ASSET_NOT_FOUND_BY_QN, id, TYPE_NAME);
}
}
}
/**
* Restore the archived (soft-deleted) Persona to active.
*
* @param qualifiedName for the Persona
* @return true if the Persona is now active, and false otherwise
* @throws AtlanException on any API problems
*/
public static boolean restore(String qualifiedName) throws AtlanException {
return restore(Atlan.getDefaultClient(), qualifiedName);
}
/**
* Restore the archived (soft-deleted) Persona to active.
*
* @param client connectivity to the Atlan tenant on which to restore the asset
* @param qualifiedName for the Persona
* @return true if the Persona is now active, and false otherwise
* @throws AtlanException on any API problems
*/
public static boolean restore(AtlanClient client, String qualifiedName) throws AtlanException {
return Asset.restore(client, TYPE_NAME, qualifiedName);
}
/**
* Builds the minimal object necessary to create a Persona.
*
* @param name of the Persona
* @return the minimal request necessary to create the Persona, as a builder
*/
public static PersonaBuilder, ?> creator(String name) {
return Persona._internal().guid("-" + ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1)).qualifiedName(name).name(name).displayName(name).isAccessControlEnabled(true).description("");
}
/**
* Builds the minimal object necessary to update a Persona.
*
* @param qualifiedName of the Persona
* @param name of the Persona
* @param isEnabled whether the Persona should be activated (true) or deactivated (false)
* @return the minimal request necessary to update the Persona, as a builder
*/
public static PersonaBuilder, ?> updater(String qualifiedName, String name, boolean isEnabled) {
return Persona._internal().guid("-" + ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1)).qualifiedName(qualifiedName).name(name).isAccessControlEnabled(isEnabled);
}
/**
* Builds the minimal object necessary to apply an update to a Persona, from a potentially
* more-complete Persona object.
*
* @return the minimal object necessary to update the Persona, as a builder
* @throws InvalidRequestException if any of the minimal set of required properties for Persona are not found in the initial object
*/
@Override
public PersonaBuilder, ?> trimToRequired() throws InvalidRequestException {
Map map = new HashMap<>();
map.put("qualifiedName", this.getQualifiedName());
map.put("name", this.getName());
validateRequired(TYPE_NAME, map);
if (this.getIsAccessControlEnabled() == null) {
throw new InvalidRequestException(ErrorCode.MISSING_REQUIRED_UPDATE_PARAM, TYPE_NAME, "isAccessControlEnabled");
}
return updater(this.getQualifiedName(), this.getName(), this.getIsAccessControlEnabled());
}
/**
* Find a Persona by its human-readable name. Only the bare minimum set of attributes and no
* relationships will be retrieved for the persona, if found.
*
* @param name of the Persona
* @return all Personas with that name, if found
* @throws AtlanException on any API problems
* @throws NotFoundException if the Persona does not exist
*/
public static List findByName(String name) throws AtlanException {
return findByName(name, (List) null);
}
/**
* Find a Persona by its human-readable name.
*
* @param name of the Persona
* @param attributes an optional collection of attributes (unchecked) to retrieve for the Persona
* @return all Personas with that name, if found
* @throws AtlanException on any API problems
* @throws NotFoundException if the Persona does not exist
*/
public static List findByName(String name, Collection attributes) throws AtlanException {
return findByName(Atlan.getDefaultClient(), name, attributes);
}
/**
* Find a Persona by its human-readable name.
*
* @param name of the Persona
* @param attributes an optional collection of attributes (checked) to retrieve for the Persona
* @return all Personas with that name, if found
* @throws AtlanException on any API problems
* @throws NotFoundException if the Persona does not exist
*/
public static List findByName(String name, List attributes) throws AtlanException {
return findByName(Atlan.getDefaultClient(), name, attributes);
}
/**
* Find a Persona by its human-readable name. Only the bare minimum set of attributes and no
* relationships will be retrieved for the persona, if found.
*
* @param client connectivity to the Atlan tenant in which to search for the Persona
* @param name of the Persona
* @return all Personas with that name, if found
* @throws AtlanException on any API problems
* @throws NotFoundException if the Persona does not exist
*/
public static List findByName(AtlanClient client, String name) throws AtlanException {
return findByName(client, name, (List) null);
}
/**
* Find a Persona by its human-readable name.
*
* @param client connectivity to the Atlan tenant in which to search for the Persona
* @param name of the Persona
* @param attributes an optional collection of attributes (unchecked) to retrieve for the Persona
* @return all Personas with that name, if found
* @throws AtlanException on any API problems
* @throws NotFoundException if the Persona does not exist
*/
public static List findByName(AtlanClient client, String name, Collection attributes) throws AtlanException {
List results = new ArrayList<>();
Persona.select(client).where(Persona.NAME.eq(name))._includesOnResults(attributes == null ? Collections.emptyList() : attributes).stream().filter(a -> a instanceof Persona).forEach(p -> results.add((Persona) p));
if (results.isEmpty()) {
throw new NotFoundException(ErrorCode.PERSONA_NOT_FOUND_BY_NAME, name);
}
return results;
}
/**
* Find a Persona by its human-readable name.
*
* @param client connectivity to the Atlan tenant in which to search for the Persona
* @param name of the Persona
* @param attributes an optional list of attributes (checked) to retrieve for the Persona
* @return all Personas with that name, if found
* @throws AtlanException on any API problems
* @throws NotFoundException if the Persona does not exist
*/
public static List findByName(AtlanClient client, String name, List attributes) throws AtlanException {
List results = new ArrayList<>();
Persona.select(client).where(Persona.NAME.eq(name)).includesOnResults(attributes == null ? Collections.emptyList() : attributes).stream().filter(a -> a instanceof Persona).forEach(p -> results.add((Persona) p));
if (results.isEmpty()) {
throw new NotFoundException(ErrorCode.PERSONA_NOT_FOUND_BY_NAME, name);
}
return results;
}
/**
* Builds the minimal object necessary to create a metadata policy for a Persona.
*
* @param name of the policy
* @param personaId unique identifier (GUID) of the persona for which to create this metadata policy
* @param policyType type of policy (for example allow vs deny)
* @param actions to include in the policy
* @param connectionQualifiedName unique name of the connection whose assets this policy will control
* @param resources against which to apply the policy, given in the form {@code entity:qualifiedNamePrefix}
* @return the minimal request necessary to create the metadata policy for the Persona, as a builder
*/
public static AuthPolicy.AuthPolicyBuilder, ?> createMetadataPolicy(String name, String personaId, AuthPolicyType policyType, Collection actions, String connectionQualifiedName, Collection resources) {
return AuthPolicy.creator(name).policyActions(actions).policyCategory(AuthPolicyCategory.PERSONA).policyType(policyType).connectionQualifiedName(connectionQualifiedName).policyResources(resources).policyResourceCategory(AuthPolicyResourceCategory.CUSTOM).policyServiceName("atlas").policySubCategory("metadata").accessControl(Persona.refByGuid(personaId));
}
/**
* Builds the minimal object necessary to create a data policy for a Persona.
*
* @param name of the policy
* @param personaId unique identifier (GUID) of the persona for which to create this data policy
* @param policyType type of policy (for example allow vs deny)
* @param connectionQualifiedName unique name of the connection whose assets this policy will control
* @param resources against which to apply the policy, given in the form {@code entity:qualifiedNamePrefix}
* @return the minimal request necessary to create the data policy for the Persona, as a builder
*/
public static AuthPolicy.AuthPolicyBuilder, ?> createDataPolicy(String name, String personaId, AuthPolicyType policyType, String connectionQualifiedName, Collection resources) {
return AuthPolicy.creator(name).policyAction(DataAction.SELECT).policyCategory(AuthPolicyCategory.PERSONA).policyType(policyType).connectionQualifiedName(connectionQualifiedName).policyResources(resources).policyResource("entity-type:*").policyResourceCategory(AuthPolicyResourceCategory.ENTITY).policyServiceName("heka").policySubCategory("data").accessControl(Persona.refByGuid(personaId));
}
/**
* Builds the minimal object necessary to create a glossary policy for a Persona.
*
* @param name of the policy
* @param personaId unique identifier (GUID) of the persona for which to create this glossary policy
* @param policyType type of policy (for example allow vs deny)
* @param actions to include in the policy
* @param resources against which to apply the policy, given in the form {@code entity:qualifiedName} of the glossary
* @return the minimal request necessary to create the glossary policy for the Persona, as a builder
*/
public static AuthPolicy.AuthPolicyBuilder, ?> createGlossaryPolicy(String name, String personaId, AuthPolicyType policyType, Collection actions, Collection resources) {
return AuthPolicy.creator(name).policyActions(actions).policyCategory(AuthPolicyCategory.PERSONA).policyType(policyType).policyResources(resources).policyResourceCategory(AuthPolicyResourceCategory.CUSTOM).policyServiceName("atlas").policySubCategory("glossary").accessControl(Persona.refByGuid(personaId));
}
/**
* Builds the minimal object necessary to create a domain policy for a Persona.
*
* @param name of the policy
* @param personaId unique identifier (GUID) of the persona for which to create this metadata policy
* @param actions to include in the policy
* @param resources against which to apply the policy, given in the form {@code entity:qualifiedName} where the qualifiedName is for a domain or subdomain
* @return the minimal request necessary to create the metadata policy for the Persona, as a builder
*/
public static AuthPolicy.AuthPolicyBuilder, ?> createDomainPolicy(String name, String personaId, Collection actions, Collection resources) {
return AuthPolicy.creator(name).policyActions(actions).policyCategory(AuthPolicyCategory.PERSONA).policyType(AuthPolicyType.ALLOW).policyResources(resources).policyResourceCategory(AuthPolicyResourceCategory.CUSTOM).policyServiceName("atlas").policySubCategory("domain").accessControl(Persona.refByGuid(personaId));
}
/**
* Remove the system description from a Persona.
*
* @param qualifiedName of the Persona
* @param name of the Persona
* @param isEnabled whether the Persona should be activated (true) or deactivated (false)
* @return the updated Persona, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static Persona removeDescription(String qualifiedName, String name, boolean isEnabled) throws AtlanException {
return removeDescription(Atlan.getDefaultClient(), qualifiedName, name, isEnabled);
}
/**
* Remove the system description from a Persona.
*
* @param client connectivity to the Atlan tenant from which to remove the Persona's description
* @param qualifiedName of the Persona
* @param name of the Persona
* @param isEnabled whether the Persona should be activated (true) or deactivated (false)
* @return the updated Persona, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static Persona removeDescription(AtlanClient client, String qualifiedName, String name, boolean isEnabled) throws AtlanException {
return (Persona) Asset.removeDescription(client, updater(qualifiedName, name, isEnabled));
}
/**
* Remove the user's description from a Persona.
*
* @param qualifiedName of the Persona
* @param name of the Persona
* @param isEnabled whether the Persona should be activated (true) or deactivated (false)
* @return the updated Persona, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static Persona removeUserDescription(String qualifiedName, String name, boolean isEnabled) throws AtlanException {
return removeUserDescription(Atlan.getDefaultClient(), qualifiedName, name, isEnabled);
}
/**
* Remove the user's description from a Persona.
*
* @param client connectivity to the Atlan tenant from which to remove the Persona's description
* @param qualifiedName of the Persona
* @param name of the Persona
* @param isEnabled whether the Persona should be activated (true) or deactivated (false)
* @return the updated Persona, or null if the removal failed
* @throws AtlanException on any API problems
*/
public static Persona removeUserDescription(AtlanClient client, String qualifiedName, String name, boolean isEnabled) throws AtlanException {
return (Persona) Asset.removeUserDescription(client, updater(qualifiedName, name, isEnabled));
}
/**
* Add Atlan tags to a Persona, without replacing existing Atlan tags linked to the Persona.
* Note: this operation must make two API calls — one to retrieve the Persona's existing Atlan tags,
* and a second to append the new Atlan tags.
*
* @param qualifiedName of the Persona
* @param atlanTagNames human-readable names of the Atlan tags to add
* @throws AtlanException on any API problems
* @return the updated Persona
*/
public static Persona appendAtlanTags(String qualifiedName, List atlanTagNames) throws AtlanException {
return appendAtlanTags(Atlan.getDefaultClient(), qualifiedName, atlanTagNames);
}
/**
* Add Atlan tags to a Persona, without replacing existing Atlan tags linked to the Persona.
* Note: this operation must make two API calls — one to retrieve the Persona's existing Atlan tags,
* and a second to append the new Atlan tags.
*
* @param client connectivity to the Atlan tenant on which to append Atlan tags to the Persona
* @param qualifiedName of the Persona
* @param atlanTagNames human-readable names of the Atlan tags to add
* @throws AtlanException on any API problems
* @return the updated Persona
*/
public static Persona appendAtlanTags(AtlanClient client, String qualifiedName, List atlanTagNames) throws AtlanException {
return (Persona) Asset.appendAtlanTags(client, TYPE_NAME, qualifiedName, atlanTagNames);
}
/**
* Add Atlan tags to a Persona, without replacing existing Atlan tags linked to the Persona.
* Note: this operation must make two API calls — one to retrieve the Persona's existing Atlan tags,
* and a second to append the new Atlan tags.
*
* @param qualifiedName of the Persona
* @param atlanTagNames human-readable names of the Atlan tags to add
* @param propagate whether to propagate the Atlan tag (true) or not (false)
* @param removePropagationsOnDelete whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)
* @param restrictLineagePropagation whether to avoid propagating through lineage (true) or do propagate through lineage (false)
* @throws AtlanException on any API problems
* @return the updated Persona
*/
public static Persona appendAtlanTags(String qualifiedName, List atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException {
return appendAtlanTags(Atlan.getDefaultClient(), qualifiedName, atlanTagNames, propagate, removePropagationsOnDelete, restrictLineagePropagation);
}
/**
* Add Atlan tags to a Persona, without replacing existing Atlan tags linked to the Persona.
* Note: this operation must make two API calls — one to retrieve the Persona's existing Atlan tags,
* and a second to append the new Atlan tags.
*
* @param client connectivity to the Atlan tenant on which to append Atlan tags to the Persona
* @param qualifiedName of the Persona
* @param atlanTagNames human-readable names of the Atlan tags to add
* @param propagate whether to propagate the Atlan tag (true) or not (false)
* @param removePropagationsOnDelete whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)
* @param restrictLineagePropagation whether to avoid propagating through lineage (true) or do propagate through lineage (false)
* @throws AtlanException on any API problems
* @return the updated Persona
*/
public static Persona appendAtlanTags(AtlanClient client, String qualifiedName, List atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException {
return (Persona) Asset.appendAtlanTags(client, TYPE_NAME, qualifiedName, atlanTagNames, propagate, removePropagationsOnDelete, restrictLineagePropagation);
}
/**
* Remove an Atlan tag from a Persona.
*
* @param qualifiedName of the Persona
* @param atlanTagName human-readable name of the Atlan tag to remove
* @throws AtlanException on any API problems, or if the Atlan tag does not exist on the Persona
*/
public static void removeAtlanTag(String qualifiedName, String atlanTagName) throws AtlanException {
removeAtlanTag(Atlan.getDefaultClient(), qualifiedName, atlanTagName);
}
/**
* Remove an Atlan tag from a Persona.
*
* @param client connectivity to the Atlan tenant from which to remove an Atlan tag from a Persona
* @param qualifiedName of the Persona
* @param atlanTagName human-readable name of the Atlan tag to remove
* @throws AtlanException on any API problems, or if the Atlan tag does not exist on the Persona
*/
public static void removeAtlanTag(AtlanClient client, String qualifiedName, String atlanTagName) throws AtlanException {
Asset.removeAtlanTag(client, TYPE_NAME, qualifiedName, atlanTagName);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static String $default$typeName() {
return TYPE_NAME;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class PersonaBuilder> extends Asset.AssetBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private boolean typeName$set;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String typeName$value;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String channelLink;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String defaultNavigation;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList denyAssetFilters;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList denyAssetTabs;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList denyAssetTypes;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList denyCustomMetadataGuids;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList denyNavigationPages;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList displayPreferences;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Boolean isAccessControlEnabled;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList personaGroups;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList personaUsers;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private java.util.ArrayList policies;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String roleId;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
Persona.PersonaBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final Persona instance, final Persona.PersonaBuilder, ?> b) {
b.typeName(instance.typeName);
b.channelLink(instance.channelLink);
b.defaultNavigation(instance.defaultNavigation);
b.denyAssetFilters(instance.denyAssetFilters == null ? java.util.Collections.emptySortedSet() : instance.denyAssetFilters);
b.denyAssetTabs(instance.denyAssetTabs == null ? java.util.Collections.emptySortedSet() : instance.denyAssetTabs);
b.denyAssetTypes(instance.denyAssetTypes == null ? java.util.Collections.emptySortedSet() : instance.denyAssetTypes);
b.denyCustomMetadataGuids(instance.denyCustomMetadataGuids == null ? java.util.Collections.emptySortedSet() : instance.denyCustomMetadataGuids);
b.denyNavigationPages(instance.denyNavigationPages == null ? java.util.Collections.emptySortedSet() : instance.denyNavigationPages);
b.displayPreferences(instance.displayPreferences == null ? java.util.Collections.emptySortedSet() : instance.displayPreferences);
b.isAccessControlEnabled(instance.isAccessControlEnabled);
b.personaGroups(instance.personaGroups == null ? java.util.Collections.emptySortedSet() : instance.personaGroups);
b.personaUsers(instance.personaUsers == null ? java.util.Collections.emptySortedSet() : instance.personaUsers);
b.policies(instance.policies == null ? java.util.Collections.emptySortedSet() : instance.policies);
b.roleId(instance.roleId);
}
/**
* Fixed typeName for Personas.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B typeName(final String typeName) {
this.typeName$value = typeName;
typeName$set = true;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B channelLink(final String channelLink) {
this.channelLink = channelLink;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B defaultNavigation(final String defaultNavigation) {
this.defaultNavigation = defaultNavigation;
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyAssetFilter(final AssetFilterGroup denyAssetFilter) {
if (this.denyAssetFilters == null) this.denyAssetFilters = new java.util.ArrayList();
this.denyAssetFilters.add(denyAssetFilter);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyAssetFilters(final java.util.Collection extends AssetFilterGroup> denyAssetFilters) {
if (denyAssetFilters == null) {
throw new java.lang.NullPointerException("denyAssetFilters cannot be null");
}
if (this.denyAssetFilters == null) this.denyAssetFilters = new java.util.ArrayList();
this.denyAssetFilters.addAll(denyAssetFilters);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearDenyAssetFilters() {
if (this.denyAssetFilters != null) this.denyAssetFilters.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyAssetTab(final AssetSidebarTab denyAssetTab) {
if (this.denyAssetTabs == null) this.denyAssetTabs = new java.util.ArrayList();
this.denyAssetTabs.add(denyAssetTab);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyAssetTabs(final java.util.Collection extends AssetSidebarTab> denyAssetTabs) {
if (denyAssetTabs == null) {
throw new java.lang.NullPointerException("denyAssetTabs cannot be null");
}
if (this.denyAssetTabs == null) this.denyAssetTabs = new java.util.ArrayList();
this.denyAssetTabs.addAll(denyAssetTabs);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearDenyAssetTabs() {
if (this.denyAssetTabs != null) this.denyAssetTabs.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyAssetType(final String denyAssetType) {
if (this.denyAssetTypes == null) this.denyAssetTypes = new java.util.ArrayList();
this.denyAssetTypes.add(denyAssetType);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyAssetTypes(final java.util.Collection extends String> denyAssetTypes) {
if (denyAssetTypes == null) {
throw new java.lang.NullPointerException("denyAssetTypes cannot be null");
}
if (this.denyAssetTypes == null) this.denyAssetTypes = new java.util.ArrayList();
this.denyAssetTypes.addAll(denyAssetTypes);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearDenyAssetTypes() {
if (this.denyAssetTypes != null) this.denyAssetTypes.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyCustomMetadataGuid(final String denyCustomMetadataGuid) {
if (this.denyCustomMetadataGuids == null) this.denyCustomMetadataGuids = new java.util.ArrayList();
this.denyCustomMetadataGuids.add(denyCustomMetadataGuid);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyCustomMetadataGuids(final java.util.Collection extends String> denyCustomMetadataGuids) {
if (denyCustomMetadataGuids == null) {
throw new java.lang.NullPointerException("denyCustomMetadataGuids cannot be null");
}
if (this.denyCustomMetadataGuids == null) this.denyCustomMetadataGuids = new java.util.ArrayList();
this.denyCustomMetadataGuids.addAll(denyCustomMetadataGuids);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearDenyCustomMetadataGuids() {
if (this.denyCustomMetadataGuids != null) this.denyCustomMetadataGuids.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyNavigationPage(final String denyNavigationPage) {
if (this.denyNavigationPages == null) this.denyNavigationPages = new java.util.ArrayList();
this.denyNavigationPages.add(denyNavigationPage);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B denyNavigationPages(final java.util.Collection extends String> denyNavigationPages) {
if (denyNavigationPages == null) {
throw new java.lang.NullPointerException("denyNavigationPages cannot be null");
}
if (this.denyNavigationPages == null) this.denyNavigationPages = new java.util.ArrayList();
this.denyNavigationPages.addAll(denyNavigationPages);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearDenyNavigationPages() {
if (this.denyNavigationPages != null) this.denyNavigationPages.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B displayPreference(final String displayPreference) {
if (this.displayPreferences == null) this.displayPreferences = new java.util.ArrayList();
this.displayPreferences.add(displayPreference);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B displayPreferences(final java.util.Collection extends String> displayPreferences) {
if (displayPreferences == null) {
throw new java.lang.NullPointerException("displayPreferences cannot be null");
}
if (this.displayPreferences == null) this.displayPreferences = new java.util.ArrayList();
this.displayPreferences.addAll(displayPreferences);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearDisplayPreferences() {
if (this.displayPreferences != null) this.displayPreferences.clear();
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B isAccessControlEnabled(final Boolean isAccessControlEnabled) {
this.isAccessControlEnabled = isAccessControlEnabled;
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B personaGroup(final String personaGroup) {
if (this.personaGroups == null) this.personaGroups = new java.util.ArrayList();
this.personaGroups.add(personaGroup);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B personaGroups(final java.util.Collection extends String> personaGroups) {
if (personaGroups == null) {
throw new java.lang.NullPointerException("personaGroups cannot be null");
}
if (this.personaGroups == null) this.personaGroups = new java.util.ArrayList();
this.personaGroups.addAll(personaGroups);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearPersonaGroups() {
if (this.personaGroups != null) this.personaGroups.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B personaUser(final String personaUser) {
if (this.personaUsers == null) this.personaUsers = new java.util.ArrayList();
this.personaUsers.add(personaUser);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B personaUsers(final java.util.Collection extends String> personaUsers) {
if (personaUsers == null) {
throw new java.lang.NullPointerException("personaUsers cannot be null");
}
if (this.personaUsers == null) this.personaUsers = new java.util.ArrayList();
this.personaUsers.addAll(personaUsers);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearPersonaUsers() {
if (this.personaUsers != null) this.personaUsers.clear();
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B policy(final IAuthPolicy policy) {
if (this.policies == null) this.policies = new java.util.ArrayList();
this.policies.add(policy);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B policies(final java.util.Collection extends IAuthPolicy> policies) {
if (policies == null) {
throw new java.lang.NullPointerException("policies cannot be null");
}
if (this.policies == null) this.policies = new java.util.ArrayList();
this.policies.addAll(policies);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clearPolicies() {
if (this.policies != null) this.policies.clear();
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B roleId(final String roleId) {
this.roleId = roleId;
return self();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected abstract B self();
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public abstract C build();
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "Persona.PersonaBuilder(super=" + super.toString() + ", typeName$value=" + this.typeName$value + ", channelLink=" + this.channelLink + ", defaultNavigation=" + this.defaultNavigation + ", denyAssetFilters=" + this.denyAssetFilters + ", denyAssetTabs=" + this.denyAssetTabs + ", denyAssetTypes=" + this.denyAssetTypes + ", denyCustomMetadataGuids=" + this.denyCustomMetadataGuids + ", denyNavigationPages=" + this.denyNavigationPages + ", displayPreferences=" + this.displayPreferences + ", isAccessControlEnabled=" + this.isAccessControlEnabled + ", personaGroups=" + this.personaGroups + ", personaUsers=" + this.personaUsers + ", policies=" + this.policies + ", roleId=" + this.roleId + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static final class PersonaBuilderImpl extends Persona.PersonaBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private PersonaBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected Persona.PersonaBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Persona build() {
return new Persona(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected Persona(final Persona.PersonaBuilder, ?> b) {
super(b);
if (b.typeName$set) this.typeName = b.typeName$value;
else this.typeName = Persona.$default$typeName();
this.channelLink = b.channelLink;
this.defaultNavigation = b.defaultNavigation;
java.util.SortedSet denyAssetFilters = new java.util.TreeSet();
if (b.denyAssetFilters != null) denyAssetFilters.addAll(b.denyAssetFilters);
denyAssetFilters = java.util.Collections.unmodifiableSortedSet(denyAssetFilters);
this.denyAssetFilters = denyAssetFilters;
java.util.SortedSet denyAssetTabs = new java.util.TreeSet();
if (b.denyAssetTabs != null) denyAssetTabs.addAll(b.denyAssetTabs);
denyAssetTabs = java.util.Collections.unmodifiableSortedSet(denyAssetTabs);
this.denyAssetTabs = denyAssetTabs;
java.util.SortedSet denyAssetTypes = new java.util.TreeSet();
if (b.denyAssetTypes != null) denyAssetTypes.addAll(b.denyAssetTypes);
denyAssetTypes = java.util.Collections.unmodifiableSortedSet(denyAssetTypes);
this.denyAssetTypes = denyAssetTypes;
java.util.SortedSet denyCustomMetadataGuids = new java.util.TreeSet();
if (b.denyCustomMetadataGuids != null) denyCustomMetadataGuids.addAll(b.denyCustomMetadataGuids);
denyCustomMetadataGuids = java.util.Collections.unmodifiableSortedSet(denyCustomMetadataGuids);
this.denyCustomMetadataGuids = denyCustomMetadataGuids;
java.util.SortedSet denyNavigationPages = new java.util.TreeSet();
if (b.denyNavigationPages != null) denyNavigationPages.addAll(b.denyNavigationPages);
denyNavigationPages = java.util.Collections.unmodifiableSortedSet(denyNavigationPages);
this.denyNavigationPages = denyNavigationPages;
java.util.SortedSet displayPreferences = new java.util.TreeSet();
if (b.displayPreferences != null) displayPreferences.addAll(b.displayPreferences);
displayPreferences = java.util.Collections.unmodifiableSortedSet(displayPreferences);
this.displayPreferences = displayPreferences;
this.isAccessControlEnabled = b.isAccessControlEnabled;
java.util.SortedSet personaGroups = new java.util.TreeSet();
if (b.personaGroups != null) personaGroups.addAll(b.personaGroups);
personaGroups = java.util.Collections.unmodifiableSortedSet(personaGroups);
this.personaGroups = personaGroups;
java.util.SortedSet personaUsers = new java.util.TreeSet();
if (b.personaUsers != null) personaUsers.addAll(b.personaUsers);
personaUsers = java.util.Collections.unmodifiableSortedSet(personaUsers);
this.personaUsers = personaUsers;
java.util.SortedSet policies = new java.util.TreeSet();
if (b.policies != null) policies.addAll(b.policies);
policies = java.util.Collections.unmodifiableSortedSet(policies);
this.policies = policies;
this.roleId = b.roleId;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static Persona.PersonaBuilder, ?> _internal() {
return new Persona.PersonaBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Persona.PersonaBuilder, ?> toBuilder() {
return new Persona.PersonaBuilderImpl().$fillValuesFrom(this);
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getChannelLink() {
return this.channelLink;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getDefaultNavigation() {
return this.defaultNavigation;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getDenyAssetFilters() {
return this.denyAssetFilters;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getDenyAssetTabs() {
return this.denyAssetTabs;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getDenyAssetTypes() {
return this.denyAssetTypes;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getDenyCustomMetadataGuids() {
return this.denyCustomMetadataGuids;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getDenyNavigationPages() {
return this.denyNavigationPages;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getDisplayPreferences() {
return this.displayPreferences;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getIsAccessControlEnabled() {
return this.isAccessControlEnabled;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getPersonaGroups() {
return this.personaGroups;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getPersonaUsers() {
return this.personaUsers;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getPolicies() {
return this.policies;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getRoleId() {
return this.roleId;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Persona)) return false;
final Persona other = (Persona) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$isAccessControlEnabled = this.getIsAccessControlEnabled();
final java.lang.Object other$isAccessControlEnabled = other.getIsAccessControlEnabled();
if (this$isAccessControlEnabled == null ? other$isAccessControlEnabled != null : !this$isAccessControlEnabled.equals(other$isAccessControlEnabled)) return false;
final java.lang.Object this$typeName = this.getTypeName();
final java.lang.Object other$typeName = other.getTypeName();
if (this$typeName == null ? other$typeName != null : !this$typeName.equals(other$typeName)) return false;
final java.lang.Object this$channelLink = this.getChannelLink();
final java.lang.Object other$channelLink = other.getChannelLink();
if (this$channelLink == null ? other$channelLink != null : !this$channelLink.equals(other$channelLink)) return false;
final java.lang.Object this$defaultNavigation = this.getDefaultNavigation();
final java.lang.Object other$defaultNavigation = other.getDefaultNavigation();
if (this$defaultNavigation == null ? other$defaultNavigation != null : !this$defaultNavigation.equals(other$defaultNavigation)) return false;
final java.lang.Object this$denyAssetFilters = this.getDenyAssetFilters();
final java.lang.Object other$denyAssetFilters = other.getDenyAssetFilters();
if (this$denyAssetFilters == null ? other$denyAssetFilters != null : !this$denyAssetFilters.equals(other$denyAssetFilters)) return false;
final java.lang.Object this$denyAssetTabs = this.getDenyAssetTabs();
final java.lang.Object other$denyAssetTabs = other.getDenyAssetTabs();
if (this$denyAssetTabs == null ? other$denyAssetTabs != null : !this$denyAssetTabs.equals(other$denyAssetTabs)) return false;
final java.lang.Object this$denyAssetTypes = this.getDenyAssetTypes();
final java.lang.Object other$denyAssetTypes = other.getDenyAssetTypes();
if (this$denyAssetTypes == null ? other$denyAssetTypes != null : !this$denyAssetTypes.equals(other$denyAssetTypes)) return false;
final java.lang.Object this$denyCustomMetadataGuids = this.getDenyCustomMetadataGuids();
final java.lang.Object other$denyCustomMetadataGuids = other.getDenyCustomMetadataGuids();
if (this$denyCustomMetadataGuids == null ? other$denyCustomMetadataGuids != null : !this$denyCustomMetadataGuids.equals(other$denyCustomMetadataGuids)) return false;
final java.lang.Object this$denyNavigationPages = this.getDenyNavigationPages();
final java.lang.Object other$denyNavigationPages = other.getDenyNavigationPages();
if (this$denyNavigationPages == null ? other$denyNavigationPages != null : !this$denyNavigationPages.equals(other$denyNavigationPages)) return false;
final java.lang.Object this$displayPreferences = this.getDisplayPreferences();
final java.lang.Object other$displayPreferences = other.getDisplayPreferences();
if (this$displayPreferences == null ? other$displayPreferences != null : !this$displayPreferences.equals(other$displayPreferences)) return false;
final java.lang.Object this$personaGroups = this.getPersonaGroups();
final java.lang.Object other$personaGroups = other.getPersonaGroups();
if (this$personaGroups == null ? other$personaGroups != null : !this$personaGroups.equals(other$personaGroups)) return false;
final java.lang.Object this$personaUsers = this.getPersonaUsers();
final java.lang.Object other$personaUsers = other.getPersonaUsers();
if (this$personaUsers == null ? other$personaUsers != null : !this$personaUsers.equals(other$personaUsers)) return false;
final java.lang.Object this$policies = this.getPolicies();
final java.lang.Object other$policies = other.getPolicies();
if (this$policies == null ? other$policies != null : !this$policies.equals(other$policies)) return false;
final java.lang.Object this$roleId = this.getRoleId();
final java.lang.Object other$roleId = other.getRoleId();
if (this$roleId == null ? other$roleId != null : !this$roleId.equals(other$roleId)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Persona;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $isAccessControlEnabled = this.getIsAccessControlEnabled();
result = result * PRIME + ($isAccessControlEnabled == null ? 43 : $isAccessControlEnabled.hashCode());
final java.lang.Object $typeName = this.getTypeName();
result = result * PRIME + ($typeName == null ? 43 : $typeName.hashCode());
final java.lang.Object $channelLink = this.getChannelLink();
result = result * PRIME + ($channelLink == null ? 43 : $channelLink.hashCode());
final java.lang.Object $defaultNavigation = this.getDefaultNavigation();
result = result * PRIME + ($defaultNavigation == null ? 43 : $defaultNavigation.hashCode());
final java.lang.Object $denyAssetFilters = this.getDenyAssetFilters();
result = result * PRIME + ($denyAssetFilters == null ? 43 : $denyAssetFilters.hashCode());
final java.lang.Object $denyAssetTabs = this.getDenyAssetTabs();
result = result * PRIME + ($denyAssetTabs == null ? 43 : $denyAssetTabs.hashCode());
final java.lang.Object $denyAssetTypes = this.getDenyAssetTypes();
result = result * PRIME + ($denyAssetTypes == null ? 43 : $denyAssetTypes.hashCode());
final java.lang.Object $denyCustomMetadataGuids = this.getDenyCustomMetadataGuids();
result = result * PRIME + ($denyCustomMetadataGuids == null ? 43 : $denyCustomMetadataGuids.hashCode());
final java.lang.Object $denyNavigationPages = this.getDenyNavigationPages();
result = result * PRIME + ($denyNavigationPages == null ? 43 : $denyNavigationPages.hashCode());
final java.lang.Object $displayPreferences = this.getDisplayPreferences();
result = result * PRIME + ($displayPreferences == null ? 43 : $displayPreferences.hashCode());
final java.lang.Object $personaGroups = this.getPersonaGroups();
result = result * PRIME + ($personaGroups == null ? 43 : $personaGroups.hashCode());
final java.lang.Object $personaUsers = this.getPersonaUsers();
result = result * PRIME + ($personaUsers == null ? 43 : $personaUsers.hashCode());
final java.lang.Object $policies = this.getPolicies();
result = result * PRIME + ($policies == null ? 43 : $policies.hashCode());
final java.lang.Object $roleId = this.getRoleId();
result = result * PRIME + ($roleId == null ? 43 : $roleId.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "Persona(super=" + super.toString() + ", typeName=" + this.getTypeName() + ", channelLink=" + this.getChannelLink() + ", defaultNavigation=" + this.getDefaultNavigation() + ", denyAssetFilters=" + this.getDenyAssetFilters() + ", denyAssetTabs=" + this.getDenyAssetTabs() + ", denyAssetTypes=" + this.getDenyAssetTypes() + ", denyCustomMetadataGuids=" + this.getDenyCustomMetadataGuids() + ", denyNavigationPages=" + this.getDenyNavigationPages() + ", displayPreferences=" + this.getDisplayPreferences() + ", isAccessControlEnabled=" + this.getIsAccessControlEnabled() + ", personaGroups=" + this.getPersonaGroups() + ", personaUsers=" + this.getPersonaUsers() + ", policies=" + this.getPolicies() + ", roleId=" + this.getRoleId() + ")";
}
/**
* Fixed typeName for Personas.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getTypeName() {
return this.typeName;
}
}