public interface MyPersonalProfileInterface
| Modifier and Type | Method and Description |
|---|---|
String |
addContactMethod(String userId,
ContactMethodType type,
String service,
String value)
Add a new contact method to the requesting user's profile.
|
void |
deleteContactMethod(String userId,
String contactMethodGUID,
ContactMethodType type)
Remove an obsolete contact method from the requesting user's profile.
|
void |
deleteMyProfile(String userId,
String qualifiedName)
Delete the profile for the requesting user.
|
List<ContactMethod> |
getMyContactDetails(String UserId)
Return the list of contact methods for this user.
|
int |
getMyKarmaPoints(String userId)
Return the total karma points for this user.
|
PersonalProfile |
getMyProfile(String userId)
Return the profile for this user.
|
void |
setUpMyProfile(String userId,
String qualifiedName,
String fullName,
String knownName,
String jobTitle,
String jobRoleDescription,
List<ContactMethod> contactDetails,
Map<String,String> additionalProperties)
Create or update the profile for the requesting user.
|
PersonalProfile getMyProfile(String userId) throws InvalidParameterException, NoProfileForUserException, PropertyServerException, UserNotAuthorizedException
userId - userId of the user making the request.InvalidParameterException - the userId is null or invalid.NoProfileForUserException - the user does not have a profile.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.int getMyKarmaPoints(String userId) throws InvalidParameterException, NoProfileForUserException, PropertyServerException, UserNotAuthorizedException
userId - userId of the user making the request.InvalidParameterException - the userId is null or invalid.NoProfileForUserException - the user does not have a profile.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.List<ContactMethod> getMyContactDetails(String UserId) throws InvalidParameterException, NoProfileForUserException, PropertyServerException, UserNotAuthorizedException
UserId - userId of the user making the request.InvalidParameterException - the userId is null or invalid.NoProfileForUserException - the user does not have a profile.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void setUpMyProfile(String userId, String qualifiedName, String fullName, String knownName, String jobTitle, String jobRoleDescription, List<ContactMethod> contactDetails, Map<String,String> additionalProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.qualifiedName - personnel/serial/unique employee number of the individual.fullName - full name of the person.knownName - known name or nickname of the individual.jobTitle - job title of the individual.jobRoleDescription - job description of the individual.contactDetails - list of contact methods for the person.additionalProperties - additional properties about the individual.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.String addContactMethod(String userId, ContactMethodType type, String service, String value) throws InvalidParameterException, NoProfileForUserException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.type - type of contact method.service - service for the contact method.value - account name for the service.InvalidParameterException - the userId is null or invalid. Another property is invalid.NoProfileForUserException - the user does not have a profile.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void deleteContactMethod(String userId, String contactMethodGUID, ContactMethodType type) throws InvalidParameterException, NoProfileForUserException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.contactMethodGUID - unique identifier (guid) for the obsolete contact method.type - type of contact method. This is used to confirm that the GUID is the right one.InvalidParameterException - the userId is null or invalid. Another property is invalid.NoProfileForUserException - the user does not have a profile.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void deleteMyProfile(String userId, String qualifiedName) throws InvalidParameterException, NoProfileForUserException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.qualifiedName - personnel/serial/unique employee number of the individual.InvalidParameterException - one of the parameters is invalid.NoProfileForUserException - the user does not have a profile.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.