public class ContributionRecordHandler extends Object
| Constructor and Description |
|---|
ContributionRecordHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
int karmaPointPlateau)
Construct the discovery engine configuration handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteContributionRecord(String userId,
String personalProfileGUID,
String qualifiedName,
String methodName)
Delete the contribution record for a person.
|
ContributionRecord |
getContributionRecord(String userId,
String personalProfileGUID,
String qualifiedName,
String methodName)
Return the appropriate contribution record for the identified person.
|
ContributionRecord |
incrementKarmaPoints(String userId,
String personalProfileGUID,
String qualifiedName,
int karmaPointIncrement,
String methodName)
Increment a person's karma points.
|
void |
updateContributionRecord(String userId,
String personalProfileGUID,
String qualifiedName,
Map<String,Object> extendedProperties,
Map<String,String> additionalProperties,
String methodName)
Update the ancillary properties of a contribution record
|
public ContributionRecordHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, int karmaPointPlateau)
serviceName - name of the consuming serviceserverName - name of this server instanceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository serviceskarmaPointPlateau - the number of karma points to reach a plateaupublic ContributionRecord getContributionRecord(String userId, String personalProfileGUID, String qualifiedName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userpersonalProfileGUID - unique identifier of personal profilequalifiedName - qualified name of their personal profile.methodName - calling methodInvalidParameterException - the userId or guid is nullPropertyServerException - the metadata repository is not availableUserNotAuthorizedException - the user is not authorized to issue this requestpublic void updateContributionRecord(String userId, String personalProfileGUID, String qualifiedName, Map<String,Object> extendedProperties, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userpersonalProfileGUID - unique identifier of personal profilequalifiedName - qualified name of their personal profileextendedProperties - subtype propertiesadditionalProperties - additional propertiesmethodName - 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 ContributionRecord incrementKarmaPoints(String userId, String personalProfileGUID, String qualifiedName, int karmaPointIncrement, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userpersonalProfileGUID - unique identifier of personal profilequalifiedName - qualified name of their 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 deleteContributionRecord(String userId, String personalProfileGUID, String qualifiedName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userpersonalProfileGUID - unique identifier of personal profilequalifiedName - qualified name of their personal profile.methodName - calling methodInvalidParameterException - the userId of qualified name is nullPropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.