Class CommunityRESTServices
java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.server.CommunityRESTServices
CommunityRESTServices provides the API operations to create and maintain community information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearCommunityRole(String serverName, String userId, String communityGUID, String communityRoleGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody requestBody) Remove a relationship between a community and a role.org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponsecreateCommunity(String serverName, String userId, org.odpi.openmetadata.accessservices.communityprofile.rest.ReferenceableRequestBody requestBody) Create a new metadata element to represent a community.org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponsecreateCommunityFromTemplate(String serverName, String userId, String templateGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.TemplateRequestBody requestBody) Create a new metadata element to represent a community using an existing metadata element as a template.org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityListResponsefindCommunities(String serverName, String userId, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody, int startFrom, int pageSize) Retrieve the list of community metadata elements that contain the search string.org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityListResponsegetCommunities(String serverName, String userId, int startFrom, int pageSize) Retrieve the list of community metadata elements with a matching qualified or display name.org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityListResponsegetCommunitiesByName(String serverName, String userId, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody, int startFrom, int pageSize) Retrieve the list of community metadata elements with a matching qualified or display name.org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityResponsegetCommunityByGUID(String serverName, String userId, String guid) Retrieve the community metadata element with the supplied unique identifier.org.odpi.openmetadata.accessservices.communityprofile.rest.PersonRoleListResponsegetRolesForCommunity(String serverName, String userId, String communityGUID, int startFrom, int pageSize) Return information about a person role connected to the named community.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseremoveCommunity(String serverName, String userId, String communityGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody requestBody) Remove the metadata element representing a community.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupCommunityRole(String serverName, String userId, String communityGUID, String communityRoleGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.RelationshipRequestBody requestBody) Create a relationship between a community and a person role.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseupdateCommunity(String serverName, String userId, String communityGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.communityprofile.rest.ReferenceableRequestBody requestBody) Update the metadata element representing a community.
-
Constructor Details
-
CommunityRESTServices
public CommunityRESTServices()Default constructor
-
-
Method Details
-
createCommunity
public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createCommunity(String serverName, String userId, org.odpi.openmetadata.accessservices.communityprofile.rest.ReferenceableRequestBody requestBody) Create a new metadata element to represent a community.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- properties to store- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
createCommunityFromTemplate
public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createCommunityFromTemplate(String serverName, String userId, String templateGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.TemplateRequestBody requestBody) Create a new metadata element to represent a community using an existing metadata element as a template.- Parameters:
serverName- name of the service to route the request to.userId- calling usertemplateGUID- unique identifier of the metadata element to copyrequestBody- properties that override the template- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
updateCommunity
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateCommunity(String serverName, String userId, String communityGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.communityprofile.rest.ReferenceableRequestBody requestBody) Update the metadata element representing a community.- Parameters:
serverName- name of the service to route the request to.userId- calling usercommunityGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with the existing properties of overlay them?requestBody- new properties for this element- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
setupCommunityRole
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupCommunityRole(String serverName, String userId, String communityGUID, String communityRoleGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.RelationshipRequestBody requestBody) Create a relationship between a community and a person role.- Parameters:
serverName- name of the service to route the request to.userId- calling usercommunityGUID- unique identifier of the community in the external data managercommunityRoleGUID- unique identifier of the person role in the external data managerrequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
clearCommunityRole
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearCommunityRole(String serverName, String userId, String communityGUID, String communityRoleGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody requestBody) Remove a relationship between a community and a role.- Parameters:
serverName- name of the service to route the request to.userId- calling usercommunityGUID- unique identifier of the community in the external data managercommunityRoleGUID- unique identifier of the role in the external data managerrequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
removeCommunity
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeCommunity(String serverName, String userId, String communityGUID, org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody requestBody) Remove the metadata element representing a community.- Parameters:
serverName- name of the service to route the request to.userId- calling usercommunityGUID- unique identifier of the metadata element to removerequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
findCommunities
public org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityListResponse findCommunities(String serverName, String userId, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody, int startFrom, int pageSize) Retrieve the list of community metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getCommunitiesByName
public org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityListResponse getCommunitiesByName(String serverName, String userId, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody, int startFrom, int pageSize) Retrieve the list of community metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userrequestBody- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getRolesForCommunity
public org.odpi.openmetadata.accessservices.communityprofile.rest.PersonRoleListResponse getRolesForCommunity(String serverName, String userId, String communityGUID, int startFrom, int pageSize) Return information about a person role connected to the named community.- Parameters:
serverName- called serveruserId- calling usercommunityGUID- unique identifier for the communitystartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of matching person roles InvalidParameterException name or userId is null PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
-
getCommunities
public org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityListResponse getCommunities(String serverName, String userId, int startFrom, int pageSize) Retrieve the list of community metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName- name of the service to route the request to.userId- calling userstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-
getCommunityByGUID
public org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityResponse getCommunityByGUID(String serverName, String userId, String guid) Retrieve the community metadata element with the supplied unique identifier.- Parameters:
serverName- name of the service to route the request to.userId- calling userguid- unique identifier of the requested metadata element- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-