public class BaseEntity extends BaseDataObject
User would have basic data into BaseEntity and specific information in
User. The BaseEntity would also be referred by Provider to represent and
link roles. This helps in getting reports for any dimension for any entity into the system.| Modifier | Constructor and Description |
|---|---|
protected |
BaseEntity() |
|
BaseEntity(String baseEntityId) |
|
BaseEntity(String baseEntityId,
Map<String,String> identifiers) |
|
BaseEntity(String baseEntityId,
Map<String,String> identifiers,
Map<String,Object> attributes) |
|
BaseEntity(String baseEntityId,
Map<String,String> identifiers,
Map<String,Object> attributes,
List<Address> addresses) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(Address address) |
void |
addAttribute(String name,
Object value) |
void |
addIdentifier(String identifierType,
String identifier) |
List<Address> |
getAddresses() |
Object |
getAttribute(String name) |
Map<String,Object> |
getAttributes() |
String |
getBaseEntityId() |
String |
getIdentifier(String identifierType) |
String |
getIdentifierMatchingRegex(String regex)
Returns field matching the regex.
|
Map<String,String> |
getIdentifiers() |
void |
removeAttribute(String name) |
void |
removeIdentifier(String identifierType) |
void |
setAddresses(List<Address> addresses)
WARNING: Overrides all existing addresses
|
void |
setAttributes(Map<String,Object> attributes)
WARNING: Overrides all existing attributes
|
void |
setBaseEntityId(String baseEntityId) |
void |
setIdentifiers(Map<String,String> identifiers) |
String |
toString() |
BaseEntity |
withAddress(Address address) |
BaseEntity |
withAddresses(List<Address> addresses)
WARNING: Overrides all existing addresses
|
BaseEntity |
withAttribute(String name,
Object value) |
BaseEntity |
withAttributes(Map<String,Object> attributes)
WARNING: Overrides all existing attributes
|
BaseEntity |
withBaseEntityId(String baseEntityId) |
BaseEntity |
withIdentifier(String identifierType,
String identifier) |
BaseEntity |
withIdentifiers(Map<String,String> identifiers)
WARNING: Overrides all existing identifiers
|
getCreator, getDateCreated, getDateEdited, getDateVoided, getEditor, getVoided, getVoider, getVoidReason, setCreator, setDateCreated, setDateEdited, setDateVoided, setEditor, setVoided, setVoider, setVoidReason, withCreator, withDateCreated, withDateEdited, withDateVoided, withEditor, withVoided, withVoider, withVoidReasonprotected BaseEntity()
public BaseEntity(String baseEntityId)
public BaseEntity(String baseEntityId, Map<String,String> identifiers, Map<String,Object> attributes)
public String getBaseEntityId()
public void setBaseEntityId(String baseEntityId)
public void setAddresses(List<Address> addresses)
addresses - public void addAddress(Address address)
public void setAttributes(Map<String,Object> attributes)
attributes - public void removeAttribute(String name)
public String getIdentifierMatchingRegex(String regex)
regex - public void removeIdentifier(String identifierType)
public BaseEntity withBaseEntityId(String baseEntityId)
public BaseEntity withIdentifiers(Map<String,String> identifiers)
identifiers - public BaseEntity withIdentifier(String identifierType, String identifier)
public BaseEntity withAddresses(List<Address> addresses)
addresses - public BaseEntity withAddress(Address address)
public BaseEntity withAttributes(Map<String,Object> attributes)
attributes - public BaseEntity withAttribute(String name, Object value)
public String toString()
toString in class BaseDataObjectCopyright © 2018. All rights reserved.