Class UserAccount
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.users.UserAccount
- Direct Known Subclasses:
- OpenMetadataUserAccount
UserAccount described details of a user account for the open metadata ecosystem.  This could be
 for a person or system.  The fields are informed from the LDAP inetOrgPerson attributes (see RFC 2798).
 However, many organizations develop their own definitions of a user and so this object includes
 otherProperties to allow for extensions.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return whether this account for a person or automation.Return the display name for this user (for example, the preferred name of a person).Return the distinguished name of the user.getEmail()Return a person's contact email.Return the employee number (maybe called personnel number, or similar name).Return the type of employee (for example, are they full time, contractor etc).Return a person's given name.Return a person's manager.Return any other properties that should be shared with security providers.Return the secrets associated with the user account.Return the list of security roles assigned to the user.Return the list of security roles assigned to the user.Return a person's surname.Return the status of the account.Return the name of the user.Return details of the actions that are permitted on particular Governance Zones.inthashCode()Hash of propertiesvoidsetAccountType(UserAccountType userAccountType) Set up whether this account for a person or automation.voidsetDisplayName(String displayName) Set up the display name for this user (for example, the preferred name of a person).voidsetDistinguishedName(String distinguishedName) Set up the distinguished name of the user.voidSet up a person's contact email.voidsetEmployeeNumber(String employeeNumber) Set up the employee number (maybe called personnel number, or similar name).voidsetEmployeeType(String employeeType) Set up the type of employee contract (for example, are they full time, contractor etc).voidsetGivenName(String givenName) Set up a person's given name.voidsetManager(String manager) Set up a person's manager.voidsetOtherProperties(Map<String, Object> otherProperties) Set up any other properties that should be shared with security providers.voidsetSecrets(Map<String, String> secrets) Set up the secrets associated with the user account.voidsetSecurityGroups(List<String> securityGroups) Set upi the list of security groups that the user belongs to.voidsetSecurityRoles(List<String> securityRoles) Set up the list of security roles assigned to the user.voidsetSurname(String surname) Set up a person's surname.voidsetUserAccountStatus(UserAccountStatus userAccountStatus) Set up the status of the account.voidsetUserName(String userName) Set up the name of the user.voidsetZoneAccess(Map<String, List<AccessOperation>> zoneAccess) Set up details of the actions that are permitted on particular Governance Zones.toString()Standard toString method.
- 
Constructor Details- 
UserAccountpublic UserAccount()Default constructor
- 
UserAccountCopy constructor
 
- 
- 
Method Details- 
getUserNameReturn the name of the user.- Returns:
- string name
 
- 
setUserNameSet up the name of the user.- Parameters:
- userName- string name
 
- 
getAccountTypeReturn whether this account for a person or automation.- Returns:
- account type enum
 
- 
setAccountTypeSet up whether this account for a person or automation.- Parameters:
- userAccountType- enum
 
- 
getEmployeeNumberReturn the employee number (maybe called personnel number, or similar name).- Returns:
- string
 
- 
setEmployeeNumberSet up the employee number (maybe called personnel number, or similar name).- Parameters:
- employeeNumber- string
 
- 
getEmployeeTypeReturn the type of employee (for example, are they full time, contractor etc). Each organization has their own definitions for these values.- Returns:
- string
 
- 
setEmployeeTypeSet up the type of employee contract (for example, are they full time, contractor etc). Each organization has their own definitions for these values.- Parameters:
- employeeType- string
 
- 
getDisplayNameReturn the display name for this user (for example, the preferred name of a person).- Returns:
- string
 
- 
setDisplayNameSet up the display name for this user (for example, the preferred name of a person).- Parameters:
- displayName- string
 
- 
getGivenNameReturn a person's given name.- Returns:
- string
 
- 
setGivenNameSet up a person's given name.- Parameters:
- givenName- string
 
- 
getSurnameReturn a person's surname.- Returns:
- string
 
- 
setSurnameSet up a person's surname.- Parameters:
- surname- string
 
- 
getEmailReturn a person's contact email.- Returns:
- string
 
- 
setEmailSet up a person's contact email.- Parameters:
- email- string
 
- 
getManagerReturn a person's manager. Typically expressed as a distinguished name. This is typically the person who authorizes access for this person.- Returns:
- string
 
- 
setManagerSet up a person's manager. Typically expressed as a distinguished name. This is typically the person who authorizes access for this person.- Parameters:
- manager- string
 
- 
getDistinguishedNameReturn the distinguished name of the user.- Returns:
- string name
 
- 
setDistinguishedNameSet up the distinguished name of the user.- Parameters:
- distinguishedName- string name
 
- 
getSecurityRolesReturn the list of security roles assigned to the user.- Returns:
- list of names
 
- 
setSecurityRolesSet up the list of security roles assigned to the user.- Parameters:
- securityRoles- list of names
 
- 
getSecurityGroupsReturn the list of security roles assigned to the user.- Returns:
- list of names
 
- 
setSecurityGroupsSet upi the list of security groups that the user belongs to.- Parameters:
- securityGroups- list of names
 
- 
getZoneAccessReturn details of the actions that are permitted on particular Governance Zones.- Returns:
- map of accesses
 
- 
setZoneAccessSet up details of the actions that are permitted on particular Governance Zones.- Parameters:
- zoneAccess- map of accesses
 
- 
getOtherPropertiesReturn any other properties that should be shared with security providers.- Returns:
- property map
 
- 
setOtherPropertiesSet up any other properties that should be shared with security providers.- Parameters:
- otherProperties- property map
 
- 
getUserAccountStatusReturn the status of the account.- Returns:
- status enum
 
- 
setUserAccountStatusSet up the status of the account.- Parameters:
- userAccountStatus- status enum
 
- 
getSecretsReturn the secrets associated with the user account.- Returns:
- a map of secret names to secret values
 
- 
setSecretsSet up the secrets associated with the user account.- Parameters:
- secrets- a map of secret names to secret values
 
- 
toStringStandard toString method.
- 
equalsCompare the values of the supplied object with those stored in the current object.
- 
hashCodepublic int hashCode()Hash of properties
 
-