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

All Known Subinterfaces:
ActivityService<Activity>, IdentityService<Identity>
All Known Implementing Classes:
ActivityServiceImpl, IdentityServiceImpl, 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 AccessDeniedException,
                ServiceException
Creates a new instance.

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

get

M get(String uuid)
      throws AccessDeniedException,
             ServiceException
Gets an existing instance by its uuid.

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

update

M update(M existingInstance)
         throws AccessDeniedException,
                ServiceException
Updates an existing instance.

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

delete

M delete(M existingInstance)
         throws AccessDeniedException,
                ServiceException
Deletes an existing instance.

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


Copyright © 2011 eXo Platform. All Rights Reserved.