Class PersonalRoleProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.digitalservice.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.digitalservice.properties.PersonalRoleProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PersonRoleProperties
public class PersonalRoleProperties extends ReferenceableProperties
PersonalRoleProperties provides a structure for describe a role assigned to a person.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersonalRoleProperties()Default constructorPersonalRoleProperties(PersonalRoleProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetDescription()Return the description of the job role.intgetDomainIdentifier()Return the identifier of the governance domain that this role belongs to.StringgetRoleId()Return the unique identifier for this job role/appointment typically from an HR system.StringgetScope()Return the context in which the person is appointed.StringgetTitle()Return the job role title.inthashCode()Return hash code for this objectvoidsetDescription(String description)Set up the description of the job role.voidsetDomainIdentifier(int domainIdentifier)Set up the identifier of the governance domain that this role belongs to.voidsetRoleId(String roleId)Set up the unique identifier for this job role/appointment.voidsetScope(String scope)Set up the context in which the person is appointed.voidsetTitle(String title)Set up the job role title.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.digitalservice.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName
-
-
-
-
Constructor Detail
-
PersonalRoleProperties
public PersonalRoleProperties()
Default constructor
-
PersonalRoleProperties
public PersonalRoleProperties(PersonalRoleProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getRoleId
public String getRoleId()
Return the unique identifier for this job role/appointment typically from an HR system.- Returns:
- unique identifier
-
setRoleId
public void setRoleId(String roleId)
Set up the unique identifier for this job role/appointment.- Parameters:
roleId- unique identifier
-
getScope
public String getScope()
Return the context in which the person is appointed. This may be an organizational scope, location, or scope of assets.- Returns:
- string description
-
setScope
public void setScope(String scope)
Set up the context in which the person is appointed. This may be an organizational scope, location, or scope of assets.- Parameters:
scope- string description
-
getTitle
public String getTitle()
Return the job role title.- Returns:
- string name
-
setTitle
public void setTitle(String title)
Set up the job role title.- Parameters:
title- string name
-
getDescription
public String getDescription()
Return the description of the job role.- Returns:
- string description
-
setDescription
public void setDescription(String description)
Set up the description of the job role.- Parameters:
description- string description
-
getDomainIdentifier
public int getDomainIdentifier()
Return the identifier of the governance domain that this role belongs to. Zero means that the role is not specific to any domain.- Returns:
- int
-
setDomainIdentifier
public void setDomainIdentifier(int domainIdentifier)
Set up the identifier of the governance domain that this role belongs to. Zero means that the role is not specific to any domain.- Parameters:
domainIdentifier- int
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classReferenceableProperties- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classReferenceableProperties- Returns:
- int hash code
-
-