org.exoplatform.social.client.api.service
Interface Service<M>

All Known Subinterfaces:
ActivityService<Activity>, IdentityService<Identity>
All Known Implementing Classes:
ActivityServiceImplV1Alpha1, ActivityServiceImplV1Alpha2, IdentityServiceImplV1Alpha1, IdentityServiceImplV1Alpha2, ServiceBase

public interface Service<M>

eXo Social Service.

Since:
May 19, 2011
Author:
hoatle (hoatlevan at gmail dot com)

Method Summary
 M create(M newInstance)
          Creates a new instance.
 M delete(M existingInstance)
          Deletes an existing instance.
 M get(String uuid)
          Gets an existing instance by its uuid.
 M update(M existingInstance)
          Updates an existing instance.
 

Method Detail

create

M create(M newInstance)
         throws SocialClientLibException
Creates a new instance.

Parameters:
newInstance - new instance
Returns:
the created instance
Throws:
AccessDeniedException
ServiceException
SocialClientLibException

get

M get(String uuid)
      throws SocialClientLibException
Gets an existing instance by its uuid.

Parameters:
uuid - the uuid
Returns:
an existing instance
Throws:
AccessDeniedException
ServiceException
SocialClientLibException

update

M update(M existingInstance)
         throws SocialClientLibException
Updates an existing instance.

Parameters:
existingInstance -
Returns:
new updated instance
Throws:
AccessDeniedException
ServiceException
SocialClientLibException

delete

M delete(M existingInstance)
         throws SocialClientLibException
Deletes an existing instance.

Parameters:
existingInstance -
Returns:
the deleted instance
Throws:
AccessDeniedException
ServiceException
SocialClientLibException


Copyright © 2011 eXo Platform. All Rights Reserved.