public class ContributionRecordHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
ContributionRecordHandler(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,
int karmaPointPlateau,
AuditLog auditLog)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
B |
getContributionRecord(String userId,
String profileGUID,
String profileGUIDParameterName,
String methodName)
Return the ContributionRecord attached to a supplied person profile.
|
int |
getKarmaPointPlateau(int karmaPointTotal)
Return the karma point plateau for an individual.
|
B |
incrementKarmaPoints(String userId,
String profileGUID,
String profileGUIDParameterName,
String qualifiedName,
int karmaPointIncrement,
String methodName)
Increment a person's karma points.
|
void |
removeContributionRecord(String userId,
String profileGUID,
String profileGUIDParameterName,
String methodName)
Remove the requested contribution record.
|
void |
saveContributionRecord(String userId,
String profileGUID,
String profileGUIDParameterName,
String qualifiedName,
long karmaPoints,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Set up the contribution values in a Person profile.
|
archiveBeanInRepository, 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, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByIntValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, 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 ContributionRecordHandler(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, int karmaPointPlateau, 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 fromdefaultZones - list of zones that the access service should set in all new Asset instancespublishZones - list of zones that the access service sets up in published Asset instanceskarmaPointPlateau - number of karma points to a plateauauditLog - destination for audit log eventspublic B getContributionRecord(String userId, String profileGUID, String profileGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userprofileGUID - identifier for the entity that the contribution record is attached toprofileGUIDParameterName - name of parameter supplying the GUIDmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B incrementKarmaPoints(String userId, String profileGUID, String profileGUIDParameterName, String qualifiedName, int karmaPointIncrement, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userprofileGUID - unique identifier of personal profileprofileGUIDParameterName - parameter supply profileGUIDqualifiedName - unique name for this personal profilekarmaPointIncrement - number of points to add to the contribution record.methodName - calling methodInvalidParameterException - the userId, qualified name or guid is nullPropertyServerException - the metadata repository is not availableUserNotAuthorizedException - the user is not authorized to issue this requestpublic void saveContributionRecord(String userId, String profileGUID, String profileGUIDParameterName, String qualifiedName, long karmaPoints, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.profileGUID - unique identifier for the connected Person entity.profileGUIDParameterName - parameter supplying the profileGUIDqualifiedName - unique name for this contribution recordkarmaPoints - contribution points for the individualadditionalProperties - additional properties for the contribution recordextendedProperties - additional properties from defined subtypessuppliedTypeName - name of subtype or nullmethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeContributionRecord(String userId, String profileGUID, String profileGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userprofileGUID - unique identifier for the connected Person entity.profileGUIDParameterName - parameter supplying the profileGUIDmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getKarmaPointPlateau(int karmaPointTotal)
karmaPointTotal - current pointsCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.