public static interface OrganizationSDK.OrganizationClient
Organization resource APIs.| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.CheckedFuture<Organization,com.covisint.core.http.service.core.ServiceException> |
add(Organization organization)
Add a new organization.
|
com.google.common.util.concurrent.CheckedFuture<Organization,com.covisint.core.http.service.core.ServiceException> |
get(String organizationId)
Retrieves an organization by its id.
|
com.google.common.util.concurrent.CheckedFuture<com.covisint.core.http.service.core.ResourceReferenceNode<com.covisint.core.http.service.core.NamedResourceReference>,com.covisint.core.http.service.core.ServiceException> |
getHierarchy(String organizationId)
Retrieves the hierarchy of the given organization id.
|
com.google.common.util.concurrent.CheckedFuture<List<Organization>,com.covisint.core.http.service.core.ServiceException> |
search(List<String> name,
String parentOrganizationId,
String rootOrganizationId,
com.covisint.core.http.service.core.Page page)
Searches for organizations based on the supported search criteria.
|
com.google.common.util.concurrent.CheckedFuture<Organization,com.covisint.core.http.service.core.ServiceException> |
update(Organization organization)
Updates the given organization on the server.
|
@Nonnull com.google.common.util.concurrent.CheckedFuture<Organization,com.covisint.core.http.service.core.ServiceException> add(@Nonnull Organization organization)
organization - The organization to add.@Nonnull com.google.common.util.concurrent.CheckedFuture<Organization,com.covisint.core.http.service.core.ServiceException> update(@Nonnull Organization organization)
organization - The organization to update.@Nonnull com.google.common.util.concurrent.CheckedFuture<Organization,com.covisint.core.http.service.core.ServiceException> get(@Nonnull@NotEmpty String organizationId)
organizationId - The id of the organization to retrieve.@Nonnull com.google.common.util.concurrent.CheckedFuture<List<Organization>,com.covisint.core.http.service.core.ServiceException> search(List<String> name, String parentOrganizationId, String rootOrganizationId, @Nonnull com.covisint.core.http.service.core.Page page)
name - The names of organizations to search for. Pass null or an empty list to skip filtering on name.parentOrganizationId - The id of the parent organization. If specified, search for all organizations who
have the given parent org id.rootOrganizationId - The id of the root organization. If specified, search for all organization who have
the given root/ancestor org id.page - The pagination criteria to apply. Pass Page.DEFAULT if no specific pagination is
required.@Nonnull
com.google.common.util.concurrent.CheckedFuture<com.covisint.core.http.service.core.ResourceReferenceNode<com.covisint.core.http.service.core.NamedResourceReference>,com.covisint.core.http.service.core.ServiceException> getHierarchy(@Nonnull@NotEmpty
String organizationId)
NamedResourceReference
s.organizationId - The id of the organization whose hierarchy needs to be retrieved.Copyright © 2015 Covisint. All rights reserved.