com.cumulocity.sdk.client.identity
Class IdentityApiImpl

java.lang.Object
  extended by com.cumulocity.sdk.client.identity.IdentityApiImpl
All Implemented Interfaces:
IdentityApi

public class IdentityApiImpl
extends Object
implements IdentityApi


Constructor Summary
IdentityApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformUrl)
          Deprecated. 
IdentityApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformUrl, int pageSize)
           
 
Method Summary
 ExternalIDRepresentation create(ExternalIDRepresentation representation)
          Creates an association between the external id and its global id in the platform.
 void deleteExternalId(ExternalIDRepresentation extIdRep)
          Deletes between the external id and its global id in the platform.
 ExternalIDRepresentation getExternalId(ID extId)
          Gets external id representation from the platform by the given external id.
 PagedCollectionResource<ExternalIDCollectionRepresentation> getExternalIdsOfGlobalId(GId gid)
          Gets the external ids associated with the given global id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityApiImpl

@Deprecated
public IdentityApiImpl(RestConnector restConnector,
                                  TemplateUrlParser templateUrlParser,
                                  String platformUrl)
Deprecated. 


IdentityApiImpl

public IdentityApiImpl(RestConnector restConnector,
                       TemplateUrlParser templateUrlParser,
                       String platformUrl,
                       int pageSize)
Method Detail

getExternalId

public ExternalIDRepresentation getExternalId(ID extId)
                                       throws SDKException
Description copied from interface: IdentityApi
Gets external id representation from the platform by the given external id. The returned external id contains the managed object. The global id associated with the given external id can be extracted from that managed object

Specified by:
getExternalId in interface IdentityApi
Parameters:
extId - id of the event to search for
Returns:
the external id representation including the managed object
Throws:
SDKException - if the external id is not found or if the query failed

deleteExternalId

public void deleteExternalId(ExternalIDRepresentation extIdRep)
                      throws SDKException
Description copied from interface: IdentityApi
Deletes between the external id and its global id in the platform.

Specified by:
deleteExternalId in interface IdentityApi
Parameters:
extIdRep - the external id to be deleted
Throws:
SDKException - if the external could not be deleted

getExternalIdsOfGlobalId

public PagedCollectionResource<ExternalIDCollectionRepresentation> getExternalIdsOfGlobalId(GId gid)
                                                                                     throws SDKException
Description copied from interface: IdentityApi
Gets the external ids associated with the given global id

Specified by:
getExternalIdsOfGlobalId in interface IdentityApi
Parameters:
gid - the global of the external ids to search for
Returns:
a collection of external ids with paging functionality
Throws:
SDKException - if the query failed

create

public ExternalIDRepresentation create(ExternalIDRepresentation representation)
                                throws SDKException
Description copied from interface: IdentityApi
Creates an association between the external id and its global id in the platform.

Specified by:
create in interface IdentityApi
Parameters:
representation - the external to be created
Returns:
the created external id
Throws:
SDKException - if the external id could not be created


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.