org.exoplatform.social.client.core.service
Class IdentityServiceImplV1Alpha2

java.lang.Object
  extended by org.exoplatform.social.client.core.service.IdentityServiceImplV1Alpha2
All Implemented Interfaces:
IdentityService<RestIdentity>, Service<RestIdentity>

public class IdentityServiceImplV1Alpha2
extends Object
implements IdentityService<RestIdentity>

Since:
10/6/11
Author:
hoatle (hoatlevan at gmail dot com)

Constructor Summary
IdentityServiceImplV1Alpha2()
           
 
Method Summary
 RestIdentity create(RestIdentity newInstance)
          Creates a new instance.
 RestIdentity delete(RestIdentity existingInstance)
          Deletes an existing instance.
 RestIdentity get(String uuid)
          Gets an existing instance by its uuid.
 RestIdentity getIdentity(String identityProvider, String remoteId)
          Gets an identity by its identity provider and remote id.
 String getIdentityId(String provider, String remoteId)
          Gets the identity id from a remote id.
 RestIdentity update(RestIdentity existingInstance)
          Updates an existing instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityServiceImplV1Alpha2

public IdentityServiceImplV1Alpha2()
Method Detail

getIdentity

public RestIdentity getIdentity(String identityProvider,
                                String remoteId)
                         throws SocialClientLibException
Description copied from interface: IdentityService
Gets an identity by its identity provider and remote id.

Specified by:
getIdentity in interface IdentityService<RestIdentity>
Parameters:
identityProvider - the identity provider
remoteId - the remote id
Returns:
the identity
Throws:
SocialClientLibException

getIdentityId

public String getIdentityId(String provider,
                            String remoteId)
                     throws SocialClientLibException
Description copied from interface: IdentityService
Gets the identity id from a remote id.

Specified by:
getIdentityId in interface IdentityService<RestIdentity>
remoteId - the remote id
Returns:
the uuid
Throws:
SocialClientLibException

create

public RestIdentity create(RestIdentity newInstance)
                    throws SocialClientLibException
Description copied from interface: Service
Creates a new instance.

Specified by:
create in interface Service<RestIdentity>
Parameters:
newInstance - new instance
Returns:
the created instance
Throws:
SocialClientLibException

get

public RestIdentity get(String uuid)
                 throws SocialClientLibException
Description copied from interface: Service
Gets an existing instance by its uuid.

Specified by:
get in interface Service<RestIdentity>
Parameters:
uuid - the uuid
Returns:
an existing instance
Throws:
SocialClientLibException

update

public RestIdentity update(RestIdentity existingInstance)
                    throws SocialClientLibException
Description copied from interface: Service
Updates an existing instance.

Specified by:
update in interface Service<RestIdentity>
Returns:
new updated instance
Throws:
SocialClientLibException

delete

public RestIdentity delete(RestIdentity existingInstance)
                    throws SocialClientLibException
Description copied from interface: Service
Deletes an existing instance.

Specified by:
delete in interface Service<RestIdentity>
Returns:
the deleted instance
Throws:
SocialClientLibException


Copyright © 2011 eXo Platform. All Rights Reserved.