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

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

public class IdentityServiceImpl
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
IdentityServiceImpl()
           
 
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.
 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

IdentityServiceImpl

public IdentityServiceImpl()
Method Detail

create

public RestIdentity create(RestIdentity newInstance)
                    throws AccessDeniedException,
                           ServiceException
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:
AccessDeniedException
ServiceException

get

public RestIdentity get(String uuid)
                 throws AccessDeniedException,
                        ServiceException
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:
AccessDeniedException
ServiceException

update

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

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

delete

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

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

getIdentityId

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

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


Copyright © 2011 eXo Platform. All Rights Reserved.