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 Summary
Constructors -
Method Summary
Modifier 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
-
UserAccount
public UserAccount()Default constructor -
UserAccount
Copy constructor
-
-
Method Details
-
getUserName
Return the name of the user.- Returns:
- string name
-
setUserName
Set up the name of the user.- Parameters:
userName- string name
-
getAccountType
Return whether this account for a person or automation.- Returns:
- account type enum
-
setAccountType
Set up whether this account for a person or automation.- Parameters:
userAccountType- enum
-
getEmployeeNumber
Return the employee number (maybe called personnel number, or similar name).- Returns:
- string
-
setEmployeeNumber
Set up the employee number (maybe called personnel number, or similar name).- Parameters:
employeeNumber- string
-
getEmployeeType
Return the type of employee (for example, are they full time, contractor etc). Each organization has their own definitions for these values.- Returns:
- string
-
setEmployeeType
Set 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
-
getDisplayName
Return the display name for this user (for example, the preferred name of a person).- Returns:
- string
-
setDisplayName
Set up the display name for this user (for example, the preferred name of a person).- Parameters:
displayName- string
-
getGivenName
Return a person's given name.- Returns:
- string
-
setGivenName
Set up a person's given name.- Parameters:
givenName- string
-
getSurname
Return a person's surname.- Returns:
- string
-
setSurname
Set up a person's surname.- Parameters:
surname- string
-
getEmail
Return a person's contact email.- Returns:
- string
-
setEmail
Set up a person's contact email.- Parameters:
email- string
-
getManager
Return a person's manager. Typically expressed as a distinguished name. This is typically the person who authorizes access for this person.- Returns:
- string
-
setManager
Set 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
-
getDistinguishedName
Return the distinguished name of the user.- Returns:
- string name
-
setDistinguishedName
Set up the distinguished name of the user.- Parameters:
distinguishedName- string name
-
getSecurityRoles
Return the list of security roles assigned to the user.- Returns:
- list of names
-
setSecurityRoles
Set up the list of security roles assigned to the user.- Parameters:
securityRoles- list of names
-
getSecurityGroups
Return the list of security roles assigned to the user.- Returns:
- list of names
-
setSecurityGroups
Set upi the list of security groups that the user belongs to.- Parameters:
securityGroups- list of names
-
getZoneAccess
Return details of the actions that are permitted on particular Governance Zones.- Returns:
- map of accesses
-
setZoneAccess
Set up details of the actions that are permitted on particular Governance Zones.- Parameters:
zoneAccess- map of accesses
-
getOtherProperties
Return any other properties that should be shared with security providers.- Returns:
- property map
-
setOtherProperties
Set up any other properties that should be shared with security providers.- Parameters:
otherProperties- property map
-
getUserAccountStatus
Return the status of the account.- Returns:
- status enum
-
setUserAccountStatus
Set up the status of the account.- Parameters:
userAccountStatus- status enum
-
getSecrets
Return the secrets associated with the user account.- Returns:
- a map of secret names to secret values
-
setSecrets
Set up the secrets associated with the user account.- Parameters:
secrets- a map of secret names to secret values
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Hash of properties
-