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

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

public class IdentityServiceImplV1Alpha1
extends ServiceBase<RestIdentity,IdentityService<RestIdentity>>
implements IdentityService<RestIdentity>

Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 30, 2011


Field Summary
 
Fields inherited from class org.exoplatform.social.client.core.service.ServiceBase
crudLifecycle, lifecycle, started
 
Fields inherited from interface org.exoplatform.social.client.api.event.CRUDLifecycle
AFTER_CREATE_EVENT, AFTER_DELETE_EVENT, AFTER_UPDATE_EVENT, BEFORE_CREATE_EVENT, BEFORE_DELETE_EVENT, BEFORE_UPDATE_EVENT, CREATE_EVENT, DELETE_EVENT, UPDATE_EVENT
 
Fields inherited from interface org.exoplatform.social.client.api.event.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
IdentityServiceImplV1Alpha1()
           
 
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 org.exoplatform.social.client.core.service.ServiceBase
addCRUDLifecycleListener, addLifecycleListener, doCreate, doDelete, doUpdate, findCRUDLifecycleListeners, findLifecycleListeners, postCreate, postDelete, postUpdate, preCreate, preDelete, preUpdate, removeCRUDLifecycleListener, removeLifecycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityServiceImplV1Alpha1

public IdentityServiceImplV1Alpha1()
Method Detail

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

getIdentityId

public String getIdentityId(String provider,
                            String remoteId)
                     throws SocialClientLibException
Gets the identity id from a remote id.

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

getIdentity

public RestIdentity getIdentity(String identityProvider,
                                String remoteId)
                         throws SocialClientLibException
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


Copyright © 2011-2012 eXo Platform. All Rights Reserved.