public class LocationHandler<B> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
LocationHandler(OpenMetadataAPIGenericConverter<B> converter,
Class<B> beanClass,
String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCyberLocationClassification(String userId,
String locationGUID,
String locationGUIDParameterName,
String networkAddress,
String methodName)
Mark the location as a Cyber Location.
|
void |
addFixedLocationClassification(String userId,
String locationGUID,
String locationGUIDParameterName,
String coordinates,
String mapProjection,
String postalAddress,
String timeZone,
String methodName)
Mark the location as a Fixed Location.
|
void |
addSecureLocationClassification(String userId,
String locationGUID,
String locationGUIDParameterName,
String description,
String level,
String methodName)
Mark the location as a Secure Location.
|
void |
clearAssetLocation(String userId,
String locationGUID,
String locationGUIDParameterName,
String assetGUID,
String assetGUIDParameterName,
String methodName)
Remove a relationship between a location and an asset.
|
void |
clearNestedLocation(String userId,
String locationParentGUID,
String locationParentGUIDParameterName,
String locationChildGUID,
String locationChildGUIDParameterName,
String methodName)
Remove a parent-child relationship between two locations.
|
void |
clearPeerLocations(String userId,
String locationOneGUID,
String locationOneGUIDParameterName,
String locationTwoGUID,
String locationTwoGUIDParameterName,
String methodName)
Remove a peer relationship between two locations.
|
int |
countKnownLocations(String userId,
String elementGUID,
String methodName)
Count the number of locations attached to an entity.
|
String |
createLocation(String userId,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Create the location.
|
String |
createLocationFromTemplate(String userId,
String templateGUID,
String qualifiedName,
String displayName,
String description,
String methodName)
Create a new metadata element to represent a location using an existing metadata element as a template.
|
List<B> |
getLocations(String userId,
String elementGUID,
String elementGUIDParameterName,
String elementTypeName,
int startingFrom,
int pageSize,
String methodName)
Return the locations attached to an entity.
|
List<B> |
getLocations(String userId,
String elementGUID,
String elementGUIDParameterName,
String elementTypeName,
List<String> serviceSupportedZones,
int startingFrom,
int pageSize,
String methodName)
Return the locations attached to an entity.
|
void |
removeCyberLocationClassification(String userId,
String locationGUID,
String locationGUIDParameterName,
String methodName)
Remove the Cyber Location designation from a location.
|
void |
removeFixedLocationClassification(String userId,
String locationGUID,
String locationGUIDParameterName,
String methodName)
Remove the Fixed Location designation from a location.
|
void |
removeLocation(String userId,
String locationGUID,
String locationGUIDParameterName,
String methodName)
Remove the metadata element representing a location.
|
void |
removeSecureLocationClassification(String userId,
String locationGUID,
String locationGUIDParameterName,
String methodName)
Remove the Secure Location designation from a location.
|
void |
setupAssetLocation(String userId,
String locationGUID,
String locationGUIDParameterName,
String assetGUID,
String assetGUIDParameterName,
String methodName)
Create a relationship between a location and an asset.
|
void |
setupNestedLocation(String userId,
String locationParentGUID,
String locationParentGUIDParameterName,
String locationChildGUID,
String locationChildGUIDParameterName,
String methodName)
Create a parent-child relationship between two locations.
|
void |
setupPeerLocations(String userId,
String locationOneGUID,
String locationOneGUIDParameterName,
String locationTwoGUID,
String locationTwoGUIDParameterName,
String methodName)
Create a peer relationship between two locations.
|
void |
updateLocation(String userId,
String locationGUID,
String locationGUIDParameterName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Update the location.
|
addSecurityTags, addTemplateClassification, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsDuplicates, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveSemanticAssignment, saveSemanticAssignment, unlinkElementsAsDuplicatesarchiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkAllElements, unlinkConnectedElement, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic LocationHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
converter - specific converter for this bean classbeanClass - name of bean class that is represented by the generic class BserviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve Asset instances from.defaultZones - list of zones that the access service should set in all new Asset instances.publishZones - list of zones that the access service sets up in published Asset instances.auditLog - destination for audit log events.public String createLocation(String userId, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userqualifiedName - unique name for the location - used in other configurationdisplayName - short display name for the locationdescription - description of the governance locationadditionalProperties - additional properties for a locationsuppliedTypeName - type name from the caller (enables creation of subtypes)extendedProperties - properties for a governance location subtypemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic String createLocationFromTemplate(String userId, String templateGUID, String qualifiedName, String displayName, String description, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usertemplateGUID - unique identifier of the metadata element to copyqualifiedName - unique name for the location - used in other configurationdisplayName - short display name for the locationdescription - description of the governance locationmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateLocation(String userId, String locationGUID, String locationGUIDParameterName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of the location to updatelocationGUIDParameterName - parameter passing the locationGUIDqualifiedName - unique name for the location - used in other configurationdisplayName - short display name for the locationdescription - description of the governance locationadditionalProperties - additional properties for a governance locationsuppliedTypeName - type of locationextendedProperties - properties for a governance location subtypemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addFixedLocationClassification(String userId, String locationGUID, String locationGUIDParameterName, String coordinates, String mapProjection, String postalAddress, String timeZone, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of locationlocationGUIDParameterName - parameter name supplying locationGUIDcoordinates - coordinate locationmapProjection - scheme used for the coordinatespostalAddress - postal address of the locationtimeZone - time zone of the locationmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeFixedLocationClassification(String userId, String locationGUID, String locationGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of locationlocationGUIDParameterName - parameter name supplying locationGUIDmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addSecureLocationClassification(String userId, String locationGUID, String locationGUIDParameterName, String description, String level, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of locationlocationGUIDParameterName - parameter name supplying locationGUIDdescription - description of securitylevel - level of securitymethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeSecureLocationClassification(String userId, String locationGUID, String locationGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of locationlocationGUIDParameterName - parameter name supplying locationGUIDmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addCyberLocationClassification(String userId, String locationGUID, String locationGUIDParameterName, String networkAddress, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of locationlocationGUIDParameterName - parameter name supplying locationGUIDnetworkAddress - network address of the locationmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeCyberLocationClassification(String userId, String locationGUID, String locationGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of locationlocationGUIDParameterName - parameter name supplying locationGUIDmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void setupNestedLocation(String userId, String locationParentGUID, String locationParentGUIDParameterName, String locationChildGUID, String locationChildGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationParentGUID - unique identifier of the parent locationlocationParentGUIDParameterName - parameter supplying the parentlocationChildGUID - unique identifier of the child locationlocationChildGUIDParameterName - parameter supplying the childmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearNestedLocation(String userId, String locationParentGUID, String locationParentGUIDParameterName, String locationChildGUID, String locationChildGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationParentGUID - unique identifier of the parent locationlocationParentGUIDParameterName - parameter supplying the parentlocationChildGUID - unique identifier of the child locationlocationChildGUIDParameterName - parameter supplying the childmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupPeerLocations(String userId, String locationOneGUID, String locationOneGUIDParameterName, String locationTwoGUID, String locationTwoGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationOneGUID - unique identifier of the first locationlocationOneGUIDParameterName - parameter supplying the first locationlocationTwoGUID - unique identifier of the second locationlocationOneGUIDParameterName - parameter supplying the second locationmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearPeerLocations(String userId, String locationOneGUID, String locationOneGUIDParameterName, String locationTwoGUID, String locationTwoGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationOneGUID - unique identifier of the first locationlocationOneGUIDParameterName - parameter supplying the first locationlocationTwoGUID - unique identifier of the second locationlocationTwoGUIDParameterName - parameter supplying the second locationmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupAssetLocation(String userId, String locationGUID, String locationGUIDParameterName, String assetGUID, String assetGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of the locationlocationGUIDParameterName - parameter supplying the locationassetGUID - unique identifier of the assetassetGUIDParameterName - parameter supplying the assetmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearAssetLocation(String userId, String locationGUID, String locationGUIDParameterName, String assetGUID, String assetGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of the locationlocationGUIDParameterName - parameter supplying the locationassetGUID - unique identifier of the assetassetGUIDParameterName - parameter supplying the assetmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeLocation(String userId, String locationGUID, String locationGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlocationGUID - unique identifier of the metadata element to removelocationGUIDParameterName - parameter supplying the locationGUIDmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public int countKnownLocations(String userId, String elementGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> getLocations(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the feedback is attached toelementGUIDParameterName - name of parameter supplying the GUIDelementTypeName - name of the type of object being attached tostartingFrom - where to start from in the listpageSize - maximum number of results that can be returnedmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> getLocations(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the feedback is attached toelementGUIDParameterName - name of parameter supplying the GUIDelementTypeName - name of the type of object being attached toserviceSupportedZones - supported zones for calling servicestartingFrom - where to start from in the listpageSize - maximum number of results that can be returnedmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.