Class CommunityProfileRESTClient
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
-
- org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
-
- org.odpi.openmetadata.accessservices.communityprofile.client.rest.CommunityProfileRESTClient
-
public class CommunityProfileRESTClient extends FFDCRESTClient
CommunityProfileRESTClient is responsible for issuing calls to the Community Profile OMAS REST APIs.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
auditLog, exceptionHandler, serverName, serverPlatformURLRoot
-
-
Constructor Summary
Constructors Constructor Description CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot)Constructor for no authentication.CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password)Constructor for simple userId and password authentication.CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog)Constructor for simple userId and password authentication with audit log.CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog)Constructor for no authentication with audit log.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorProfileResponsecallActorProfileGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a ActorProfileElement in a response object.ActorProfileListResponsecallActorProfileListGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a list of ActorProfileElements in a response object.ActorProfileListResponsecallActorProfileListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a GET REST call that returns a list of ActorProfileElements in a response object.AssetListResponsecallAssetListGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a AssetListResponse object.ElementStubsResponsecallElementStubsGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a ElementStubsResponse object.LocationResponsecallLocationGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a LocationResponse object.LocationsResponsecallLocationsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a POST REST call that returns a LocationsResponse object.MetadataSourceResponsecallMetadataSourceGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a MetadataSourceResponse object.PersonalProfileResponsecallPersonalProfileGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a PersonalProfileUniverse in a response object.PersonalProfileListResponsecallPersonalProfileListGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a list of PersonalProfileElements in a response object.PersonRoleAppointeeListResponsecallPersonRoleAppointeeListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a POST REST call that returns a list of PersonRoleAppointees in a response object.PersonRoleResponsecallPersonRoleGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a PersonRoleElement in a response object.PersonRoleListResponsecallPersonRoleListGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a list of PersonRoleElements in a response object.PersonRoleListResponsecallPersonRoleListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a POST REST call that returns a list of PersonRoleElements in a response object.SecurityGroupResponsecallSecurityGroupGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a SecurityGroupResponse object.SecurityGroupResponsecallSecurityGroupPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a POST REST call that returns a SecurityGroupResponse object.SecurityGroupsResponsecallSecurityGroupsGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a SecurityGroupsResponse object.SecurityGroupsResponsecallSecurityGroupsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a POST REST call that returns a SecurityGroupsResponse object.UserIdentityResponsecallUserIdentityGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a UserIdentityElement in a response object.UserIdentityListResponsecallUserIdentityListGetRESTCall(String methodName, String urlTemplate, Object... params)Issue a GET REST call that returns a list of UserIdentityElements in a response object.UserIdentityListResponsecallUserIdentityListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params)Issue a POST REST call that returns a list of UserIdentityElements in a response object.-
Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
callConnectorTypeGetRESTCall, callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCall
-
Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
callDeleteRESTCall, callDeleteRESTCall, callGetRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCall, callPutRESTCall
-
-
-
-
Constructor Detail
-
CommunityProfileRESTClient
public CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
Constructor for no authentication with audit log.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server platform where the OMAG Server is running.auditLog- destination for log messages.- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
CommunityProfileRESTClient
public CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
Constructor for no authentication.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server platform where the OMAG Server is running.- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
CommunityProfileRESTClient
public CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
Constructor for simple userId and password authentication with audit log.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server platform where the OMAG Server is running.userId- user id for the HTTP requestpassword- password for the HTTP requestauditLog- destination for log messages.- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
CommunityProfileRESTClient
public CommunityProfileRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
Constructor for simple userId and password authentication.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server platform where the OMAG Server is running.userId- user id for the HTTP requestpassword- password for the HTTP request- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Detail
-
callMetadataSourceGetRESTCall
public MetadataSourceResponse callMetadataSourceGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a MetadataSourceResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- MetadataSourceResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callActorProfileGetRESTCall
public ActorProfileResponse callActorProfileGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a ActorProfileElement in a response object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callActorProfileListGetRESTCall
public ActorProfileListResponse callActorProfileListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a list of ActorProfileElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersparams- a list of parameters that are slotted into the url template- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callActorProfileListPostRESTCall
public ActorProfileListResponse callActorProfileListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a list of ActorProfileElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersrequestBody- request body for the requestparams- a list of parameters that are slotted into the url template- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callPersonRoleGetRESTCall
public PersonRoleResponse callPersonRoleGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a PersonRoleElement in a response object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callPersonRoleListGetRESTCall
public PersonRoleListResponse callPersonRoleListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a list of PersonRoleElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersparams- a list of parameters that are slotted into the url template- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callPersonRoleListPostRESTCall
public PersonRoleListResponse callPersonRoleListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a POST REST call that returns a list of PersonRoleElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersrequestBody- request body for the requestparams- a list of parameters that are slotted into the url template- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callPersonRoleAppointeeListPostRESTCall
public PersonRoleAppointeeListResponse callPersonRoleAppointeeListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a POST REST call that returns a list of PersonRoleAppointees in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersrequestBody- request body for the requestparams- a list of parameters that are slotted into the url template- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callUserIdentityGetRESTCall
public UserIdentityResponse callUserIdentityGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a UserIdentityElement in a response object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- UserIdentityResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callUserIdentityListGetRESTCall
public UserIdentityListResponse callUserIdentityListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a list of UserIdentityElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersparams- a list of parameters that are slotted into the url template- Returns:
- UserIdentityListResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callUserIdentityListPostRESTCall
public UserIdentityListResponse callUserIdentityListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a POST REST call that returns a list of UserIdentityElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersrequestBody- request body for the requestparams- a list of parameters that are slotted into the url template- Returns:
- UserIdentityListResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callPersonalProfileGetRESTCall
public PersonalProfileResponse callPersonalProfileGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a PersonalProfileUniverse in a response object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- PersonalProfileResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callPersonalProfileListGetRESTCall
public PersonalProfileListResponse callPersonalProfileListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a list of PersonalProfileElements in a response object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API call with place-holders for the parametersparams- a list of parameters that are slotted into the url template- Returns:
- PersonalProfileListResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callAssetListGetRESTCall
public AssetListResponse callAssetListGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a AssetListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- AssetListResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- something went wrong with the REST call stack.
-
callSecurityGroupGetRESTCall
public SecurityGroupResponse callSecurityGroupGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a SecurityGroupResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
callSecurityGroupPostRESTCall
public SecurityGroupResponse callSecurityGroupPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a POST REST call that returns a SecurityGroupResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
callSecurityGroupsGetRESTCall
public SecurityGroupsResponse callSecurityGroupsGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a SecurityGroupsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
callSecurityGroupsPostRESTCall
public SecurityGroupsResponse callSecurityGroupsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a POST REST call that returns a SecurityGroupsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
callElementStubsGetRESTCall
public ElementStubsResponse callElementStubsGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a ElementStubsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
callLocationGetRESTCall
public LocationResponse callLocationGetRESTCall(String methodName, String urlTemplate, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a GET REST call that returns a LocationResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- LocationResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
callLocationsPostRESTCall
public LocationsResponse callLocationsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Issue a POST REST call that returns a LocationsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call with place-holders for the parameters.requestBody- properties describing the valid value definition/setparams- a list of parameters that are slotted into the url template.- Returns:
- LocationsResponse
- Throws:
InvalidParameterException- one of the parameters is invalid.UserNotAuthorizedException- the user is not authorized to make this request.PropertyServerException- the repository is not available or not working properly.
-
-