org.exoplatform.social.client.core.service
Class IdentityServiceImpl
java.lang.Object
org.exoplatform.social.client.core.service.ServiceBase<RestIdentity,IdentityService<RestIdentity>>
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
| 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 |
IdentityServiceImpl
public IdentityServiceImpl()
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.